* slow ispell.el in 23.3 on Mac
@ 2011-07-28 3:20 Alley Stoughton
2011-07-29 4:17 ` Leo
[not found] ` <mailman.467.1311913076.939.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: Alley Stoughton @ 2011-07-28 3:20 UTC (permalink / raw)
To: help-gnu-emacs
When running ispell.el in the GUI-version of GNU Emacs 23.3 on Mac OS
X
GNU Emacs 23.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) of
2011-03-09 on black.porkrind.org,
spell checking a buffer using ispell is extremely slow.
In contrast:
(1) running ispell from the shell is very fast;
(2) running ispell via ispell.el in the non-GUI GNU Emacs 22.1 that
is available as /usr/bin/emacs on the Mac
GNU Emacs 22.1.1 (mac-apple-darwin) of 2011-06-24 on doublemagnum.apple.com
is also very fast.
In FAQs and mailing lists, I can't find any recent mention of this
problem. Any suggestions about what is going on or whether there
is a workaround would be very appreciated!
Alley
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: slow ispell.el in 23.3 on Mac
2011-07-28 3:20 slow ispell.el in 23.3 on Mac Alley Stoughton
@ 2011-07-29 4:17 ` Leo
[not found] ` <mailman.467.1311913076.939.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 4+ messages in thread
From: Leo @ 2011-07-29 4:17 UTC (permalink / raw)
To: help-gnu-emacs
On 2011-07-28 11:20 +0800, Alley Stoughton wrote:
> When running ispell.el in the GUI-version of GNU Emacs 23.3 on Mac OS
> X
M-x report-emacs-bug
Leo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: slow ispell.el in 23.3 on Mac
[not found] ` <mailman.467.1311913076.939.help-gnu-emacs@gnu.org>
@ 2013-02-24 19:49 ` gfisher
2013-02-25 14:53 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: gfisher @ 2013-02-24 19:49 UTC (permalink / raw)
To: gnu.emacs.help; +Cc: help-gnu-emacs
On Thursday, July 28, 2011 9:17:39 PM UTC-7, Leo wrote:
> On 2011-07-28 11:20 +0800, Alley Stoughton wrote:
> > When running ispell.el in the GUI-version of GNU Emacs 23.3 on Mac OS
> > X
>
> M-x report-emacs-bug
>
> Leo
This has been a nagging problem for me for quite some time. I kept hoping that
it would get fixed in an official release, but as of version 24.2 from
emacsformacosx.com, the problem persisted.
After digging around for a while, I found a reasonably good solution that makes
ispell run tolerably fast. The solution is adding a parameter in a couple
calls of the function ispell-accept-output. Specifically, in the 24.2 version
from emacsformacos.com, the changes are on lines 1709 and 3177 of
Emacs.app/Contents/Resources/lisp/textmodes/ispell.el
On those lines, change the calls from
(ispell-accept-output)
to
(ispell-accept-output 0)
With these changes, ispell-buffer runs slightly slower than in Emacs Version 22
and earlier, but still tolerably fast enough.
There are four other calls to ispell-accept-output that take a parameter value
of 3, which I changed to 0.1. These changes had no apparent effect on the
speed of ispell-buffer, presumably because they're not in the line-by-line
buffer loop.
The evident root of the problem is that unparameterized calls to
accept-process-output cause that function to wait some default amount of time.
This in turn causes a delay in the line-by-line processing that ispell-buffer
is doing.
The curious thing about this problem has always been that ispell runs fine in
Emacs 23+ on Linux and other pure UNIX platforms. It also runs fine in version
22 and earlier of Carbon Emacs. The problem only began occurring in Version 23
of Emacs for Mac OS.
I've not dug further into the C code to figure out exactly what's going on.
For now, things work well enough.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: slow ispell.el in 23.3 on Mac
2013-02-24 19:49 ` gfisher
@ 2013-02-25 14:53 ` Stefan Monnier
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2013-02-25 14:53 UTC (permalink / raw)
To: help-gnu-emacs
>> > When running ispell.el in the GUI-version of GNU Emacs 23.3 on Mac OS X
> This has been a nagging problem for me for quite some time. I kept
> hoping that it would get fixed in an official release, but as of
> version 24.2 from emacsformacosx.com, the problem persisted.
IIUC this problem has been fixed. I'm not sure if the fix will be in
24.3, but it's in the trunk, so it'll be in 24.4.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-02-25 14:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-28 3:20 slow ispell.el in 23.3 on Mac Alley Stoughton
2011-07-29 4:17 ` Leo
[not found] ` <mailman.467.1311913076.939.help-gnu-emacs@gnu.org>
2013-02-24 19:49 ` gfisher
2013-02-25 14:53 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.