From: Chong Yidong <cyd@stupidchicken.com>
To: joaotavora@gmail.com (Joao Tavora)
Cc: 5734@debbugs.gnu.org
Subject: bug#5734: 23.1.94; (forward-sexp N) at the very end of large latex-mode buffer takes time proportional to N
Date: Thu, 25 Mar 2010 15:17:12 -0400 [thread overview]
Message-ID: <8739zoi53b.fsf@stupidchicken.com> (raw)
In-Reply-To: <m2y6hq1u71.fsf@gmail.com>
> start with `emacs -Q'
> M-x eval-expression RET (insert (make-string 100000 ?a)) RET
> M-x eval-expression RET (latex-mode) RET
> M-x eval-expression RET (forward-sexp 200) RET
> M-x eval-expression RET (forward-sexp 500) RET
> M-x eval-expression RET (forward-sexp (point-max)) RET
> In some versions of emacs this does not happen, notably my earlier
> Carbon Emacs "GNU Emacs 22.3.1 (i386-apple-darwin9.7.0, Carbon Version
> 1.6.0) of 2009-07-26 on gs674-seijiz.local" after loading some lisp
> libraries (don't know which), like the ones I have bellow (autopair,
> yasnippet).
I can reproduce this slowness even on Emacs 22.3. It arises because
tex-mode wants to be able to signal an error if point is in a containing
expression that ends prematurely, so it does a bit of backtracking.
(This is the `skip-syntax-backward' call in latex-forward-sexp-1).
I'm not sure what the best way to fix this is, though.
next prev parent reply other threads:[~2010-03-25 19:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <72E45B8A-4496-440D-9D38-F9280DE76397@gmail.com>
2010-03-17 22:04 ` bug#5734: 23.1.94; (forward-sexp N) at the very end of large latex-mode buffer takes time proportional to N Joao Tavora
2010-03-25 19:17 ` Chong Yidong [this message]
2010-03-25 19:54 ` bug#5734: Fwd: " João Távora
2012-08-03 2:30 ` Chong Yidong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8739zoi53b.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=5734@debbugs.gnu.org \
--cc=joaotavora@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.