diff options
author | Sam Steingold <sds@gnu.org> | 2011-02-01 13:15:18 -0500 |
---|---|---|
committer | Sam Steingold <sds@gnu.org> | 2011-02-01 13:15:18 -0500 |
commit | 0b75349e7e197c3783153ca2231b2c206513812b (patch) | |
tree | 84d922c2a7e7c8af173a4059a991577d48c3ffe7 /lisp/subr.el | |
parent | 928f4e732d8b605b682cb6d41c9452028083047a (diff) | |
download | emacs-0b75349e7e197c3783153ca2231b2c206513812b.tar.gz |
* lisp/subr.el (purecopy-cons, purecopy-car): Add shortcuts.
* lisp/faces.el (face-x-resources): Use `purecopy-cons'.
* lisp/files.el (auto-mode-alist, interpreter-mode-alist): Use
`purecopy-car'.
* lisp/international/fontset.el (font-encoding-alist): Ditto.
* lisp/international/mule-conf.el (file-coding-system-alist): Ditto.
* lisp/international/mule.el (auto-coding-alist)
(auto-coding-regexp-alist): Ditto.
* lisp/mouse.el (mouse-buffer-menu-mode-groups): Use `purecopy-cons'.
* lisp/term/x-win.el (x-gtk-stock-map): Ditto.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 3330fa20379..45afbb31286 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2320,6 +2320,13 @@ BEG and END default respectively to the beginning and end of buffer." ;;;; Miscellanea. +(defun purecopy-cons (arg) + "Purecopy both car and cdr of the pair argument." + (cons (purecopy (car arg)) (purecopy (cdr arg)))) +(defun purecopy-car (arg) + "Purecopy the car of the pair argument." + (cons (purecopy (car arg)) (cdr arg))) + (defvar suspend-hook nil "Normal hook run by `suspend-emacs', before suspending.") |