mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-16 19:00:55 -08:00
* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defvar)
(byte-compile-defvar): "foo/bar" does not lack a prefix.
This commit is contained in:
parent
63556fc6fa
commit
3fe6ef4e36
2 changed files with 5 additions and 2 deletions
|
|
@ -2154,7 +2154,7 @@ list that represents a doc string reference.
|
|||
;; and not do a file-boundary.
|
||||
(byte-compile-keep-pending form)
|
||||
(when (and (symbolp (nth 1 form))
|
||||
(not (string-match "[-*:$]" (symbol-name (nth 1 form))))
|
||||
(not (string-match "[-*/:$]" (symbol-name (nth 1 form))))
|
||||
(byte-compile-warning-enabled-p 'lexical))
|
||||
(byte-compile-warn "Global/dynamic var `%s' lacks a prefix"
|
||||
(nth 1 form)))
|
||||
|
|
@ -3810,7 +3810,7 @@ that suppresses all warnings during execution of BODY."
|
|||
(defun byte-compile-defvar (form)
|
||||
;; This is not used for file-level defvar/consts with doc strings.
|
||||
(when (and (symbolp (nth 1 form))
|
||||
(not (string-match "[-*:$]" (symbol-name (nth 1 form))))
|
||||
(not (string-match "[-*/:$]" (symbol-name (nth 1 form))))
|
||||
(byte-compile-warning-enabled-p 'lexical))
|
||||
(byte-compile-warn "Global/dynamic var `%s' lacks a prefix"
|
||||
(nth 1 form)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue