1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 471_ispell.el_hunspell-nil-character-mode.dpatch by <agmartin@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Make sure extended-character-mode is nil for hunspell
7
Work around hunspell not ignoring extended-character-mode
8
set from pipe mode by making sure extended-character-mode
13
https://sourceforge.net/tracker/?func=detail&atid=756395&aid=2617130&group_id=143754
16
diff -urNad dictionaries-common~/support/emacsen/ispell.el dictionaries-common/support/emacsen/ispell.el
17
--- dictionaries-common~/support/emacsen/ispell.el 2009-03-10 00:00:23.000000000 +0100
18
+++ dictionaries-common/support/emacsen/ispell.el 2009-03-10 00:08:12.000000000 +0100
19
@@ -1381,8 +1381,10 @@
20
(nth 5 (or (assoc ispell-current-dictionary ispell-local-dictionary-alist)
21
(assoc ispell-current-dictionary ispell-dictionary-alist))))
22
(defun ispell-get-extended-character-mode ()
23
- (nth 6 (or (assoc ispell-current-dictionary ispell-local-dictionary-alist)
24
- (assoc ispell-current-dictionary ispell-dictionary-alist))))
25
+ (if ispell-really-hunspell ;; hunspell treats ~word as ordinary words
26
+ nil ;; in pipe mode. Disable extended-char-mode
27
+ (nth 6 (or (assoc ispell-current-dictionary ispell-local-dictionary-alist)
28
+ (assoc ispell-current-dictionary ispell-dictionary-alist)))))
29
(defalias 'ispell-get-coding-system 'debian-ispell-get-coding-system)