aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2024-12-09 03:39:56 +0100
committerStefan Kangas2024-12-12 22:48:17 +0100
commit04408e198f1acc2eeae2ca299de994ba38116d1a (patch)
tree484556283beddd0ae4618e2c3c38029df59a3bdc
parenta4e38cc3753ac416181c0ead758d174093eb3526 (diff)
downloademacs-04408e198f1acc2eeae2ca299de994ba38116d1a.tar.gz
emacs-04408e198f1acc2eeae2ca299de994ba38116d1a.zip
Don't call purecopy in progmodes/*.el
* lisp/progmodes/compile.el (compile-command): * lisp/progmodes/etags.el (tags-compression-info-list): * lisp/progmodes/grep.el (grep-program, find-program, xargs-program): * lisp/progmodes/js.el (interpreter-mode-alist): * lisp/progmodes/python.el (interpreter-mode-alist): * lisp/progmodes/ruby-mode.el (auto-mode-alist, interpreter-mode-alist): * lisp/progmodes/vera-mode.el: Remove calls to purecopy.
-rw-r--r--lisp/progmodes/compile.el2
-rw-r--r--lisp/progmodes/etags.el4
-rw-r--r--lisp/progmodes/grep.el6
-rw-r--r--lisp/progmodes/js.el2
-rw-r--r--lisp/progmodes/python.el2
-rw-r--r--lisp/progmodes/ruby-mode.el20
-rw-r--r--lisp/progmodes/vera-mode.el2
7 files changed, 19 insertions, 19 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index ac1042e21e6..49c1694f5d5 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -935,7 +935,7 @@ The value nil as an element means to try the default directory."
935 (string :tag "Directory")))) 935 (string :tag "Directory"))))
936 936
937;;;###autoload 937;;;###autoload
938(defcustom compile-command (purecopy "make -k ") 938(defcustom compile-command "make -k "
939 "Last shell command used to do a compilation; default for next compilation. 939 "Last shell command used to do a compilation; default for next compilation.
940 940
941Sometimes it is useful for files to supply local values for this variable. 941Sometimes it is useful for files to supply local values for this variable.
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index ca69817953e..2b40dbc6150 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -44,7 +44,7 @@ invoke `visit-tags-table', which is the only reliable way of
44setting the value of this variable, whether buffer-local or global. 44setting the value of this variable, whether buffer-local or global.
45Use the `etags' program to make a tags table file.") 45Use the `etags' program to make a tags table file.")
46;; Make M-x set-variable tags-file-name like M-x visit-tags-table. 46;; Make M-x set-variable tags-file-name like M-x visit-tags-table.
47;;;###autoload (put 'tags-file-name 'variable-interactive (purecopy "fVisit tags table: ")) 47;;;###autoload (put 'tags-file-name 'variable-interactive "fVisit tags table: ")
48;;;###autoload (put 'tags-file-name 'safe-local-variable 'stringp) 48;;;###autoload (put 'tags-file-name 'safe-local-variable 'stringp)
49 49
50(defgroup etags nil "Tags tables." 50(defgroup etags nil "Tags tables."
@@ -73,7 +73,7 @@ Use the `etags' program to make a tags table file."
73 73
74;;;###autoload 74;;;###autoload
75(defcustom tags-compression-info-list 75(defcustom tags-compression-info-list
76 (purecopy '("" ".Z" ".bz2" ".gz" ".xz" ".tgz")) 76 '("" ".Z" ".bz2" ".gz" ".xz" ".tgz")
77 "List of extensions tried by etags when `auto-compression-mode' is on. 77 "List of extensions tried by etags when `auto-compression-mode' is on.
78An empty string means search the non-compressed file." 78An empty string means search the non-compressed file."
79 :version "24.1" ; added xz 79 :version "24.1" ; added xz
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index ed8d6e9e0d9..d70c78da00f 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -545,18 +545,18 @@ redundant).")
545This gets tacked on the end of the generated expressions.") 545This gets tacked on the end of the generated expressions.")
546 546
547;;;###autoload 547;;;###autoload
548(defvar grep-program (purecopy "grep") 548(defvar grep-program "grep"
549 "The default grep program for `grep-command' and `grep-find-command'. 549 "The default grep program for `grep-command' and `grep-find-command'.
550This variable's value takes effect when `grep-compute-defaults' is called.") 550This variable's value takes effect when `grep-compute-defaults' is called.")
551 551
552;;;###autoload 552;;;###autoload
553(defvar find-program (purecopy "find") 553(defvar find-program "find"
554 "The default find program. 554 "The default find program.
555This is used by commands like `grep-find-command', `find-dired' 555This is used by commands like `grep-find-command', `find-dired'
556and others.") 556and others.")
557 557
558;;;###autoload 558;;;###autoload
559(defvar xargs-program (purecopy "xargs") 559(defvar xargs-program "xargs"
560 "The default xargs program for `grep-find-command'. 560 "The default xargs program for `grep-find-command'.
561See `grep-find-use-xargs'. 561See `grep-find-use-xargs'.
562This variable's value takes effect when `grep-compute-defaults' is called.") 562This variable's value takes effect when `grep-compute-defaults' is called.")
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index dbf721e8d0f..d10a7ab7198 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -4041,7 +4041,7 @@ one of the aforementioned options instead of using this mode."
4041 4041
4042;;;###autoload 4042;;;###autoload
4043(dolist (name (list "node" "nodejs" "gjs" "rhino")) 4043(dolist (name (list "node" "nodejs" "gjs" "rhino"))
4044 (add-to-list 'interpreter-mode-alist (cons (purecopy name) 'js-mode))) 4044 (add-to-list 'interpreter-mode-alist (cons name 'js-mode)))
4045 4045
4046(provide 'js) 4046(provide 'js)
4047 4047
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index cfa3cc59568..cdc1f267ea3 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -291,7 +291,7 @@
291;;;###autoload 291;;;###autoload
292(add-to-list 'auto-mode-alist (cons python--auto-mode-alist-regexp 'python-mode)) 292(add-to-list 'auto-mode-alist (cons python--auto-mode-alist-regexp 'python-mode))
293;;;###autoload 293;;;###autoload
294(add-to-list 'interpreter-mode-alist (cons (purecopy "python[0-9.]*") 'python-mode)) 294(add-to-list 'interpreter-mode-alist '("python[0-9.]*" python-mode))
295 295
296(defgroup python nil 296(defgroup python nil
297 "Python Language's flying circus support for Emacs." 297 "Python Language's flying circus support for Emacs."
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 4c37ef45ddf..8170dd8970f 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -2733,20 +2733,20 @@ Currently there are `ruby-mode' and `ruby-ts-mode'."
2733 2733
2734;;;###autoload 2734;;;###autoload
2735(add-to-list 'auto-mode-alist 2735(add-to-list 'auto-mode-alist
2736 (cons (purecopy (concat "\\(?:\\.\\(?:" 2736 (cons (concat "\\(?:\\.\\(?:"
2737 "rbw?\\|ru\\|rake\\|thor\\|axlsx" 2737 "rbw?\\|ru\\|rake\\|thor\\|axlsx"
2738 "\\|jbuilder\\|rabl\\|gemspec\\|podspec" 2738 "\\|jbuilder\\|rabl\\|gemspec\\|podspec"
2739 "\\)" 2739 "\\)"
2740 "\\|/" 2740 "\\|/"
2741 "\\(?:Gem\\|Rake\\|Cap\\|Thor" 2741 "\\(?:Gem\\|Rake\\|Cap\\|Thor"
2742 "\\|Puppet\\|Berks\\|Brew\\|Fast" 2742 "\\|Puppet\\|Berks\\|Brew\\|Fast"
2743 "\\|Vagrant\\|Guard\\|Pod\\)file" 2743 "\\|Vagrant\\|Guard\\|Pod\\)file"
2744 "\\)\\'")) 2744 "\\)\\'")
2745 'ruby-mode)) 2745 'ruby-mode))
2746 2746
2747;;;###autoload 2747;;;###autoload
2748(dolist (name (list "ruby" "rbx" "jruby" "j?ruby\\(?:[0-9.]+\\)")) 2748(dolist (name (list "ruby" "rbx" "jruby" "j?ruby\\(?:[0-9.]+\\)"))
2749 (add-to-list 'interpreter-mode-alist (cons (purecopy name) 'ruby-mode))) 2749 (add-to-list 'interpreter-mode-alist (cons name 'ruby-mode)))
2750 2750
2751;; See ruby-ts-mode.el for why we do this. 2751;; See ruby-ts-mode.el for why we do this.
2752(setq major-mode-remap-defaults 2752(setq major-mode-remap-defaults
diff --git a/lisp/progmodes/vera-mode.el b/lisp/progmodes/vera-mode.el
index 184cce66ae4..b3002127ff1 100644
--- a/lisp/progmodes/vera-mode.el
+++ b/lisp/progmodes/vera-mode.el
@@ -208,7 +208,7 @@ If nil, TAB always indents current line."
208;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 208;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
209;; Mode definition 209;; Mode definition
210 210
211;;;###autoload (add-to-list 'auto-mode-alist (cons (purecopy "\\.vr[hi]?\\'") 'vera-mode)) 211;;;###autoload (add-to-list 'auto-mode-alist '("\\.vr[hi]?\\'" vera-mode))
212 212
213;;;###autoload 213;;;###autoload
214(define-derived-mode vera-mode prog-mode "Vera" 214(define-derived-mode vera-mode prog-mode "Vera"