Mercurial > emacs
changeset 110396:2103fda73355
* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defvar)
(byte-compile-defvar): "foo/bar" does not lack a prefix.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 17 Sep 2010 16:31:06 +0200 |
parents | 5be11972ce6a |
children | 18b3ea98b1f4 |
files | lisp/ChangeLog lisp/emacs-lisp/bytecomp.el |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Fri Sep 17 16:22:06 2010 +0200 +++ b/lisp/ChangeLog Fri Sep 17 16:31:06 2010 +0200 @@ -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>
--- a/lisp/emacs-lisp/bytecomp.el Fri Sep 17 16:22:06 2010 +0200 +++ b/lisp/emacs-lisp/bytecomp.el Fri Sep 17 16:31:06 2010 +0200 @@ -2154,7 +2154,7 @@ ;; 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 @@ (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)))