Improve error message in ispell-get-decoded-string.

lisp/textmodes/ispell.el (ispell-get-decoded-string): Make the error
 message mention the alists that need to be fixed.
This commit is contained in:
Eli Zaretskii 2012-03-17 11:13:19 +02:00
parent 66ecdc9e08
commit 9ac7a13f08
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-03-17 Eli Zaretskii <eliz@gnu.org>
* textmodes/ispell.el (ispell-get-decoded-string): Make the error
message more clear.
2012-03-16 Leo Liu <sdl.web@gmail.com>
* emacs-lisp/copyright.el (copyright-year-ranges): Fix typo.

View file

@ -1307,7 +1307,8 @@ Protects against bogus binding of `enable-multibyte-characters' in XEmacs."
(let* ((slot (or
(assoc ispell-current-dictionary ispell-local-dictionary-alist)
(assoc ispell-current-dictionary ispell-dictionary-alist)
(error "No match for the current dictionary")))
(error "No data for dictionary \"%s\", neither in `ispell-local-dictionary-alist' nor in `ispell-dictionary-alist'"
ispell-current-dictionary)))
(str (nth n slot)))
(when (and (> (length str) 0)
(not (multibyte-string-p str)))