From: Stefan Monnier Date: Wed, 23 Sep 2009 23:05:37 +0000 (+0000) Subject: (sgml-mode-flyspell-verify): Pass limit args X-Git-Tag: emacs-pretest-23.1.90~1181 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=03304f3134c0fb7d8112a2d89e58248a9524abaa;p=emacs.git (sgml-mode-flyspell-verify): Pass limit args to looking-back to avoid ridiculous slow down in large files (bug#4511). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a6f543e957e..d6118e0e698 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-09-23 Stefan Monnier + + * textmodes/flyspell.el (sgml-mode-flyspell-verify): Pass limit args + to looking-back to avoid ridiculous slow down in large files (bug#4511). + 2009-09-23 Glenn Morris * mail/rmail.el (rmail-reply): Don't try to add a References header when @@ -127,9 +132,10 @@ (vc-git-stash-show-at-point): New functions. (vc-git-stash-map): New keymap. - * register.el (ctl-x-r-map): Define the keys here instead of using autoload. + * register.el (ctl-x-r-map): Define the keys here instead of + using autoload. -2009-09-20 Thierry Volpiatto +2009-09-20 Thierry Volpiatto (tiny change) * bookmark.el (bookmark-write-file): Avoid calling `pp' with large list, to workaround performance problem (bug#4485). diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index f7794e1bf6d..eff19e632fb 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -363,9 +363,10 @@ property of the major mode name.") "Function used for `flyspell-generic-check-word-predicate' in SGML mode." (not (save-excursion (or (looking-at "[^<\n]*>") - (ispell-looking-back "<[^>\n]*") + (ispell-looking-back "<[^>\n]*" (line-beginning-position)) (and (looking-at "[^&\n]*;") - (ispell-looking-back "&[^;\n]*")))))) + (ispell-looking-back "&[^;\n]*" + (line-beginning-position))))))) ;;*---------------------------------------------------------------------*/ ;;* Programming mode */