diff options
| author | Glenn Morris | 2009-10-17 03:09:25 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-10-17 03:09:25 +0000 |
| commit | a567af584204fc3bc50c5d0584101e077f51e5f9 (patch) | |
| tree | 1af4d8ae467852d57e8cb7a1c025c37d92544c1a | |
| parent | f8ad49508aebd6fb54bfdf0668c1fdebaf3bb55f (diff) | |
| download | emacs-a567af584204fc3bc50c5d0584101e077f51e5f9.tar.gz emacs-a567af584204fc3bc50c5d0584101e077f51e5f9.zip | |
Jari Aalto <jari.aalto at cante.net>
(ispell-get-decoded-string): Give an error if no match is found for
the current dictionary. (Bug#4578)
| -rw-r--r-- | lisp/textmodes/ispell.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 6d02cf9369e..5b1d0d75785 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -1289,7 +1289,8 @@ Protects against bogus binding of `enable-multibyte-characters' in XEmacs." | |||
| 1289 | (defun ispell-get-decoded-string (n) | 1289 | (defun ispell-get-decoded-string (n) |
| 1290 | (let* ((slot (or | 1290 | (let* ((slot (or |
| 1291 | (assoc ispell-current-dictionary ispell-local-dictionary-alist) | 1291 | (assoc ispell-current-dictionary ispell-local-dictionary-alist) |
| 1292 | (assoc ispell-current-dictionary ispell-dictionary-alist))) | 1292 | (assoc ispell-current-dictionary ispell-dictionary-alist) |
| 1293 | (error "No match for the current dictionary"))) | ||
| 1293 | (str (nth n slot))) | 1294 | (str (nth n slot))) |
| 1294 | (when (and (> (length str) 0) | 1295 | (when (and (> (length str) 0) |
| 1295 | (not (multibyte-string-p str))) | 1296 | (not (multibyte-string-p str))) |