]> git.eshelyaron.com Git - emacs.git/commitdiff
Only show flyspell welcome message interactively
authorStefan Kangas <stefankangas@gmail.com>
Thu, 27 Aug 2020 09:38:00 +0000 (11:38 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Thu, 27 Aug 2020 09:38:47 +0000 (11:38 +0200)
* lisp/textmodes/flyspell.el (flyspell-mode): Only show welcome
message when called interactively.  (Bug#43065)

lisp/textmodes/flyspell.el

index f90a128b01c2f1144569598566fe77d592ff1a09..b631b126d5841f876797c491a6edf2d083585763 100644 (file)
@@ -533,7 +533,7 @@ in your init file.
           (progn
             (when flyspell-use-mouse-3-for-menu
               (flyspell--set-use-mouse-3-for-menu 'flyspell-use-mouse-3-for-menu t))
-            (flyspell-mode-on t))
+            (flyspell-mode-on (called-interactively-p 'interactive)))
        (error (message "Error enabling Flyspell mode:\n%s" (cdr err))
               (flyspell-mode -1)))
     (flyspell-mode-off)))