diff options
| author | Dan Nicolaescu | 2009-10-24 06:32:03 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2009-10-24 06:32:03 +0000 |
| commit | 905a9ed3923847f0323b5ad6f2e26558336fe9c0 (patch) | |
| tree | 4cb4582eacfa663d308fc7152e8d0fb277624977 /src/keymap.c | |
| parent | 1dee7c238bf93b8192cbb615f408bed230fefeda (diff) | |
| download | emacs-905a9ed3923847f0323b5ad6f2e26558336fe9c0.tar.gz emacs-905a9ed3923847f0323b5ad6f2e26558336fe9c0.zip | |
* keymap.c (Fmake_sparse_keymap): Purecopy the name.
* eval.c (Fautoload): Purecopy the filename. Simplify.
* category.c (Fdefine_category): Purecopy docstring.
* international/mule-cmds.el (set-language-info-alist): Purecopy lang-env.
(leim-list-header, leim-list-entry-regexp): Change defvars to defconst.
(charset): Purecopy the name.
(define-char-code-property): Purecopy string arguments.
* emacs-lisp/byte-run.el (make-obsolete, make-obsolete-variable):
Purecopy string arguments.
* emacs-lisp/lisp-mode.el (emacs-lisp-mode-map):
* ediff-hook.el (menu-bar-ediff-menu):
* buff-menu.el (Buffer-menu-mode-map): Purecopy names and tooltips.
* bookmark.el (menu-bar-bookmark-map): Add :help and purecopy the name.
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/keymap.c b/src/keymap.c index d050191dc4e..2dddeab998d 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -170,7 +170,11 @@ in case you use it as a menu with `x-popup-menu'. */) | |||
| 170 | Lisp_Object string; | 170 | Lisp_Object string; |
| 171 | { | 171 | { |
| 172 | if (!NILP (string)) | 172 | if (!NILP (string)) |
| 173 | return Fcons (Qkeymap, Fcons (string, Qnil)); | 173 | { |
| 174 | if (!NILP (Vpurify_flag)) | ||
| 175 | string = Fpurecopy (string); | ||
| 176 | return Fcons (Qkeymap, Fcons (string, Qnil)); | ||
| 177 | } | ||
| 174 | return Fcons (Qkeymap, Qnil); | 178 | return Fcons (Qkeymap, Qnil); |
| 175 | } | 179 | } |
| 176 | 180 | ||