]> git.eshelyaron.com Git - emacs.git/commit
(with-demoted-errors): Warn on missing `format` arg
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 5 Feb 2022 00:39:53 +0000 (19:39 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 5 Feb 2022 00:39:53 +0000 (19:39 -0500)
commitd52c929e31f60ff0462371bfe27ebd479e3e82bd
treeb4b4085047333c005b10cee884c8dedef586128b
parentb4f1ceaf241239b8fc7ad1e91af62f4e425bda8a
(with-demoted-errors): Warn on missing `format` arg

The `format` arg has been mandatory for a while, but the backward
compatibility code that handled the case of a missing `format` arg
made it hard to notice when using the old calling convention.

* lisp/subr.el (with-demoted-errors): Warn on missing `format` arg.

* lisp/emacs-lisp/smie.el (smie-indent--separator-outdent): Don't abuse
`with-demoted-errors`.
(smie-indent-line, smie-auto-fill):
* test/lisp/emacs-lisp/ert-tests.el (ert-test-with-demoted-errors):
* lisp/vc/vc-hooks.el (vc-refresh-state):
* lisp/vc/vc-annotate.el (vc-annotate-background-mode):
* lisp/vc/diff-mode.el (diff-syntax-fontify-hunk):
* lisp/textmodes/reftex-toc.el (reftex-re-enlarge):
* lisp/progmodes/sh-script.el (sh-smie-sh-rules):
* lisp/progmodes/octave.el (inferior-octave-startup):
* lisp/pcmpl-gnu.el (pcmpl-gnu-make-all-targets):
* lisp/org/org-refile.el (org-refile):
* lisp/org/org-capture.el (org-capture-store-last-position):
* lisp/nxml/nxml-mode.el (nxml-mode):
* lisp/notifications.el (notifications-notify):
* lisp/gnus/mm-view.el (mm-display-inline-fontify):
* lisp/finder.el (finder-unload-function):
* lisp/files.el (safe-local-variable-p, backup-buffer-copy
* lisp/autorevert.el (auto-revert-notify-handler):
Pass `format` arg to `with-demoted-errors`.
19 files changed:
lisp/autorevert.el
lisp/emacs-lisp/smie.el
lisp/files.el
lisp/finder.el
lisp/gnus/mm-view.el
lisp/net/tramp.el
lisp/notifications.el
lisp/nxml/nxml-mode.el
lisp/org/org-capture.el
lisp/org/org-refile.el
lisp/pcmpl-gnu.el
lisp/progmodes/octave.el
lisp/progmodes/sh-script.el
lisp/subr.el
lisp/textmodes/reftex-toc.el
lisp/vc/diff-mode.el
lisp/vc/vc-annotate.el
lisp/vc/vc-hooks.el
test/lisp/emacs-lisp/ert-tests.el