aboutsummaryrefslogtreecommitdiff
path: root/compat-27.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-01-14 20:55:19 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2023-02-07 16:51:17 +0100
commit041624f7150fca931888c96be56ca39f36718a62 (patch)
treec2bed1253c2d28bcffd551d780febbc7185135ab /compat-27.el
parentb0dc9210a6ba6fdab58e5b0c1dc1960cbdacc132 (diff)
compat-27: Add with-suppressed-warnings
Diffstat (limited to 'compat-27.el')
-rw-r--r--compat-27.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/compat-27.el b/compat-27.el
index 2be27a6..151948f 100644
--- a/compat-27.el
+++ b/compat-27.el
@@ -393,6 +393,13 @@ the minibuffer was activated, and execute the forms."
(with-selected-window window
,@body)))
+;;;; Defined in byte-run.el
+
+(defmacro with-suppressed-warnings (_warnings &rest body) ;; <compat-tests:with-suppressed-warnings>
+ "Like `progn', but prevents compiler WARNINGS in BODY.
+NOTE: The compatibility version behaves like `with-no-warnings'."
+ `(with-no-warnings ,@body))
+
;;;; Defined in image.el
(compat-defun image--set-property (image property value) ;; <compat-tests:image-property>