]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve documentation of 'inhibit-message'
authorEli Zaretskii <eliz@gnu.org>
Sat, 2 Jun 2018 11:09:11 +0000 (14:09 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 2 Jun 2018 11:09:11 +0000 (14:09 +0300)
* src/xdisp.c (syms_of_xdisp) <inhibit-message>: Warn against
setting it non-nil globally.  (Bug#31627)

src/xdisp.c

index d28c11406784e3b1e3f4397e7516600800fb8b89..5bce05c219e702457952d4562f1b71cb0499cbc4 100644 (file)
@@ -32424,7 +32424,12 @@ syms_of_xdisp (void)
 
   DEFVAR_BOOL("inhibit-message", inhibit_message,
               doc:  /* Non-nil means calls to `message' are not displayed.
-They are still logged to the *Messages* buffer.  */);
+They are still logged to the *Messages* buffer.
+
+Do NOT set this globally to a non-nil value, as doing that will
+disable messages everywhere, including in I-search and other
+places where they are necessary.  This variable is intended to
+be let-bound around code that needs to disable messages temporarily. */);
   inhibit_message = 0;
 
   message_dolog_marker1 = Fmake_marker ();