aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2011-03-22 17:24:09 -0700
committerPaul Eggert2011-03-22 17:24:09 -0700
commit2c520ab5fb6054f0f54804301e36d519387ccbab (patch)
tree0ec880a6bd0d3b82ea93caa1802601f31f2f7e67 /lisp
parent8af8e70ee535bd2d657a034e1452f78925c9ca38 (diff)
parent9d0da923ebd2b78abb6e02f0b90cfe9d818eb301 (diff)
downloademacs-2c520ab5fb6054f0f54804301e36d519387ccbab.tar.gz
emacs-2c520ab5fb6054f0f54804301e36d519387ccbab.zip
Merge from mainline.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/emacs-lisp/derived.el2
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6b7dd5a0463..e508174e118 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12011-03-22 Juanma Barranquero <lekktu@gmail.com>
2
3 * emacs-lisp/derived.el (define-derived-mode): Wrap declaration of
4 keymap variable in `with-no-warnings' to avoid a warning when the
5 keymap has been already `defconst'ed.
6
12011-03-22 Leo Liu <sdl.web@gmail.com> 72011-03-22 Leo Liu <sdl.web@gmail.com>
2 8
3 * abbrev.el (write-abbrev-file): Use utf-8 for writing if it can 9 * abbrev.el (write-abbrev-file): Use utf-8 for writing if it can
diff --git a/lisp/emacs-lisp/derived.el b/lisp/emacs-lisp/derived.el
index 425a77ee77f..1db98ac39c8 100644
--- a/lisp/emacs-lisp/derived.el
+++ b/lisp/emacs-lisp/derived.el
@@ -201,7 +201,7 @@ No problems result if this variable is not bound.
201 name)))) 201 name))))
202 (unless (boundp ',map) 202 (unless (boundp ',map)
203 (put ',map 'definition-name ',child)) 203 (put ',map 'definition-name ',child))
204 (defvar ,map (make-sparse-keymap)) 204 (with-no-warnings (defvar ,map (make-sparse-keymap)))
205 (unless (get ',map 'variable-documentation) 205 (unless (get ',map 'variable-documentation)
206 (put ',map 'variable-documentation 206 (put ',map 'variable-documentation
207 (purecopy ,(format "Keymap for `%s'." child)))) 207 (purecopy ,(format "Keymap for `%s'." child))))