From: Glenn Morris Date: Sat, 23 Oct 2010 21:58:18 +0000 (-0700) Subject: * lisp/textmodes/flyspell.el (flyspell-mode): If there was an error, X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~45^2~500 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7dfc15df2f3caa07932cf78ba9dcd93c7c5c5040;p=emacs.git * 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 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 07350947106..6bb57872a61 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-10-23 Glenn Morris + * 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. diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 8a73a0f818e..e449984043c 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -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