[OS X Emacs] Delay opening HTML files from a shell
braunm at mail.smu.edu
Thu Jun 6 11:43:08 EDT 2019
Three items in response to this email, and the one you sent a some moments earlier:
1. I’m sorry I wasn’t more clear, but the replication steps you took do not relate to the problem. The issue is not about opening Aquamacs from a Terminal shell. The problem is opening an HTML file from within a process that is running from within Aquamacs. So, Aquamacs is running, I open a shell process with M-x shell, and then try to open a file. Another way to replicate is to start an ESS process (M-x R), and then ask for an HTML help file ( ?mean ) .
BTW, although my problem was with HTML files, I can replicate Win Treese’s delay when opening a text file from within an Aquamacs shell. In fact, not only do I get this problem when TextEdit is the default reader, there is also a delay when text files are opened by default with Aquamacs!
2. I was running a relatively new build: Aquamacs 3.5 GNU Emacs 220.127.116.11 (x86_64-apple-darwin18.5.0, NS appkit-1671.40 Version 10.14.4 (Build 18E226))
dated 2019-04-03 rev. 9669eea573376c845745bf6df530a50fe281c9de
But just in case, I re-cloned the repository (a pull and rebuild generated errors), and recompiled using ./build-aquamacs. The results:
A. I got the following errors regarding libxml/tree.h:
/Library/Developer/CommandLineTools/usr/bin/make -C ../admin/unidata charscript.el
/Library/Developer/CommandLineTools/usr/bin/make -C ../admin/charsets cp51932.el
make: Nothing to be done for `cp51932.el'.
/Library/Developer/CommandLineTools/usr/bin/make -C ../admin/charsets eucjp-ms.el
make: Nothing to be done for `eucjp-ms.el'.
[Lots of other .o and .info files here]
xml.c:23:10: fatal error: 'libxml/tree.h' file not found
1 error generated.
make: *** [xml.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [src] Error 2
make: *** Waiting for unfinished jobs....
[ Lots of other .info files here]
(base) mbraun: ~/Software/aquamacs-emacs $
B. The executable app was not in the nextstep folder, where it usually is.
I have not had these problems compiling before, but I usually test this out one my laptop, and I’m on my work computer now.
tl;dr for item 1: For some reason, I could not recompile, but I did have a relatively recent build anyway.
3. I ran the lrregister command below, as requested, and then restarted my computer. This did not solve the problem.
> On Jun 6, 2019, at 7:47 AM, David Reitter <david.reitter at gmail.com> wrote:
> In addition to trying with the latest build, I suggest you try running Aquamacs without customizations (Help->Diagnose menu).
> If that doesn’t make a difference: there is a database that MacOS consults to find the right application (Does
> "open -a Aquamacs.app file.txt" work any faster?)
> Sometimes, this command can help by triggering a rebuild of that database:
> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -seed -r -f -v -domain local -domain user -domain system
> PS.: I do not replicate this. “open x.txt” brings up Aquamacs right away for me.
> http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
> http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!
>> On Jun 6, 2019, at 8:25 AM, David Reitter <david.reitter at gmail.com> wrote:
>> Hi Michael,
>> Can you try this with a recent build from aquamacs.org/nightlies.shtml?
>> http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
>> http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!
>>> On Jun 5, 2019, at 10:21 PM, Braun, Michael <braunm at mail.smu.edu> wrote:
>>> In March, I asked for some help regarding a 6-8 second delay when opening HTML help files for R using ESS. I’ve since discovered the problem is actually more general. Suppose I launch a shell in an Aquamacs frame (M-x shell), and try to open any HTML file, as with ‘open file.html’. It takes 6-8 seconds for the page to open, even if the browser app is already running. This happens on two different computers (work Mac Pro, home MacBook Pro), both running OS X Mojave (currently 10.14.15), and with both Safari and Chrome.
>>> I do not have any problem with emacs instances run directly in Terminal. In that case, the HTML page opens instantly. It’s only through the Aquamacs GUI. I think the issue arose around the time of the Mojave upgrade, but I don’t know for sure.
>>> My first question is whether anyone else can replicate this problem. My second is how to debug this issue. I don’t even know where to begin, and I would greatly appreciate any direction you can offer.
>>> MacOSX-Emacs mailing list
>>> MacOSX-Emacs at email.esm.psu.edu
>>> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>> MacOSX-Emacs mailing list
>> MacOSX-Emacs at email.esm.psu.edu
>> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
More information about the MacOSX-Emacs