Mercurial > emacs
diff src/editfns.c @ 72801:861a71881b6a
(Fmessage): Recommend using (message "%s" ...).
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Mon, 11 Sep 2006 08:26:47 +0000 |
parents | 9128a4531448 |
children | 5229e2ae0b0e a1a25ac6c88a |
line wrap: on
line diff
--- a/src/editfns.c Mon Sep 11 08:26:37 2006 +0000 +++ b/src/editfns.c Mon Sep 11 08:26:47 2006 +0000 @@ -3178,6 +3178,9 @@ 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'.