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
a9c3082d
Commit
a9c3082d
authored
Jun 09, 2019
by
Lars Ingebrigtsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use internal variable name for byte-compile--suppressed-warnings
parent
831955fb
Pipeline
#1964
failed with stage
in 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/bytecomp.el
+7
-6
No files found.
lisp/emacs-lisp/bytecomp.el
View file @
a9c3082d
...
...
@@ -331,7 +331,8 @@ suppress. For example, (not mapcar) will suppress warnings about mapcar."
,@(mapcar (lambda (x) `(const ,x))
byte-compile-warning-types))))
(defvar byte-compile-suppressed-warnings nil)
(defvar byte-compile--suppressed-warnings nil
"
Dynamically
bound
by
`
with-suppressed-warnings
'
to
suppress
warnings.
")
;;;###autoload
(put 'byte-compile-warnings 'safe-local-variable
...
...
@@ -342,7 +343,7 @@ suppress. For example, (not mapcar) will suppress warnings about mapcar."
(defun byte-compile-warning-enabled-p (warning &optional symbol)
"
Return
non-nil
if
WARNING
is
enabled,
according
to
`
byte-compile-warnings
'.
"
(let ((suppress nil))
(dolist (elem byte-compile-suppressed-warnings)
(dolist (elem byte-compile-
-
suppressed-warnings)
(when (and (eq (car elem) warning)
(memq symbol (cdr elem)))
(setq suppress t)))
...
...
@@ -2546,8 +2547,8 @@ for that function basically turns it into a `progn'."
'byte-compile-file-form-with-suppressed-warnings
)
(
defun
byte-compile-file-form-with-suppressed-warnings
(
form
)
;; cf byte-compile-file-form-progn.
(
let
((
byte-compile-suppressed-warnings
(
append
(
cadadr
form
)
byte-compile-suppressed-warnings
)))
(
let
((
byte-compile-
-
suppressed-warnings
(
append
(
cadadr
form
)
byte-compile-
-
suppressed-warnings
)))
(
mapc
'byte-compile-file-form
(
cddr
form
))
nil
))
...
...
@@ -4802,8 +4803,8 @@ binding slots have been popped."
(
byte-defop-compiler-1
internal--with-suppressed-warnings
byte-compile-suppressed-warnings
)
(
defun
byte-compile-suppressed-warnings
(
form
)
(
let
((
byte-compile-suppressed-warnings
(
append
(
cadadr
form
)
byte-compile-suppressed-warnings
)))
(
let
((
byte-compile-
-
suppressed-warnings
(
append
(
cadadr
form
)
byte-compile-
-
suppressed-warnings
)))
(
byte-compile-progn
(
cons
'progn
(
cddr
form
)))
nil
))
...
...
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