]> git.eshelyaron.com Git - emacs.git/commitdiff
(sgml-mode-flyspell-verify): Pass limit args
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 23 Sep 2009 23:05:37 +0000 (23:05 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 23 Sep 2009 23:05:37 +0000 (23:05 +0000)
to looking-back to avoid ridiculous slow down in large files (bug#4511).

lisp/ChangeLog
lisp/textmodes/flyspell.el

index a6f543e957edd4e2954dfc93c997c6f055f01cc2..d6118e0e698116e83bdd9d7385d1d81d35788ec9 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-23  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * 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  <rgm@gnu.org>
 
        * mail/rmail.el (rmail-reply): Don't try to add a References header when
        (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  <thierry.volpiatto@gmail.com>
+2009-09-20  Thierry Volpiatto  <thierry.volpiatto@gmail.com>  (tiny change)
 
        * bookmark.el (bookmark-write-file): Avoid calling `pp' with large
        list, to workaround performance problem (bug#4485).
index f7794e1bf6dd47e0c60a634c77e7b13069961cfc..eff19e632fbc8ff844696513a3cb82d6735e7fac 100644 (file)
@@ -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                                                 */