From 0b7f397ca754d0fca96b9778329ec5206f445205 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Fri, 6 Nov 2009 07:50:54 +0000 Subject: [PATCH] * progmodes/ld-script.el (auto-mode-alist): * vc-hooks.el (vc-directory-exclusion-list): Purecopy strings. * cus-face.el (custom-declare-face): Purecopy face spec. --- lisp/ChangeLog | 7 +++++++ lisp/cus-face.el | 2 +- lisp/progmodes/ld-script.el | 7 ++++--- lisp/vc-hooks.el | 4 ++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 63e9caad901..380f208b2b1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2009-11-05 Dan Nicolaescu + + * progmodes/ld-script.el (auto-mode-alist): + * vc-hooks.el (vc-directory-exclusion-list): Purecopy strings. + + * cus-face.el (custom-declare-face): Purecopy face spec. + 2009-11-06 Kenichi Handa * international/uni-bidi.el: Re-generated. diff --git a/lisp/cus-face.el b/lisp/cus-face.el index 78c28b058da..c28b660b31b 100644 --- a/lisp/cus-face.el +++ b/lisp/cus-face.el @@ -50,7 +50,7 @@ (if have-window-system (make-face-x-resource-internal face))))) ;; Don't record SPEC until we see it causes no errors. - (put face 'face-defface-spec spec) + (put face 'face-defface-spec (purecopy spec)) (push (cons 'defface face) current-load-list) (when (and doc (null (face-documentation face))) (set-face-documentation face (purecopy doc))) diff --git a/lisp/progmodes/ld-script.el b/lisp/progmodes/ld-script.el index 617a50e2004..129415eb372 100644 --- a/lisp/progmodes/ld-script.el +++ b/lisp/progmodes/ld-script.el @@ -162,11 +162,12 @@ ;; eCos uses "ld" and "ldi". ;; Netbsd uses "ldscript.*". ;;;###autoload -(add-to-list 'auto-mode-alist '("\\.ld[si]?\\>" . ld-script-mode)) -(add-to-list 'auto-mode-alist '("ld\\.?script\\>" . ld-script-mode)) +(add-to-list 'auto-mode-alist (purecopy '("\\.ld[si]?\\>" . ld-script-mode))) +;;;###autoload +(add-to-list 'auto-mode-alist (purecopy '("ld\\.?script\\>" . ld-script-mode))) ;;;###autoload -(add-to-list 'auto-mode-alist '("\\.x[bdsru]?[cn]?\\'" . ld-script-mode)) +(add-to-list 'auto-mode-alist (purecopy '("\\.x[bdsru]?[cn]?\\'" . ld-script-mode))) ;;;###autoload (define-derived-mode ld-script-mode nil "LD-Script" diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index e8e3d743a2a..c1336d26924 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el @@ -77,9 +77,9 @@ An empty list disables VC altogether." ;; Note: we don't actually have a darcs back end yet. ;; Also, Meta-CVS (corresponsding to MCVS) is unsupported. -(defcustom vc-directory-exclusion-list '("SCCS" "RCS" "CVS" "MCVS" +(defcustom vc-directory-exclusion-list (purecopy '("SCCS" "RCS" "CVS" "MCVS" ".svn" ".git" ".hg" ".bzr" - "_MTN" "_darcs" "{arch}") + "_MTN" "_darcs" "{arch}")) "List of directory names to be ignored when walking directory trees." :type '(repeat string) :group 'vc) -- 2.39.2