summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-06-10 13:00:55 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-06-10 13:00:55 +0200
commit187e8501d61703b64db073ce9287f4f96493d30c (patch)
tree92ba7af77ba2a8348c954a90a0a4e360dba930f0
parent19d6e0f1a5ca948b4a93af6b7a91c2e6229f2a5e (diff)
downloademacs-187e8501d61703b64db073ce9287f4f96493d30c.tar.gz
Remove the interstital unused function and clean up the macro def
-rw-r--r--lisp/emacs-lisp/bytecomp.el16
1 files changed, 4 insertions, 12 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 9d04c9ef0e0..b00963c5c13 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -514,10 +514,10 @@ Return the compile-time value of FORM."
expanded)))))
(with-suppressed-warnings
. ,(lambda (warnings &rest body)
- (list #'internal--with-suppressed-warnings
- (list 'quote warnings)
- (macroexpand-all (cons 'progn body)
- macroexpand-all-environment)))))
+ `(internal--with-suppressed-warnings
+ ',warnings
+ ,(macroexpand-all `(progn ,@body)
+ macroexpand-all-environment)))))
"The default macro-environment passed to macroexpand by the compiler.
Placing a macro here will cause a macro to have different semantics when
expanded by the compiler as when expanded by the interpreter.")
@@ -2535,14 +2535,6 @@ list that represents a doc string reference.
(mapc 'byte-compile-file-form (cdr form))
nil))
-(defun internal--with-suppressed-warnings (_ &rest body)
- "Placeholder function used to connect between macro and byte compilation.
-`byte-compile-initial-macro-environment' maps
-`with-suppressed-warnings' to
-`internal--with-suppressed-warnings', and the `byte-hunk-handler'
-for that function basically turns it into a `progn'."
- (car (last body)))
-
(put 'internal--with-suppressed-warnings 'byte-hunk-handler
'byte-compile-file-form-with-suppressed-warnings)
(defun byte-compile-file-form-with-suppressed-warnings (form)