summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-06-09 18:16:33 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-06-09 18:16:33 +0200
commitc1980ab25a8650ae6ee124b1f5f1b265ef00d6b2 (patch)
tree9857a1f89caba7e8f18c79698c90a7d95bace398
parent087cfbc6ec71b3b1cf4db014edc9dc90d53e103c (diff)
downloademacs-c1980ab25a8650ae6ee124b1f5f1b265ef00d6b2.tar.gz
Expand the doc string to with-suppressed-warnings.
-rw-r--r--lisp/emacs-lisp/byte-run.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 8fe3ccaec72..5437ac017bd 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -501,9 +501,11 @@ WARNINGS is an associative list where the first element of each
list is a warning type, and the rest of the elements in each list
are symbols they apply to. For instance, if you want to suppress
byte compilation warnings about the two obsolete functions `foo'
-and `bar', say
+and `bar', and the obsolete variable `zot' (being called with the
+wrong number of parameters), say
-\(with-suppressed-warnings ((obsolete foo bar))
+\(with-suppressed-warnings ((obsolete foo bar)
+ (callargs zot))
(foo)
(bar))