From f40260f121d41d50fda428e789d22b125e24f407 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 27 Aug 2020 11:38:00 +0200 Subject: [PATCH] Only show flyspell welcome message interactively * lisp/textmodes/flyspell.el (flyspell-mode): Only show welcome message when called interactively. (Bug#43065) --- lisp/textmodes/flyspell.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index f90a128b01c..b631b126d58 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -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))) -- 2.39.2