Commit 935d1290 authored by Agustín Martín's avatar Agustín Martín
Browse files

ispell.el (ispell-get-extended-character-mode): Make sure...

ispell.el (ispell-get-extended-character-mode): Make sure extended-character-mode is nil for hunspell

Work around hunspell not ignoring extended-character-mode
set from pipe mode by making sure extended-character-mode
is nil for hunspell.
parent 65a0a738
2012-03-30 Agustín Martín Domingo <agustin.martin@hispalinux.es>
* ispell.el (ispell-get-extended-character-mode): Disable
extended-char-mode for hunspell. hunspell does not support it and
treats ~word as ordinary words in pipe mode.
2012-03-30 Glenn Morris <rgm@gnu.org> 2012-03-30 Glenn Morris <rgm@gnu.org>
* tutorial.el (help-with-tutorial): Ensure local variables don't * tutorial.el (help-with-tutorial): Ensure local variables don't
......
...@@ -1334,8 +1334,10 @@ Protects against bogus binding of `enable-multibyte-characters' in XEmacs." ...@@ -1334,8 +1334,10 @@ Protects against bogus binding of `enable-multibyte-characters' in XEmacs."
(nth 5 (or (assoc ispell-current-dictionary ispell-local-dictionary-alist) (nth 5 (or (assoc ispell-current-dictionary ispell-local-dictionary-alist)
(assoc ispell-current-dictionary ispell-dictionary-alist)))) (assoc ispell-current-dictionary ispell-dictionary-alist))))
(defun ispell-get-extended-character-mode () (defun ispell-get-extended-character-mode ()
(nth 6 (or (assoc ispell-current-dictionary ispell-local-dictionary-alist) (if ispell-really-hunspell ;; hunspell treats ~word as ordinary words
(assoc ispell-current-dictionary ispell-dictionary-alist)))) nil ;; in pipe mode. Disable extended-char-mode
(nth 6 (or (assoc ispell-current-dictionary ispell-local-dictionary-alist)
(assoc ispell-current-dictionary ispell-dictionary-alist)))))
(defun ispell-get-coding-system () (defun ispell-get-coding-system ()
(nth 7 (or (assoc ispell-current-dictionary ispell-local-dictionary-alist) (nth 7 (or (assoc ispell-current-dictionary ispell-local-dictionary-alist)
(assoc ispell-current-dictionary ispell-dictionary-alist)))) (assoc ispell-current-dictionary ispell-dictionary-alist))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment