]> git.eshelyaron.com Git - emacs.git/commitdiff
* puresize.h (BASE_PURESIZE): Increase to 1470000.
authorDan Nicolaescu <dann@ics.uci.edu>
Fri, 30 Oct 2009 02:00:11 +0000 (02:00 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Fri, 30 Oct 2009 02:00:11 +0000 (02:00 +0000)
* 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.

19 files changed:
lisp/ChangeLog
lisp/bindings.el
lisp/cmuscheme.el
lisp/files.el
lisp/ielm.el
lisp/international/fontset.el
lisp/international/mule-conf.el
lisp/language/tibetan.el
lisp/mail/sendmail.el
lisp/paths.el
lisp/progmodes/inf-lisp.el
lisp/progmodes/python.el
lisp/shell.el
lisp/simple.el
lisp/startup.el
lisp/textmodes/ispell.el
src/ChangeLog
src/lread.c
src/puresize.h

index 0bafee5cd58012bf6dc55c9610e85b1287db3609..0826ad8ef44d8f790502f266cfa769d156d4d4c5 100644 (file)
@@ -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)
index 568d8de5f720aac9c897f5a4da9149627d61b8cf..7fdfb3ee5d56e82e97d8eb879890f5167cb4b900 100644 (file)
@@ -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) "\
index e3ac459512ee9135ad2437c2d3ba777f5433d02d..aebf55d2768afd3f6f2bc99ab3376b47f4138598 100644 (file)
@@ -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.
index 1b158ca1ac42330f0c7b9159010afde0c043e64c..11249a4cd36305244217f2539ec8120f21080d6a 100644 (file)
@@ -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)
 
index ad7565f22635e26e858a37ff117dda69499350e0..10451877e8aa828de5c524f293c4b455de7f55c4 100644 (file)
@@ -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
index dd8b86346315c4000bd171e9d634d3294ea05daa..87ea17805cb97610d4b41c437e5c22db52171f0d 100644 (file)
@@ -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)
        ("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)
 
index 8805d5c17aa9fe6aeb56c25f93dfc11acebf4c23..9b231015529e947b466f1666c8ea88e1a4cbc3a7 100644 (file)
 (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)
 
index 6b0c06649c33d06db549bc601b6042f2337b6b82..cad73c01cc02ae1b1e50a9d357fcafaa46c7e09f 100644 (file)
@@ -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
index ee9ed70f8c33b8db0e245c4fed25380975163a87..9a55f4051adbe7d1c57c08c501e062fd63ad9915 100644 (file)
@@ -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)
index 401a981cd8785405eecb5e801fcf79a580916eb0..ea10762a3aa0293d4d9e2263df963e1aa9eb8506 100644 (file)
@@ -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.")
index 84b3b797b65f2caff1711946507d6ae67bec22e5..83a650a48131d73f8ac8db4fc18140649f1b4da4 100644 (file)
@@ -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)
index eb33c760b64f6df43f887a4ca969c239aeb98141..77e10cf06e09752b7bda21740d1cd9dcc69497aa 100644 (file)
@@ -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*"))
 \f
 ;;;; Font lock
 
index dde06ef075f9e543a6e2757901d2587267f223c6..df5dee2618b069e7d8f75c181502acb418dd7d3e 100644 (file)
@@ -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
 ;;
index 117a93bcc0fafaf37027038ed6dccd2f19cd95df..dbdcfde8ef42206afaba5d1e6eec44c7f6929c68 100644 (file)
@@ -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)
index aaf9df26e0838a0eb7789c982823d944f84e2a29..3c070f4e954323c1c48d25998d6d272cfc54d7c7 100644 (file)
@@ -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))
index c8db66fcce6adeb7aaa2b457c2440389ed0686a5..5005d70d2bc403ed568f73b610bf0ddf66add81a 100644 (file)
@@ -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.
index b7dfa322779a0373da30bd4dbd0a692a49f0a3fa..44cc92450c4269bc1a572ee5164526d75288c39f 100644 (file)
@@ -1,3 +1,9 @@
+2009-10-30  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * puresize.h (BASE_PURESIZE): Increase to 1470000.
+
+       * lread.c (Fload): Purecopy the file name when building Vpreloaded_file_list.
+
 2009-10-29  Jason Rumney  <jasonr@wanchan.jasonrumney.net>
 
        * w32fns.c (syms_of_w32fns): Change default value of
index 19b6c05143bf9252dec6fdd4a0e4a88888e71cde..ada447f7c508da5e04d0f082fd82bdcaadc004dc 100644 (file)
@@ -1242,7 +1242,7 @@ Return t if the file exists and loads successfully.  */)
     }
 
   if (! NILP (Vpurify_flag))
-    Vpreloaded_file_list = Fcons (file, Vpreloaded_file_list);
+    Vpreloaded_file_list = Fcons (Fpurecopy(file), Vpreloaded_file_list);
 
   if (NILP (nomessage) || force_load_messages)
     {
index b6665c006497a81db35673ea28c64bcf2426b960..44367dabb8350ad8b7cfca0dd69a7227a43f095b 100644 (file)
@@ -41,7 +41,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #endif
 
 #ifndef BASE_PURESIZE
-#define BASE_PURESIZE (1430000 + SYSTEM_PURESIZE_EXTRA + SITELOAD_PURESIZE_EXTRA)
+#define BASE_PURESIZE (1470000 + SYSTEM_PURESIZE_EXTRA + SITELOAD_PURESIZE_EXTRA)
 #endif
 
 /* Increase BASE_PURESIZE by a ratio depending on the machine's word size.  */