]> code.delx.au - gnu-emacs/blobdiff - doc/lispref/control.texi
Warn about read-passwd in batch mode
[gnu-emacs] / doc / lispref / control.texi
index 0d6aaff81c5619f53c1d44711293f32d21aec2be..edf60dd5cc8f1953aeb896cd3b8dc8f5af8b3685 100644 (file)
@@ -1252,10 +1252,13 @@ Here's the example at the beginning of this subsection rewritten using
 @end example
 @end defmac
 
-@defmac with-demoted-errors body@dots{}
+@defmac with-demoted-errors format body@dots{}
 This macro is like a milder version of @code{ignore-errors}.  Rather
 than suppressing errors altogether, it converts them into messages.
-Use this form around code that is not expected to signal errors, but
+It uses the string @var{format} to format the message.
+@var{format} should contain a single @samp{%}-sequence; e.g.,
+@code{"Error: %S"}.  Use @code{with-demoted-errors} around code
+that is not expected to signal errors, but
 should be robust if one does occur.  Note that this macro uses
 @code{condition-case-unless-debug} rather than @code{condition-case}.
 @end defmac