diff options
| author | Sam Steingold | 2011-02-01 16:37:12 -0500 |
|---|---|---|
| committer | Sam Steingold | 2011-02-01 16:37:12 -0500 |
| commit | e8e4d5c88e04390481b3156c0e5efe40979d8519 (patch) | |
| tree | 91e183a5d20a036e1e03c544e693adfa8b09ec73 | |
| parent | abef340a0c5304054a2a5e6d95e1d825501f0e7a (diff) | |
| download | emacs-e8e4d5c88e04390481b3156c0e5efe40979d8519.tar.gz emacs-e8e4d5c88e04390481b3156c0e5efe40979d8519.zip | |
undo 2011-02-01T18:15:18Z!sds@gnu.org (purecopy-cons, purecopy-car) at Stefan Monnier's request
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/faces.el | 3 | ||||
| -rw-r--r-- | lisp/files.el | 6 | ||||
| -rw-r--r-- | lisp/international/fontset.el | 3 | ||||
| -rw-r--r-- | lisp/international/mule-conf.el | 2 | ||||
| -rw-r--r-- | lisp/international/mule.el | 8 | ||||
| -rw-r--r-- | lisp/mouse.el | 2 | ||||
| -rw-r--r-- | lisp/subr.el | 7 | ||||
| -rw-r--r-- | lisp/term/x-win.el | 3 |
9 files changed, 16 insertions, 31 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d4f9358f2ef..5bed23d3059 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -31,19 +31,6 @@ | |||
| 31 | Inherit from `special-mode-map'. | 31 | Inherit from `special-mode-map'. |
| 32 | * vc/log-view.el (log-view-mode-map): Add a comment. | 32 | * vc/log-view.el (log-view-mode-map): Add a comment. |
| 33 | 33 | ||
| 34 | 2011-02-01 Sam Steingold <sds@gnu.org> | ||
| 35 | |||
| 36 | * subr.el (purecopy-cons, purecopy-car): Add shortcuts. | ||
| 37 | * faces.el (face-x-resources): Use `purecopy-cons'. | ||
| 38 | * files.el (auto-mode-alist, interpreter-mode-alist): Use | ||
| 39 | `purecopy-car'. | ||
| 40 | * international/fontset.el (font-encoding-alist): Ditto. | ||
| 41 | * international/mule-conf.el (file-coding-system-alist): Ditto. | ||
| 42 | * international/mule.el (auto-coding-alist) | ||
| 43 | (auto-coding-regexp-alist): Ditto. | ||
| 44 | * mouse.el (mouse-buffer-menu-mode-groups): Use `purecopy-cons'. | ||
| 45 | * term/x-win.el (x-gtk-stock-map): Ditto. | ||
| 46 | |||
| 47 | 2011-02-01 Chong Yidong <cyd@stupidchicken.com> | 34 | 2011-02-01 Chong Yidong <cyd@stupidchicken.com> |
| 48 | 35 | ||
| 49 | * custom.el (load-theme): Define return value. Drop use of | 36 | * custom.el (load-theme): Define return value. Drop use of |
diff --git a/lisp/faces.el b/lisp/faces.el index 9d6d3416c01..a9d26de604b 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -261,7 +261,8 @@ If FRAME is omitted or nil, use the selected frame." | |||
| 261 | (mapcar | 261 | (mapcar |
| 262 | (lambda (arg) | 262 | (lambda (arg) |
| 263 | ;; FIXME; can we purecopy some of the conses too? | 263 | ;; FIXME; can we purecopy some of the conses too? |
| 264 | (cons (car arg) (purecopy-cons (cdr arg)))) | 264 | (cons (car arg) |
| 265 | (cons (purecopy (car (cdr arg))) (purecopy (cdr (cdr arg)))))) | ||
| 265 | '((:family (".attributeFamily" . "Face.AttributeFamily")) | 266 | '((:family (".attributeFamily" . "Face.AttributeFamily")) |
| 266 | (:foundry (".attributeFoundry" . "Face.AttributeFoundry")) | 267 | (:foundry (".attributeFoundry" . "Face.AttributeFoundry")) |
| 267 | (:width (".attributeWidth" . "Face.AttributeWidth")) | 268 | (:width (".attributeWidth" . "Face.AttributeWidth")) |
diff --git a/lisp/files.el b/lisp/files.el index 220870588fb..8b42eaaddb8 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2229,7 +2229,8 @@ since only a single case-insensitive search through the alist is made." | |||
| 2229 | ;; directives in that file. That way is discouraged since it | 2229 | ;; directives in that file. That way is discouraged since it |
| 2230 | ;; spreads out the definition of the initial value. | 2230 | ;; spreads out the definition of the initial value. |
| 2231 | (mapcar | 2231 | (mapcar |
| 2232 | 'purecopy-car | 2232 | (lambda (elt) |
| 2233 | (cons (purecopy (car elt)) (cdr elt))) | ||
| 2233 | `(;; do this first, so that .html.pl is Polish html, not Perl | 2234 | `(;; do this first, so that .html.pl is Polish html, not Perl |
| 2234 | ("\\.[sx]?html?\\(\\.[a-zA-Z_]+\\)?\\'" . html-mode) | 2235 | ("\\.[sx]?html?\\(\\.[a-zA-Z_]+\\)?\\'" . html-mode) |
| 2235 | ("\\.svgz?\\'" . image-mode) | 2236 | ("\\.svgz?\\'" . image-mode) |
| @@ -2453,7 +2454,8 @@ and `magic-mode-alist', which determines modes based on file contents.") | |||
| 2453 | ;; file. That way is discouraged since it spreads out the | 2454 | ;; file. That way is discouraged since it spreads out the |
| 2454 | ;; definition of the initial value. | 2455 | ;; definition of the initial value. |
| 2455 | (mapcar | 2456 | (mapcar |
| 2456 | 'purecopy-car | 2457 | (lambda (l) |
| 2458 | (cons (purecopy (car l)) (cdr l))) | ||
| 2457 | '(("perl" . perl-mode) | 2459 | '(("perl" . perl-mode) |
| 2458 | ("perl5" . perl-mode) | 2460 | ("perl5" . perl-mode) |
| 2459 | ("miniperl" . perl-mode) | 2461 | ("miniperl" . perl-mode) |
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el index da82a15468b..777779e5ec5 100644 --- a/lisp/international/fontset.el +++ b/lisp/international/fontset.el | |||
| @@ -33,7 +33,8 @@ | |||
| 33 | ;; Setup font-encoding-alist for all known encodings. | 33 | ;; Setup font-encoding-alist for all known encodings. |
| 34 | 34 | ||
| 35 | (setq font-encoding-alist | 35 | (setq font-encoding-alist |
| 36 | (mapcar 'purecopy-car | 36 | (mapcar (lambda (arg) |
| 37 | (cons (purecopy (car arg)) (cdr arg))) | ||
| 37 | '(("iso8859-1$" . iso-8859-1) | 38 | '(("iso8859-1$" . iso-8859-1) |
| 38 | ("iso8859-2$" . iso-8859-2) | 39 | ("iso8859-2$" . iso-8859-2) |
| 39 | ("iso8859-3$" . iso-8859-3) | 40 | ("iso8859-3$" . iso-8859-3) |
diff --git a/lisp/international/mule-conf.el b/lisp/international/mule-conf.el index 55a96b6cca1..9ba95e4d11a 100644 --- a/lisp/international/mule-conf.el +++ b/lisp/international/mule-conf.el | |||
| @@ -1505,7 +1505,7 @@ for decoding and encoding files, process I/O, etc." | |||
| 1505 | ;; Tar files are not decoded at all, but we treat them as raw bytes. | 1505 | ;; Tar files are not decoded at all, but we treat them as raw bytes. |
| 1506 | 1506 | ||
| 1507 | (setq file-coding-system-alist | 1507 | (setq file-coding-system-alist |
| 1508 | (mapcar 'purecopy-car | 1508 | (mapcar (lambda (arg) (cons (purecopy (car arg)) (cdr arg))) |
| 1509 | '(("\\.elc\\'" . utf-8-emacs) | 1509 | '(("\\.elc\\'" . utf-8-emacs) |
| 1510 | ("\\.utf\\(-8\\)?\\'" . utf-8) | 1510 | ("\\.utf\\(-8\\)?\\'" . utf-8) |
| 1511 | ("\\.xml\\'" . xml-find-file-coding-system) | 1511 | ("\\.xml\\'" . xml-find-file-coding-system) |
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 2da15b5f9bd..4a387a233a0 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -1671,11 +1671,11 @@ in-place." | |||
| 1671 | (defcustom auto-coding-alist | 1671 | (defcustom auto-coding-alist |
| 1672 | ;; .exe and .EXE are added to support archive-mode looking at DOS | 1672 | ;; .exe and .EXE are added to support archive-mode looking at DOS |
| 1673 | ;; self-extracting exe archives. | 1673 | ;; self-extracting exe archives. |
| 1674 | (mapcar 'purecopy-car | 1674 | (mapcar (lambda (arg) (cons (purecopy (car arg)) (cdr arg))) |
| 1675 | '(("\\.\\(\ | 1675 | '(("\\.\\(\ |
| 1676 | arc\\|zip\\|lzh\\|lha\\|zoo\\|[jew]ar\\|xpi\\|rar\\|7z\\|\ | 1676 | arc\\|zip\\|lzh\\|lha\\|zoo\\|[jew]ar\\|xpi\\|rar\\|7z\\|\ |
| 1677 | ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" | 1677 | ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" |
| 1678 | . no-conversion-multibyte) | 1678 | . no-conversion-multibyte) |
| 1679 | ("\\.\\(exe\\|EXE\\)\\'" . no-conversion) | 1679 | ("\\.\\(exe\\|EXE\\)\\'" . no-conversion) |
| 1680 | ("\\.\\(sx[dmicw]\\|odt\\|tar\\|tgz\\)\\'" . no-conversion) | 1680 | ("\\.\\(sx[dmicw]\\|odt\\|tar\\|tgz\\)\\'" . no-conversion) |
| 1681 | ("\\.\\(gz\\|Z\\|bz\\|bz2\\|xz\\|gpg\\)\\'" . no-conversion) | 1681 | ("\\.\\(gz\\|Z\\|bz\\|bz2\\|xz\\|gpg\\)\\'" . no-conversion) |
| @@ -1696,7 +1696,7 @@ and the contents of `file-coding-system-alist'." | |||
| 1696 | (symbol :tag "Coding system")))) | 1696 | (symbol :tag "Coding system")))) |
| 1697 | 1697 | ||
| 1698 | (defcustom auto-coding-regexp-alist | 1698 | (defcustom auto-coding-regexp-alist |
| 1699 | (mapcar 'purecopy-car | 1699 | (mapcar (lambda (arg) (cons (purecopy (car arg)) (cdr arg))) |
| 1700 | '(("\\`BABYL OPTIONS:[ \t]*-\\*-[ \t]*rmail[ \t]*-\\*-" . no-conversion) | 1700 | '(("\\`BABYL OPTIONS:[ \t]*-\\*-[ \t]*rmail[ \t]*-\\*-" . no-conversion) |
| 1701 | ("\\`\xFE\xFF" . utf-16be-with-signature) | 1701 | ("\\`\xFE\xFF" . utf-16be-with-signature) |
| 1702 | ("\\`\xFF\xFE" . utf-16le-with-signature) | 1702 | ("\\`\xFF\xFE" . utf-16le-with-signature) |
diff --git a/lisp/mouse.el b/lisp/mouse.el index 45a43bb9aee..c0b86d45028 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -1719,7 +1719,7 @@ a large number if you prefer a mixed multitude. The default is 4." | |||
| 1719 | :version "20.3") | 1719 | :version "20.3") |
| 1720 | 1720 | ||
| 1721 | (defvar mouse-buffer-menu-mode-groups | 1721 | (defvar mouse-buffer-menu-mode-groups |
| 1722 | (mapcar 'purecopy-cons | 1722 | (mapcar (lambda (arg) (cons (purecopy (car arg)) (purecopy (cdr arg)))) |
| 1723 | '(("Info\\|Help\\|Apropos\\|Man" . "Help") | 1723 | '(("Info\\|Help\\|Apropos\\|Man" . "Help") |
| 1724 | ("\\bVM\\b\\|\\bMH\\b\\|Message\\|Mail\\|Group\\|Score\\|Summary\\|Article" | 1724 | ("\\bVM\\b\\|\\bMH\\b\\|Message\\|Mail\\|Group\\|Score\\|Summary\\|Article" |
| 1725 | . "Mail/News") | 1725 | . "Mail/News") |
diff --git a/lisp/subr.el b/lisp/subr.el index 2eca62c0e45..3330fa20379 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2320,13 +2320,6 @@ BEG and END default respectively to the beginning and end of buffer." | |||
| 2320 | 2320 | ||
| 2321 | ;;;; Miscellanea. | 2321 | ;;;; Miscellanea. |
| 2322 | 2322 | ||
| 2323 | (defun purecopy-cons (arg) | ||
| 2324 | "Return a copy of ARG from a `purecopy' of the car and cdr of ARG." | ||
| 2325 | (cons (purecopy (car arg)) (purecopy (cdr arg)))) | ||
| 2326 | (defun purecopy-car (arg) | ||
| 2327 | "Return a copy of ARG whose car is a `purecopy' of the car of ARG." | ||
| 2328 | (cons (purecopy (car arg)) (cdr arg))) | ||
| 2329 | |||
| 2330 | (defvar suspend-hook nil | 2323 | (defvar suspend-hook nil |
| 2331 | "Normal hook run by `suspend-emacs', before suspending.") | 2324 | "Normal hook run by `suspend-emacs', before suspending.") |
| 2332 | 2325 | ||
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index c966fc561cb..1ec80d5c277 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -1447,7 +1447,8 @@ Request data types in the order specified by `x-select-request-type'." | |||
| 1447 | (define-key special-event-map [drag-n-drop] 'x-dnd-handle-drag-n-drop-event) | 1447 | (define-key special-event-map [drag-n-drop] 'x-dnd-handle-drag-n-drop-event) |
| 1448 | 1448 | ||
| 1449 | (defcustom x-gtk-stock-map | 1449 | (defcustom x-gtk-stock-map |
| 1450 | (mapcar 'purecopy-cons | 1450 | (mapcar (lambda (arg) |
| 1451 | (cons (purecopy (car arg)) (purecopy (cdr arg)))) | ||
| 1451 | '( | 1452 | '( |
| 1452 | ("etc/images/new" . "gtk-new") | 1453 | ("etc/images/new" . "gtk-new") |
| 1453 | ("etc/images/open" . "gtk-open") | 1454 | ("etc/images/open" . "gtk-open") |