]> git.eshelyaron.com Git - emacs.git/commitdiff
Jari Aalto <jari.aalto at cante.net>
authorGlenn Morris <rgm@gnu.org>
Sat, 17 Oct 2009 03:09:25 +0000 (03:09 +0000)
committerGlenn Morris <rgm@gnu.org>
Sat, 17 Oct 2009 03:09:25 +0000 (03:09 +0000)
(ispell-get-decoded-string): Give an error if no match is found for
the current dictionary.  (Bug#4578)

lisp/textmodes/ispell.el

index 6d02cf9369e397122ced9ec77d2645a27d4efeaa..5b1d0d75785c477ea04172fda477bcdb7c347884 100644 (file)
@@ -1289,7 +1289,8 @@ Protects against bogus binding of `enable-multibyte-characters' in XEmacs."
 (defun ispell-get-decoded-string (n)
   (let* ((slot (or
                (assoc ispell-current-dictionary ispell-local-dictionary-alist)
-               (assoc ispell-current-dictionary ispell-dictionary-alist)))
+               (assoc ispell-current-dictionary ispell-dictionary-alist)
+               (error "No match for the current dictionary")))
         (str (nth n slot)))
     (when (and (> (length str) 0)
               (not (multibyte-string-p str)))