changeset 72801:861a71881b6a

(Fmessage): Recommend using (message "%s" ...).
author Kim F. Storm <storm@cua.dk>
date Mon, 11 Sep 2006 08:26:47 +0000
parents cd552bf3f6a7
children b1d4304c3c6c
files src/editfns.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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'.