From: Kim F. Storm Date: Mon, 11 Sep 2006 08:26:47 +0000 (+0000) Subject: (Fmessage): Recommend using (message "%s" ...). X-Git-Tag: emacs-pretest-22.0.90~623 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7bd5bcfba3b6c8f1bfb9c4501e3d9dae4f58a5ca;p=emacs.git (Fmessage): Recommend using (message "%s" ...). --- diff --git a/src/editfns.c b/src/editfns.c index dce727611ba..71b518acb74 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3178,6 +3178,9 @@ The message also goes into the `*Messages*' buffer. The first argument is a format control string, and the rest are data to be formatted under control of the string. See `format' for details. +Note: Use (message "%s" VALUE) to print the value of expressions and +variables to avoid accidentally interpreting `%' as format specifiers. + If the first argument is nil or the empty string, the function clears any existing message; this lets the minibuffer contents show. See also `current-message'.