Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
187e8501
Commit
187e8501
authored
Jun 10, 2019
by
Lars Ingebrigtsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the interstital unused function and clean up the macro def
parent
19d6e0f1
Pipeline
#1982
failed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/bytecomp.el
+4
-12
No files found.
lisp/emacs-lisp/bytecomp.el
View file @
187e8501
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment