From e83a00ddc1eede6d51cbc94862f4fa89c887509f Mon Sep 17 00:00:00 2001 From: Michael Heerdegen Date: Thu, 3 Mar 2022 01:47:17 +0100 Subject: [PATCH] WIP: with-demoted-errors: document FORMAT arg nil --- lisp/subr.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/subr.el b/lisp/subr.el index eb9af0b36d..bb077267f8 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -4541,8 +4541,9 @@ 'condition-case-no-debug (defmacro with-demoted-errors (format &rest body) "Run BODY and demote any errors to simple messages. -FORMAT is a string passed to `message' to format any error message. -It should contain a single %-sequence; e.g., \"Error: %S\". +FORMAT is a string passed to `message' to format any error message, or nil. +If it is a string, it should contain a single %-sequence. If it is +nil, \"Error: %S\" is used. If `debug-on-error' is non-nil, run BODY without catching its errors. This is to be used around code that is not expected to signal an error -- 2.30.2