Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9d0da923
Commit
9d0da923
authored
Mar 22, 2011
by
Juanma Barranquero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lisp/emacs-lisp/derived.el: Don't warn about keymaps already `defconst'ed.
parent
65084709
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/emacs-lisp/derived.el
lisp/emacs-lisp/derived.el
+1
-1
No files found.
lisp/ChangeLog
View file @
9d0da923
2011-03-22 Juanma Barranquero <lekktu@gmail.com>
* emacs-lisp/derived.el (define-derived-mode): Wrap declaration of
keymap variable in `with-no-warnings' to avoid a warning when the
keymap has been already `defconst'ed.
2011-03-22 Leo Liu <sdl.web@gmail.com>
* abbrev.el (write-abbrev-file): Use utf-8 for writing if it can
...
...
lisp/emacs-lisp/derived.el
View file @
9d0da923
...
...
@@ -201,7 +201,7 @@ No problems result if this variable is not bound.
name
))))
(
unless
(
boundp
',map
)
(
put
',map
'definition-name
',child
))
(
defvar
,
map
(
make-sparse-keymap
))
(
with-no-warnings
(
defvar
,
map
(
make-sparse-keymap
))
)
(
unless
(
get
',map
'variable-documentation
)
(
put
',map
'variable-documentation
(
purecopy
,
(
format
"Keymap for `%s'."
child
))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment