summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2009-10-30 02:00:11 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2009-10-30 02:00:11 +0000
commit78e97352bf64349bad5adc433cfb0b1df61ed3de (patch)
tree73ca2cf49aa2deac23915346644691376b5b5d68 /lisp
parent20b3498646c1ddbce6430a5ef517a7dbafca01f0 (diff)
downloademacs-78e97352bf64349bad5adc433cfb0b1df61ed3de.tar.gz
* puresize.h (BASE_PURESIZE): Increase to 1470000.
* lread.c (Fload): Purecopy the file name when building Vpreloaded_file_list. * textmodes/ispell.el (ispell-skip-region-alist): * international/mule-conf.el (eight-bit): * international/fontset.el (font-encoding-alist): * startup.el (pure-space-overflow-message): * simple.el (overwrite-mode-textual, overwrite-mode-binary): * paths.el (gnus-nntp-service, rmail-spool-directory) (term-file-prefix): * files.el (save-some-buffers-action-alist): * cmuscheme.el (same-window-buffer-names): * ielm.el (same-window-buffer-names): * shell.el (same-window-buffer-names): * mail/sendmail.el (same-window-buffer-names): * progmodes/inf-lisp.el (same-window-buffer-names): * bindings.el (mode-line-client) (mode-line-column-line-number-mode-map): * language/tibetan.el (tibetan-precomposition-rule-regexp) (tibetan-precomposed-regexp): Purecopy string arguments.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog20
-rw-r--r--lisp/bindings.el6
-rw-r--r--lisp/cmuscheme.el2
-rw-r--r--lisp/files.el4
-rw-r--r--lisp/ielm.el2
-rw-r--r--lisp/international/fontset.el4
-rw-r--r--lisp/international/mule-conf.el4
-rw-r--r--lisp/language/tibetan.el6
-rw-r--r--lisp/mail/sendmail.el2
-rw-r--r--lisp/paths.el7
-rw-r--r--lisp/progmodes/inf-lisp.el2
-rw-r--r--lisp/progmodes/python.el4
-rw-r--r--lisp/shell.el2
-rw-r--r--lisp/simple.el4
-rw-r--r--lisp/startup.el4
-rw-r--r--lisp/textmodes/ispell.el12
16 files changed, 55 insertions, 30 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0bafee5cd58..0826ad8ef44 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,23 @@
+2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * textmodes/ispell.el (ispell-skip-region-alist):
+ * international/mule-conf.el (eight-bit):
+ * international/fontset.el (font-encoding-alist):
+ * startup.el (pure-space-overflow-message):
+ * simple.el (overwrite-mode-textual, overwrite-mode-binary):
+ * paths.el (gnus-nntp-service, rmail-spool-directory)
+ (term-file-prefix):
+ * files.el (save-some-buffers-action-alist):
+ * cmuscheme.el (same-window-buffer-names):
+ * ielm.el (same-window-buffer-names):
+ * shell.el (same-window-buffer-names):
+ * mail/sendmail.el (same-window-buffer-names):
+ * progmodes/inf-lisp.el (same-window-buffer-names):
+ * bindings.el (mode-line-client)
+ (mode-line-column-line-number-mode-map):
+ * language/tibetan.el (tibetan-precomposition-rule-regexp)
+ (tibetan-precomposed-regexp): Purecopy string arguments.
+
2009-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
* calc/calc.el (calc, calc-refresh, calc-trail-buffer, calc-record)
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 568d8de5f72..7fdfb3ee5d5 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -151,7 +151,7 @@ corresponding to the mode line clicked."
(defvar mode-line-client
`(""
(:propertize ("" (:eval (if (frame-parameter nil 'client) "@" "")))
- help-echo "emacsclient frame"))
+ help-echo ,(purecopy "emacsclient frame")))
"Mode-line control for identifying emacsclient frames.")
;;;###autoload
(put 'mode-line-client 'risky-local-variable t)
@@ -315,11 +315,11 @@ Keymap to display on minor modes.")
(menu-map (make-sparse-keymap "Toggle Line and Column Number Display")))
(define-key menu-map [line-number-mode]
`(menu-item ,(purecopy "Display Line Numbers") line-number-mode
- :help "Toggle displaying line numbers in the mode-line"
+ :help ,(purecopy "Toggle displaying line numbers in the mode-line")
:button (:toggle . line-number-mode)))
(define-key menu-map [column-number-mode]
`(menu-item ,(purecopy "Display Column Numbers") column-number-mode
- :help "Toggle displaying column numbers in the mode-line"
+ :help ,(purecopy "Toggle displaying column numbers in the mode-line")
:button (:toggle . column-number-mode)))
(define-key map [mode-line down-mouse-1] menu-map)
map) "\
diff --git a/lisp/cmuscheme.el b/lisp/cmuscheme.el
index e3ac459512e..aebf55d2768 100644
--- a/lisp/cmuscheme.el
+++ b/lisp/cmuscheme.el
@@ -248,7 +248,7 @@ is run).
(setq scheme-program-name cmd)
(setq scheme-buffer "*scheme*")
(pop-to-buffer "*scheme*"))
-;;;###autoload (add-hook 'same-window-buffer-names "*scheme*")
+;;;###autoload (add-hook 'same-window-buffer-names (purecopy "*scheme*"))
(defun scheme-start-file (prog)
"Return the name of the start file corresponding to PROG.
diff --git a/lisp/files.el b/lisp/files.el
index 1b158ca1ac4..11249a4cd36 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4400,7 +4400,7 @@ This requires the external program `diff' to be in your `exec-path'."
(recursive-edit))
;; Return nil to ask about BUF again.
nil)
- "view this buffer")
+ ,(purecopy "view this buffer"))
(?d ,(lambda (buf)
(if (null (buffer-file-name buf))
(message "Not applicable: no file")
@@ -4413,7 +4413,7 @@ This requires the external program `diff' to be in your `exec-path'."
(recursive-edit)))
;; Return nil to ask about BUF again.
nil)
- "view changes in this buffer"))
+ ,(purecopy "view changes in this buffer")))
"ACTION-ALIST argument used in call to `map-y-or-n-p'.")
(put 'save-some-buffers-action-alist 'risky-local-variable t)
diff --git a/lisp/ielm.el b/lisp/ielm.el
index ad7565f2263..10451877e8a 100644
--- a/lisp/ielm.el
+++ b/lisp/ielm.el
@@ -541,7 +541,7 @@ Customized bindings may be defined in `ielm-map', which currently contains:
;;; User command
-;;;###autoload (add-hook 'same-window-buffer-names "*ielm*")
+;;;###autoload (add-hook 'same-window-buffer-names (purecopy "*ielm*"))
;;;###autoload
(defun ielm nil
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el
index dd8b8634631..87ea17805cb 100644
--- a/lisp/international/fontset.el
+++ b/lisp/international/fontset.el
@@ -34,6 +34,8 @@
;; Setup font-encoding-alist for all known encodings.
(setq font-encoding-alist
+ (mapcar (lambda (arg)
+ (cons (purecopy (car arg)) (cdr arg)))
'(("iso8859-1$" . iso-8859-1)
("iso8859-2$" . iso-8859-2)
("iso8859-3$" . iso-8859-3)
@@ -116,7 +118,7 @@
("mulelao-1" . mule-lao)
("muletibetan-2" . tibetan)
("muletibetan-0" . tibetan)
- ("muletibetan-1" . tibetan-1-column)))
+ ("muletibetan-1" . tibetan-1-column))))
(defvar font-encoding-charset-alist)
diff --git a/lisp/international/mule-conf.el b/lisp/international/mule-conf.el
index 8805d5c17aa..9b231015529 100644
--- a/lisp/international/mule-conf.el
+++ b/lisp/international/mule-conf.el
@@ -109,8 +109,8 @@
(put-charset-property
'emacs :long-name "Emacs")
-(put-charset-property 'eight-bit :docstring "Raw bytes 128-255")
-(put-charset-property 'eight-bit :short-name "Raw bytes")
+(put-charset-property 'eight-bit :docstring (purecopy "Raw bytes 128-255"))
+(put-charset-property 'eight-bit :short-name (purecopy "Raw bytes"))
(define-charset-alias 'ucs 'unicode)
diff --git a/lisp/language/tibetan.el b/lisp/language/tibetan.el
index 6b0c06649c3..cad73c01cc0 100644
--- a/lisp/language/tibetan.el
+++ b/lisp/language/tibetan.el
@@ -568,6 +568,7 @@ The result of matching is to be used for indexing alists at conversion
from a roman transcription to the corresponding Tibetan character.")
(defvar tibetan-precomposed-regexp
+ (purecopy
(let ((l tibetan-precomposed-transcription-alist)
temp)
(setq temp "^\\(")
@@ -578,12 +579,13 @@ from a roman transcription to the corresponding Tibetan character.")
(setq temp
(concat temp "\\|" (car (car l))))
(setq l (cdr l)))
- (concat temp "\\)"))
+ (concat temp "\\)")))
"Regexp string to match a romanized Tibetan complex consonant.
The result of matching is to be used for indexing alists when the input key
from an input method is converted to the corresponding precomposed glyph.")
(defvar tibetan-precomposition-rule-regexp
+ (purecopy
(let ((l tibetan-precomposition-rule-alist)
temp)
(setq temp "\\(")
@@ -592,7 +594,7 @@ from an input method is converted to the corresponding precomposed glyph.")
(while l
(setq temp (concat temp "\\|" (car (car l))))
(setq l (cdr l)))
- (concat temp "\\)"))
+ (concat temp "\\)")))
"Regexp string to match a sequence of Tibetan consonantic components, i.e.,
one base consonant and one or more subjoined consonants.
The result of matching is to be used for indexing alist when the component
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index ee9ed70f8c3..9a55f4051ad 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -1645,7 +1645,7 @@ If the current line has `mail-yank-prefix', insert it on the new line."
;; Put these commands last, to reduce chance of lossage from quitting
;; in middle of loading the file.
-;;;###autoload (add-hook 'same-window-buffer-names "*mail*")
+;;;###autoload (add-hook 'same-window-buffer-names (purecopy "*mail*"))
;;;###autoload
(defun mail (&optional noerase to subject in-reply-to cc replybuffer actions)
diff --git a/lisp/paths.el b/lisp/paths.el
index 401a981cd87..ea10762a3aa 100644
--- a/lisp/paths.el
+++ b/lisp/paths.el
@@ -122,7 +122,7 @@ the environment variable INFOPATH is set.")
The name of the host running an NNTP server.
The null string means use the local host as the server site.")
-(defvar gnus-nntp-service "nntp" "\
+(defvar gnus-nntp-service (purecopy "nntp") "\
NNTP service name, usually \"nntp\" or 119.
Go to a local news spool if its value is nil, in which case `gnus-nntp-server'
should be set to `(system-name)'.")
@@ -138,6 +138,7 @@ Name of user's primary mail file."
:version "21.1")
(defvar rmail-spool-directory
+ (purecopy
(cond ((file-exists-p "/var/mail")
;; SVR4 and recent BSD are said to use this.
;; Rather than trying to know precisely which systems use it,
@@ -148,7 +149,7 @@ Name of user's primary mail file."
"/var/spool/mail/")
((memq system-type '(hpux usg-unix-v irix))
"/usr/mail/")
- (t "/usr/spool/mail/"))
+ (t "/usr/spool/mail/")))
"Name of directory used by system mailer for delivering new mail.
Its name should end with a slash.")
@@ -177,7 +178,7 @@ Its name should end with a slash.")
:group 'environment
:type 'file)
-(defvar term-file-prefix "term/" "\
+(defvar term-file-prefix (purecopy "term/") "\
If non-nil, Emacs startup does (load (concat term-file-prefix (getenv \"TERM\")))
You may set this variable to nil in your `.emacs' file if you do not wish
the terminal-initialization file to be loaded.")
diff --git a/lisp/progmodes/inf-lisp.el b/lisp/progmodes/inf-lisp.el
index 84b3b797b65..83a650a4813 100644
--- a/lisp/progmodes/inf-lisp.el
+++ b/lisp/progmodes/inf-lisp.el
@@ -308,7 +308,7 @@ of `inferior-lisp-program'). Runs the hooks from
(inferior-lisp-mode)))
(setq inferior-lisp-buffer "*inferior-lisp*")
(pop-to-buffer "*inferior-lisp*"))
-;;;###autoload (add-hook 'same-window-buffer-names "*inferior-lisp*")
+;;;###autoload (add-hook 'same-window-buffer-names (purecopy "*inferior-lisp*"))
;;;###autoload
(defalias 'run-lisp 'inferior-lisp)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index eb33c760b64..77e10cf06e0 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -87,8 +87,8 @@
;;;###autoload
(add-to-list 'interpreter-mode-alist '("python" . python-mode))
;;;###autoload
-(add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))
-(add-to-list 'same-window-buffer-names "*Python*")
+(add-to-list 'auto-mode-alist (cons (purecopy "\\.py\\'") 'python-mode))
+(add-to-list 'same-window-buffer-names (purecopy "*Python*"))
;;;; Font lock
diff --git a/lisp/shell.el b/lisp/shell.el
index dde06ef075f..df5dee2618b 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -575,7 +575,7 @@ Otherwise, one argument `-i' is passed to the shell.
buffer)
;; Don't do this when shell.el is loaded, only while dumping.
-;;;###autoload (add-hook 'same-window-buffer-names "*shell*")
+;;;###autoload (add-hook 'same-window-buffer-names (purecopy "*shell*"))
;;; Directory tracking
;;
diff --git a/lisp/simple.el b/lisp/simple.el
index 117a93bcc0f..dbdcfde8ef4 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5228,9 +5228,9 @@ if long lines are truncated."
(message "Word wrapping %s"
(if word-wrap "enabled" "disabled")))
-(defvar overwrite-mode-textual " Ovwrt"
+(defvar overwrite-mode-textual (purecopy " Ovwrt")
"The string displayed in the mode line when in overwrite mode.")
-(defvar overwrite-mode-binary " Bin Ovwrt"
+(defvar overwrite-mode-binary (purecopy " Bin Ovwrt")
"The string displayed in the mode line when in binary overwrite mode.")
(defun overwrite-mode (arg)
diff --git a/lisp/startup.el b/lisp/startup.el
index aaf9df26e08..3c070f4e954 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -382,9 +382,9 @@ from being initialized."
(defvar pure-space-overflow nil
"Non-nil if building Emacs overflowed pure space.")
-(defvar pure-space-overflow-message "\
+(defvar pure-space-overflow-message (purecopy "\
Warning Warning!!! Pure space overflow !!!Warning Warning
-\(See the node Pure Storage in the Lisp manual for details.)\n")
+\(See the node Pure Storage in the Lisp manual for details.)\n"))
(defcustom tutorial-directory
(file-name-as-directory (expand-file-name "tutorials" data-directory))
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index c8db66fcce6..5005d70d2bc 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1393,16 +1393,16 @@ The last occurring definition in the buffer will be used.")
;;;###autoload
(defvar ispell-skip-region-alist
- '((ispell-words-keyword forward-line)
+ `((ispell-words-keyword forward-line)
(ispell-dictionary-keyword forward-line)
(ispell-pdict-keyword forward-line)
(ispell-parsing-keyword forward-line)
- ("^---*BEGIN PGP [A-Z ]*--*" . "^---*END PGP [A-Z ]*--*")
+ (,(purecopy "^---*BEGIN PGP [A-Z ]*--*") . ,(purecopy "^---*END PGP [A-Z ]*--*"))
;; assume multiline uuencoded file? "\nM.*$"?
- ("^begin [0-9][0-9][0-9] [^ \t]+$" . "\nend\n")
- ("^%!PS-Adobe-[123].0" . "\n%%EOF\n")
- ("^---* \\(Start of \\)?[Ff]orwarded [Mm]essage"
- . "^---* End of [Ff]orwarded [Mm]essage")
+ (,(purecopy "^begin [0-9][0-9][0-9] [^ \t]+$") . ,(purecopy "\nend\n"))
+ (,(purecopy "^%!PS-Adobe-[123].0") . ,(purecopy "\n%%EOF\n"))
+ (,(purecopy "^---* \\(Start of \\)?[Ff]orwarded [Mm]essage")
+ . ,(purecopy "^---* End of [Ff]orwarded [Mm]essage"))
;; Matches e-mail addresses, file names, http addresses, etc. The
;; `-+' `_+' patterns are necessary for performance reasons when
;; `-' or `_' part of word syntax.