~ubuntu-branches/ubuntu/utopic/dictionaries-common/utopic

« back to all changes in this revision

Viewing changes to debian/patches/800_flyspell.el_limit-looking-back.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Chris Cheney
  • Date: 2010-05-17 20:15:00 UTC
  • mfrom: (1.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20100517201500-94c51rzr51ohoi41
Tags: 1.5.5ubuntu1
* Merge from debian unstable.  Remaining changes:
  - scripts/system/dc-debconf-select.pl: Drop default debconf priority
    from 'high' to 'medium'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 800_flyspell.el_limit-looking-back.dpatch by Agustin Martin Domingo <agmartin@debian.org>
 
3
##
 
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.
 
6
 
 
7
(sgml-mode-flyspell-verify): 
 
8
 - Pass limit args to looking-back to avoid ridiculous slow down in large files.
 
9
 
 
10
http://debbugs.gnu.org/4511
 
11
 
 
12
Original patch by Stefan Monnier and Kevin Ryde.
 
13
 
 
14
Status: As previously installed upstream. Things are now done differently upstream.
 
15
 
 
16
@DPATCH@
 
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
 
20
@@ -363,9 +363,10 @@
 
21
   "Function used for `flyspell-generic-check-word-predicate' in SGML mode."
 
22
   (not (save-excursion
 
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)))))))
 
30
 
 
31
 ;;*---------------------------------------------------------------------*/
 
32
 ;;*    Programming mode                                                 */