1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 800_flyspell.el_limit-looking-back.dpatch by Agustin Martin Domingo <agmartin@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Pass limit args to looking-back to avoid ridiculous slow down in large files.
7
(sgml-mode-flyspell-verify):
8
- Pass limit args to looking-back to avoid ridiculous slow down in large files.
10
http://debbugs.gnu.org/4511
12
Original patch by Stefan Monnier and Kevin Ryde.
14
Status: As previously installed upstream. Things are now done differently upstream.
17
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' dictionaries-common~/support/emacsen/flyspell.el dictionaries-common/support/emacsen/flyspell.el
18
--- dictionaries-common~/support/emacsen/flyspell.el 2010-04-12 12:02:52.000000000 +0200
19
+++ dictionaries-common/support/emacsen/flyspell.el 2010-04-15 15:53:42.000000000 +0200
21
"Function used for `flyspell-generic-check-word-predicate' in SGML mode."
23
(or (looking-at "[^<\n]*>")
24
- (ispell-looking-back "<[^>\n]*")
25
+ (ispell-looking-back "<[^>\n]*" (line-beginning-position))
26
(and (looking-at "[^&\n]*;")
27
- (ispell-looking-back "&[^;\n]*"))))))
28
+ (ispell-looking-back "&[^;\n]*"
29
+ (line-beginning-position)))))))
31
;;*---------------------------------------------------------------------*/
32
;;* Programming mode */