2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
+ * progmodes/grep.el (grep-regexp-alist):
+ * international/mule-cmds.el (iso-2022-control-alist):
+ * emacs-lisp/timer.el (timer-duration-words):
+ * subr.el (version-separator, version-regexp-alist):
+ * minibuffer.el (completion-styles-alist):
+ * faces.el (face-attribute-name-alist, list-faces-sample-text):
+ Change defvars to defconsts.
+
* Makefile.in (ELCFILES): Add international/mule-conf.elc.
* loadup.el ("international/mule-conf"): Load the byte compiled version.
* international/mule-conf.el: Allow to be byte compiled.
(with-timeout (seconds default-value)
(y-or-n-p prompt)))
\f
-(defvar timer-duration-words
+(defconst timer-duration-words
(list (cons "microsec" 0.000001)
(cons "microsecond" 0.000001)
(cons "millisec" 0.001)
valid)))
-(defvar face-attribute-name-alist
+(defconst face-attribute-name-alist
'((:family . "font family")
(:foundry . "font foundry")
(:width . "character set width")
;;; Listing faces.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(defvar list-faces-sample-text
+(defconst list-faces-sample-text
"abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"*Text string to display as the sample text for `list-faces-display'.")
;; Pretty description of encoded string
;; Alist of ISO 2022 control code vs the corresponding mnemonic string.
-(defvar iso-2022-control-alist
+(defconst iso-2022-control-alist
'((?\x1b . "ESC")
(?\x0e . "SO")
(?\x0f . "SI")
:type '(choice (const nil) (const t) (const lazy))
:group 'minibuffer)
-(defvar completion-styles-alist
+(defconst completion-styles-alist
'((emacs21
completion-emacs21-try-completion completion-emacs21-all-completions
"Simple prefix-based completion.")
`complation-last-buffer' rather than `grep-last-buffer'.")
;;;###autoload
-(defvar grep-regexp-alist
+(defconst grep-regexp-alist
'(("^\\(.+?\\)\\(:[ \t]*\\)\\([0-9]+\\)\\2"
1 3)
;; Rule to match column numbers is commented out since no known grep
\f
;;;; Comparing version strings.
-(defvar version-separator "."
+(defconst version-separator "."
"*Specify the string used to separate the version elements.
Usually the separator is \".\", but it can be any other string.")
-(defvar version-regexp-alist
+(defconst version-regexp-alist
'(("^[-_+ ]?a\\(lpha\\)?$" . -3)
("^[-_+]$" . -3) ; treat "1.2.3-20050920" and "1.2-3" as alpha releases
("^[-_+ ]cvs$" . -3) ; treat "1.2.3-CVS" as alpha release