diff options
| author | Stefan Monnier | 2010-09-17 16:31:06 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-09-17 16:31:06 +0200 |
| commit | 3fe6ef4e36bf853b4b99c2520c9bf066023329e0 (patch) | |
| tree | d8b677b1b631569be73fafb7d34ff0657ea3f981 | |
| parent | 63556fc6fa4abc8307551d1738d4cc9be5a65d94 (diff) | |
| download | emacs-3fe6ef4e36bf853b4b99c2520c9bf066023329e0.tar.gz emacs-3fe6ef4e36bf853b4b99c2520c9bf066023329e0.zip | |
* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defvar)
(byte-compile-defvar): "foo/bar" does not lack a prefix.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e1aeae2e17a..8ced74de42a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * emacs-lisp/bytecomp.el (byte-compile-file-form-defvar) | ||
| 4 | (byte-compile-defvar): "foo/bar" does not lack a prefix. | ||
| 5 | |||
| 3 | * subr.el (y-or-n-p): Add the "(y or n)" that was lost somehow. | 6 | * subr.el (y-or-n-p): Add the "(y or n)" that was lost somehow. |
| 4 | 7 | ||
| 5 | 2010-09-17 Stephen Berman <stephen.berman@gmx.net> | 8 | 2010-09-17 Stephen Berman <stephen.berman@gmx.net> |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index cf12847d093..aca3a54d14f 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -2154,7 +2154,7 @@ list that represents a doc string reference. | |||
| 2154 | ;; and not do a file-boundary. | 2154 | ;; and not do a file-boundary. |
| 2155 | (byte-compile-keep-pending form) | 2155 | (byte-compile-keep-pending form) |
| 2156 | (when (and (symbolp (nth 1 form)) | 2156 | (when (and (symbolp (nth 1 form)) |
| 2157 | (not (string-match "[-*:$]" (symbol-name (nth 1 form)))) | 2157 | (not (string-match "[-*/:$]" (symbol-name (nth 1 form)))) |
| 2158 | (byte-compile-warning-enabled-p 'lexical)) | 2158 | (byte-compile-warning-enabled-p 'lexical)) |
| 2159 | (byte-compile-warn "Global/dynamic var `%s' lacks a prefix" | 2159 | (byte-compile-warn "Global/dynamic var `%s' lacks a prefix" |
| 2160 | (nth 1 form))) | 2160 | (nth 1 form))) |
| @@ -3810,7 +3810,7 @@ that suppresses all warnings during execution of BODY." | |||
| 3810 | (defun byte-compile-defvar (form) | 3810 | (defun byte-compile-defvar (form) |
| 3811 | ;; This is not used for file-level defvar/consts with doc strings. | 3811 | ;; This is not used for file-level defvar/consts with doc strings. |
| 3812 | (when (and (symbolp (nth 1 form)) | 3812 | (when (and (symbolp (nth 1 form)) |
| 3813 | (not (string-match "[-*:$]" (symbol-name (nth 1 form)))) | 3813 | (not (string-match "[-*/:$]" (symbol-name (nth 1 form)))) |
| 3814 | (byte-compile-warning-enabled-p 'lexical)) | 3814 | (byte-compile-warning-enabled-p 'lexical)) |
| 3815 | (byte-compile-warn "Global/dynamic var `%s' lacks a prefix" | 3815 | (byte-compile-warn "Global/dynamic var `%s' lacks a prefix" |
| 3816 | (nth 1 form))) | 3816 | (nth 1 form))) |