]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defvar)
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 17 Sep 2010 14:31:06 +0000 (16:31 +0200)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 17 Sep 2010 14:31:06 +0000 (16:31 +0200)
(byte-compile-defvar): "foo/bar" does not lack a prefix.

lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el

index e1aeae2e17af4470845684b072a17abd625374c8..8ced74de42ac63202adbb3e00cb01789f998cded 100644 (file)
@@ -1,5 +1,8 @@
 2010-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * emacs-lisp/bytecomp.el (byte-compile-file-form-defvar)
+       (byte-compile-defvar): "foo/bar" does not lack a prefix.
+
        * subr.el (y-or-n-p): Add the "(y or n)" that was lost somehow.
 
 2010-09-17  Stephen Berman  <stephen.berman@gmx.net>
index cf12847d093e9a0f80cf656c3c0da90c072e9fa6..aca3a54d14f97e4a18d0f58091ae992209a4822f 100644 (file)
@@ -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)))