From: Agustín Martín Date: Tue, 29 Apr 2008 10:55:35 +0000 (+0000) Subject: (flyspell-mode-on): Remove redundant (flyspell-mode-hook) run. X-Git-Tag: emacs-pretest-23.0.90~5948 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b224db386852cf13c1771e2ac81b61daca3daada;p=emacs.git (flyspell-mode-on): Remove redundant (flyspell-mode-hook) run. (flyspell-mode): Fix docstring in definition. --- diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index ef7d91b3471..029bf12fe24 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -480,7 +480,7 @@ Bindings: \\[flyspell-correct-word] (or down-mouse-2): popup correct words. Hooks: -This runs `flyspell-mode-hook' after flyspell is entered. +This runs `flyspell-mode-hook' after flyspell mode is entered or exit. Remark: `flyspell-mode' uses `ispell-mode'. Thus all Ispell options are @@ -618,9 +618,7 @@ in your .emacs file. (if binding (format "Welcome to flyspell. Use %s or Mouse-2 to correct words." (key-description binding)) - "Welcome to flyspell. Use Mouse-2 to correct words.")))) - ;; we end with the flyspell hooks - (run-hooks 'flyspell-mode-hook)) + "Welcome to flyspell. Use Mouse-2 to correct words."))))) ;;*---------------------------------------------------------------------*/ ;;* flyspell-delay-commands ... */