(ispell-get-decoded-string): Give an error if no match is found for
the current dictionary. (Bug#4578)
(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)))