GNU bug report logs -
#5133
23.1; ispell-buffer with LaTeX file VERY slow in nextstep port of emacs 23.1.1
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5133 in the body.
You can then email your comments to 5133 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#5133
; Package
emacs
.
(Sun, 06 Dec 2009 04:40:07 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Steve Revilak <steve <at> srevilak.net>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sun, 06 Dec 2009 04:40:07 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.
Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing list,
and to the gnu.emacs.bug news group.
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
I often use emacs for writing LaTeX, with the help of "aspell" as a
spell-checking program. With the nextstep port of Emacs 23.1.1,
spell-checking a latex document is approximately 50 times slower than
spell-checking the same latex document with Emacs 22.3.1.
My test case uses the LaTeX version of GPL 3.0. I've posted a copy of
the latex file here:
http://www.cs.umb.edu/~srevilak/images/gpl-3.0.tex
I will also attempt to attach a copy of gpl-3.0.tex to this bug
report.
If you examine this copy of gpl-3.0.tex, you'll notice a "LocalWords"
section at the bottom. As a preparation step, I've run this file
through ispell-buffer, and used `A' to add all misspelled words. The
goal is to see how long it takes ispell-buffer to spell check the
file, and declare that there are no spelling errors.
Specific steps to reproduce:
1) start emacs, with --no-init-file
shell> /Applications/Emacs-23.1.app/Contents/MacOS/Emacs --no-init-file
2) switch to scratch buffer
C-x b *scratch* RETURN
3) specify aspell as the ispell program
;; eval with C-x C-e
(setq ispell-program "aspell")
4) Open gpl-3.0.tex
C-x f /path/to/gpl-3.0.tex RETURN
5) spell-check the buffer
M-x ispell-buffer RETURN
Again, I've arranged things such that there are no spelling errors for
aspell to find.
The nextstep port of emacs 23.1.1 takes 57 seconds to spell-check
gpl-3.0.tex.
By contrast, an older version of emacs:
GNU Emacs 22.3.1 (powerpc-apple-darwin8.11.0, Carbon Version 1.6.0)
of 2009-03-28 on spud.local
takes less that 1 second to perform the same task, on the same
computer, using the same aspell binary.
As another point of contrast
GNU Emacs 23.1.1 (i586-suse-linux-gnu, GTK+ Version 2.18.1) of
2009-10-24 on build16
running on a GNU/Linux system also takes less than 1 second to
accomplish this task. Thus, the `slow ispell-buffer' behavior appears
to be specific to the nextstep port of emacs 23.1.1, compiled on Mac
OS X.
The version of aspell that I am using:
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6)
uname -a output for this system:
Darwin spud.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/Applications/Emacs-23.1.app/Contents/Resources/etc/DEBUG for instructions.
In GNU Emacs 23.1.1 (powerpc-apple-darwin8.11.0, NS apple-appkit-824.48)
of 2009-10-14 on spud.local
Windowing system distributor `Apple', version 10.3.824
configured using `configure '--with-ns''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: C
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: LaTeX
Minor modes in effect:
shell-dirtrack-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-x b <return> ( s e t q SPC ' <backspace> i s p e
l l - p r o g r a m SPC " a p s e <backspace> <backspace>
<backspace> s p e l l " ) C-x C-e C-x C-f D e <tab>
g p <tab> <return> s-x M-x i s p <tab> - b <tab> <return>
<help-echo> <down-mouse-1> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> s-x M-x i s p e l l -
b u <tab> <return> <return> <backspace> C-x C-s M-x
r e p o r t - e m <tab> <return>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
"aspell"
kill-region: The mark is not set now, so there is no region
Starting new Ispell process [default] ...
Spell-checking gpl-3.0.tex using aspell with default dictionary...done
kill-region: The mark is not set now, so there is no region
Spell-checking gpl-3.0.tex using aspell with default dictionary...done
Saving file /Users/srevilak/Desktop/gpl-3.0.tex...
Wrote /Users/srevilak/Desktop/gpl-3.0.tex
[gpl-3.0.tex (application/x-tex, attachment)]
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#5133
; Package
emacs
.
(Mon, 07 Dec 2009 14:25:06 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Steve Revilak <steve <at> srevilak.net>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 07 Dec 2009 14:25:06 GMT)
Full text and
rfc822 format available.
Message #12 received at 5133 <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
I have verified that bug 5133 still exists in
GNU Emacs 23.1.50.1 (powerpc-apple-darwin8.11.0, NS apple-appkit-824.48) of 2009-12-07 on spud.local
(compiled from CVS sources, checked out on December 6, 2009).
Steve Revilak
[Message part 2 (application/pgp-signature, inline)]
Disconnected #2503 from all other report(s).
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Tue, 08 Dec 2009 20:20:05 GMT)
Full text and
rfc822 format available.
bug reassigned from package 'emacs' to 'emacs,ns'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Tue, 08 Dec 2009 20:20:06 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5133
; Package
emacs,ns
.
(Fri, 01 Jan 2010 00:50:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 5133 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I've tried to reproduce this issue with
GNU Emacs 23.1.91.1 (powerpc-apple-darwin8.11.0, NS apple-appkit-824.48) of 2009-12-31 on spud.local
M-x ispell-buffer slowness still occurs when Emacs is started as a
"windowed" application (i.e.,
"/Applications/Emacs.app/Contents/MacOS/Emacs -Q"). M-x ispell-buffer
still takes 57 seconds to check gpl-3.0.tex.
I have one new bit of information to report. M-x ispell-buffer is NOT
slow when emacs 23.1.91.1 is run as a non-windowed application (i.e.,
"/Applications/Emacs.app/Contents/MacOS/Emacs -Q -nw"). When started
with -nw, emacs 23.1.91.1 can spell check gpl-3.0.tex in under a
second.
I hadn't thought to try -nw before, so I went back and checked a few
older versions of emacs-23. (23.1.90.1, 23.1.50.1, 23.1.1). In all
cases, M-x ispell-buffer is fast with "-nw", and slow without "-nw".
[Message part 2 (application/pgp-signature, inline)]
Severity set to 'important' from 'serious'
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Sat, 03 Apr 2010 00:12:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5133
; Package
emacs,ns
.
(Thu, 20 Jan 2011 21:17:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 5133 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
This same behavior is present in the latest Emacs pre-release
GNU Emacs 23.2.91.1 (x86_64-apple-darwin10.4.0, NS apple-appkit-1038.32) of 2011-01-02 on oatmeal
on
Darwin oatmeal 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386
[Message part 2 (application/pgp-signature, inline)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5133
; Package
emacs,ns
.
(Fri, 21 Jan 2011 06:30:03 GMT)
Full text and
rfc822 format available.
Message #27 received at 5133 <at> debbugs.gnu.org (full text, mbox):
This bug and 7761 are duplicates. There are slow parts in the event loop, and
the font backend that I have identified so far. Work continues.
Jan D.
steve <at> srevilak.net skrev 2011-01-20 22.23:
> This same behavior is present in the latest Emacs pre-release
>
> GNU Emacs 23.2.91.1 (x86_64-apple-darwin10.4.0, NS apple-appkit-1038.32) of
> 2011-01-02 on oatmeal
>
> on
>
> Darwin oatmeal 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT
> 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386
>
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 10 Mar 2013 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 102 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.