* lisp/textmodes/flyspell.el (flyspell-mode): If there was an error,

say what it was.

Otherwise someone is going to report the same meaningless bug for the
rest of time.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5574
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5576
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7272
This commit is contained in:
Glenn Morris 2010-10-23 14:58:18 -07:00
parent e1fd756bae
commit 7dfc15df2f
2 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,8 @@
2010-10-23 Glenn Morris <rgm@gnu.org>
* textmodes/flyspell.el (flyspell-mode): If there was an error,
say what it was.
* frame.el (auto-hscroll-mode, cursor-in-non-selected-windows):
Sync docs with C version.

View file

@ -494,9 +494,9 @@ in your .emacs file.
:keymap flyspell-mode-map
:group 'flyspell
(if flyspell-mode
(condition-case ()
(condition-case err
(flyspell-mode-on)
(error (message "Enabling Flyspell mode gave an error")
(error (message "Error enabling Flyspell mode:\n%s" (cdr err))
(flyspell-mode -1)))
(flyspell-mode-off)))
@ -2354,5 +2354,4 @@ This function is meant to be added to `flyspell-incorrect-hook'."
(provide 'flyspell)
;; arch-tag: 05d915b9-e9cf-44fb-9137-fc28f5eaab2a
;;; flyspell.el ends here