Mercurial > emacs
comparison lisp/international/mule-cmds.el @ 105744:b0a732611398
* 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.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Sat, 24 Oct 2009 06:32:03 +0000 |
parents | 6b8dce5c4461 |
children | df4934f25eef |
comparison
equal
deleted
inserted
replaced
105743:f8478bbd8ebe | 105744:b0a732611398 |
---|---|
1172 Optional arg PARENTS is a list of parent menu names; it specifies | 1172 Optional arg PARENTS is a list of parent menu names; it specifies |
1173 where to put this language environment in the | 1173 where to put this language environment in the |
1174 Describe Language Environment and Set Language Environment menus. | 1174 Describe Language Environment and Set Language Environment menus. |
1175 For example, (\"European\") means to put this language environment | 1175 For example, (\"European\") means to put this language environment |
1176 in the European submenu in each of those two menus." | 1176 in the European submenu in each of those two menus." |
1177 (if (symbolp lang-env) | 1177 (cond ((symbolp lang-env) |
1178 (setq lang-env (symbol-name lang-env))) | 1178 (setq lang-env (symbol-name lang-env))) |
1179 ((stringp lang-env) | |
1180 (setq lang-env (purecopy lang-env)))) | |
1179 (let ((describe-map describe-language-environment-map) | 1181 (let ((describe-map describe-language-environment-map) |
1180 (setup-map setup-language-environment-map)) | 1182 (setup-map setup-language-environment-map)) |
1181 (if parents | 1183 (if parents |
1182 (let ((l parents) | 1184 (let ((l parents) |
1183 map parent-symbol parent prompt) | 1185 map parent-symbol parent prompt) |
1247 "Name of LEIM list file. | 1249 "Name of LEIM list file. |
1248 This file contains a list of libraries of Emacs input methods (LEIM) | 1250 This file contains a list of libraries of Emacs input methods (LEIM) |
1249 in the format of Lisp expression for registering each input method. | 1251 in the format of Lisp expression for registering each input method. |
1250 Emacs loads this file at startup time.") | 1252 Emacs loads this file at startup time.") |
1251 | 1253 |
1252 (defvar leim-list-header (format | 1254 (defconst leim-list-header (format |
1253 ";;; %s -- list of LEIM (Library of Emacs Input Method) -*-coding: utf-8;-*- | 1255 ";;; %s -- list of LEIM (Library of Emacs Input Method) -*-coding: utf-8;-*- |
1254 ;; | 1256 ;; |
1255 ;; This file is automatically generated. | 1257 ;; This file is automatically generated. |
1256 ;; | 1258 ;; |
1257 ;; This file contains a list of LEIM (Library of Emacs Input Method) | 1259 ;; This file contains a list of LEIM (Library of Emacs Input Method) |
1270 | 1272 |
1271 " | 1273 " |
1272 leim-list-file-name) | 1274 leim-list-file-name) |
1273 "Header to be inserted in LEIM list file.") | 1275 "Header to be inserted in LEIM list file.") |
1274 | 1276 |
1275 (defvar leim-list-entry-regexp "^(register-input-method" | 1277 (defconst leim-list-entry-regexp "^(register-input-method" |
1276 "Regexp matching head of each entry in LEIM list file. | 1278 "Regexp matching head of each entry in LEIM list file. |
1277 See also the variable `leim-list-header'.") | 1279 See also the variable `leim-list-header'.") |
1278 | 1280 |
1279 (defvar update-leim-list-functions | 1281 (defvar update-leim-list-functions |
1280 '(quail-update-leim-list-file) | 1282 '(quail-update-leim-list-file) |
1863 | 1865 |
1864 (run-hooks 'set-language-environment-hook) | 1866 (run-hooks 'set-language-environment-hook) |
1865 (force-mode-line-update t)) | 1867 (force-mode-line-update t)) |
1866 | 1868 |
1867 (define-widget 'charset 'symbol | 1869 (define-widget 'charset 'symbol |
1868 "An Emacs charset." | 1870 (purecopy "An Emacs charset.") |
1869 :tag "Charset" | 1871 :tag "Charset" |
1870 :complete-function (lambda () | 1872 :complete-function (lambda () |
1871 (interactive) | 1873 (interactive) |
1872 (lisp-complete-symbol 'charsetp)) | 1874 (lisp-complete-symbol 'charsetp)) |
1873 :completion-ignore-case t | 1875 :completion-ignore-case t |
2743 (or (and (eq (char-table-subtype table) 'char-code-property-table) | 2745 (or (and (eq (char-table-subtype table) 'char-code-property-table) |
2744 (eq (char-table-extra-slot table 0) name)) | 2746 (eq (char-table-extra-slot table 0) name)) |
2745 (error "Invalid char-table: %s" table)) | 2747 (error "Invalid char-table: %s" table)) |
2746 (or (stringp table) | 2748 (or (stringp table) |
2747 (error "Not a char-table nor a file name: %s" table))) | 2749 (error "Not a char-table nor a file name: %s" table))) |
2750 (if (stringp table) (purecopy table)) | |
2748 (let ((slot (assq name char-code-property-alist))) | 2751 (let ((slot (assq name char-code-property-alist))) |
2749 (if slot | 2752 (if slot |
2750 (setcdr slot table) | 2753 (setcdr slot table) |
2751 (setq char-code-property-alist | 2754 (setq char-code-property-alist |
2752 (cons (cons name table) char-code-property-alist)))) | 2755 (cons (cons name table) char-code-property-alist)))) |
2753 (put name 'char-code-property-documentation docstring)) | 2756 (put name 'char-code-property-documentation (purecopy docstring))) |
2754 | 2757 |
2755 (defvar char-code-property-table | 2758 (defvar char-code-property-table |
2756 (make-char-table 'char-code-property-table) | 2759 (make-char-table 'char-code-property-table) |
2757 "Char-table containing a property list of each character code. | 2760 "Char-table containing a property list of each character code. |
2758 This table is used for properties not listed in `char-code-property-alist'. | 2761 This table is used for properties not listed in `char-code-property-alist'. |