diff options
| author | Richard M. Stallman | 1996-12-16 01:33:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-12-16 01:33:02 +0000 |
| commit | d7fa5aa239688e198a88571183b218566ef0b90a (patch) | |
| tree | b79dff93e6fd72f37dd67337523483567fa9a7f1 | |
| parent | 4c8a3b19ec8c278a1a1e7c3fd4a29af525bf9286 (diff) | |
| download | emacs-d7fa5aa239688e198a88571183b218566ef0b90a.tar.gz emacs-d7fa5aa239688e198a88571183b218566ef0b90a.zip | |
Change defconsts to defvars.
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 6 | ||||
| -rw-r--r-- | lisp/faces.el | 8 | ||||
| -rw-r--r-- | lisp/files.el | 52 | ||||
| -rw-r--r-- | lisp/isearch.el | 10 | ||||
| -rw-r--r-- | lisp/startup.el | 19 | ||||
| -rw-r--r-- | lisp/textmodes/fill.el | 12 | ||||
| -rw-r--r-- | lisp/textmodes/paragraphs.el | 8 |
7 files changed, 59 insertions, 56 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index b86e497682d..26eab753c38 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -330,8 +330,8 @@ With argument, insert value in current buffer after the defun." | |||
| 330 | (max (if (bolp) 0 (1+ (current-column))) | 330 | (max (if (bolp) 0 (1+ (current-column))) |
| 331 | comment-column)))) | 331 | comment-column)))) |
| 332 | 332 | ||
| 333 | (defconst lisp-indent-offset nil "") | 333 | (defvar lisp-indent-offset nil "") |
| 334 | (defconst lisp-indent-function 'lisp-indent-function "") | 334 | (defvar lisp-indent-function 'lisp-indent-function "") |
| 335 | 335 | ||
| 336 | (defun lisp-indent-line (&optional whole-exp) | 336 | (defun lisp-indent-line (&optional whole-exp) |
| 337 | "Indent current line as Lisp code. | 337 | "Indent current line as Lisp code. |
| @@ -508,7 +508,7 @@ of the start of the containing expression." | |||
| 508 | (method | 508 | (method |
| 509 | (funcall method state indent-point))))))) | 509 | (funcall method state indent-point))))))) |
| 510 | 510 | ||
| 511 | (defconst lisp-body-indent 2 | 511 | (defvar lisp-body-indent 2 |
| 512 | "Number of columns to indent the second line of a `(def...)' form.") | 512 | "Number of columns to indent the second line of a `(def...)' form.") |
| 513 | 513 | ||
| 514 | (defun lisp-indent-specform (count state indent-point normal-indent) | 514 | (defun lisp-indent-specform (count state indent-point normal-indent) |
diff --git a/lisp/faces.el b/lisp/faces.el index 41d85b43c0c..797581318d2 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -615,10 +615,10 @@ set its foreground and background to the default background and foreground." | |||
| 615 | 615 | ||
| 616 | ;; Manipulating font names. | 616 | ;; Manipulating font names. |
| 617 | 617 | ||
| 618 | (defconst x-font-regexp nil) | 618 | (defvar x-font-regexp nil) |
| 619 | (defconst x-font-regexp-head nil) | 619 | (defvar x-font-regexp-head nil) |
| 620 | (defconst x-font-regexp-weight nil) | 620 | (defvar x-font-regexp-weight nil) |
| 621 | (defconst x-font-regexp-slant nil) | 621 | (defvar x-font-regexp-slant nil) |
| 622 | 622 | ||
| 623 | (defconst x-font-regexp-weight-subnum 1) | 623 | (defconst x-font-regexp-weight-subnum 1) |
| 624 | (defconst x-font-regexp-slant-subnum 2) | 624 | (defconst x-font-regexp-slant-subnum 2) |
diff --git a/lisp/files.el b/lisp/files.el index 691ecaa37e2..1341cd909b2 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -30,10 +30,10 @@ | |||
| 30 | 30 | ||
| 31 | ;;; Code: | 31 | ;;; Code: |
| 32 | 32 | ||
| 33 | (defconst delete-auto-save-files t | 33 | (defvar delete-auto-save-files t |
| 34 | "*Non-nil means delete auto-save file when a buffer is saved or killed.") | 34 | "*Non-nil means delete auto-save file when a buffer is saved or killed.") |
| 35 | 35 | ||
| 36 | (defconst directory-abbrev-alist | 36 | (defvar directory-abbrev-alist |
| 37 | nil | 37 | nil |
| 38 | "*Alist of abbreviations for file directories. | 38 | "*Alist of abbreviations for file directories. |
| 39 | A list of elements of the form (FROM . TO), each meaning to replace | 39 | A list of elements of the form (FROM . TO), each meaning to replace |
| @@ -49,7 +49,7 @@ via absolute symbolic links. Make TO the name of the link, and FROM | |||
| 49 | the name it is linked to.") | 49 | the name it is linked to.") |
| 50 | 50 | ||
| 51 | ;;; Turn off backup files on VMS since it has version numbers. | 51 | ;;; Turn off backup files on VMS since it has version numbers. |
| 52 | (defconst make-backup-files (not (eq system-type 'vax-vms)) | 52 | (defvar make-backup-files (not (eq system-type 'vax-vms)) |
| 53 | "*Non-nil means make a backup of a file the first time it is saved. | 53 | "*Non-nil means make a backup of a file the first time it is saved. |
| 54 | This can be done by renaming the file or by copying. | 54 | This can be done by renaming the file or by copying. |
| 55 | 55 | ||
| @@ -75,16 +75,16 @@ This variable is intended for use by making it local to a buffer. | |||
| 75 | But it is local only if you make it local.") | 75 | But it is local only if you make it local.") |
| 76 | (put 'backup-inhibited 'permanent-local t) | 76 | (put 'backup-inhibited 'permanent-local t) |
| 77 | 77 | ||
| 78 | (defconst backup-by-copying nil | 78 | (defvar backup-by-copying nil |
| 79 | "*Non-nil means always use copying to create backup files. | 79 | "*Non-nil means always use copying to create backup files. |
| 80 | See documentation of variable `make-backup-files'.") | 80 | See documentation of variable `make-backup-files'.") |
| 81 | 81 | ||
| 82 | (defconst backup-by-copying-when-linked nil | 82 | (defvar backup-by-copying-when-linked nil |
| 83 | "*Non-nil means use copying to create backups for files with multiple names. | 83 | "*Non-nil means use copying to create backups for files with multiple names. |
| 84 | This causes the alternate names to refer to the latest version as edited. | 84 | This causes the alternate names to refer to the latest version as edited. |
| 85 | This variable is relevant only if `backup-by-copying' is nil.") | 85 | This variable is relevant only if `backup-by-copying' is nil.") |
| 86 | 86 | ||
| 87 | (defconst backup-by-copying-when-mismatch nil | 87 | (defvar backup-by-copying-when-mismatch nil |
| 88 | "*Non-nil means create backups by copying if this preserves owner or group. | 88 | "*Non-nil means create backups by copying if this preserves owner or group. |
| 89 | Renaming may still be used (subject to control of other variables) | 89 | Renaming may still be used (subject to control of other variables) |
| 90 | when it would not result in changing the owner or group of the file; | 90 | when it would not result in changing the owner or group of the file; |
| @@ -99,24 +99,24 @@ This variable is relevant only if `backup-by-copying' is nil.") | |||
| 99 | "Predicate that looks at a file name and decides whether to make backups. | 99 | "Predicate that looks at a file name and decides whether to make backups. |
| 100 | Called with an absolute file name as argument, it returns t to enable backup.") | 100 | Called with an absolute file name as argument, it returns t to enable backup.") |
| 101 | 101 | ||
| 102 | (defconst buffer-offer-save nil | 102 | (defvar buffer-offer-save nil |
| 103 | "*Non-nil in a buffer means offer to save the buffer on exit | 103 | "*Non-nil in a buffer means offer to save the buffer on exit |
| 104 | even if the buffer is not visiting a file. | 104 | even if the buffer is not visiting a file. |
| 105 | Automatically local in all buffers.") | 105 | Automatically local in all buffers.") |
| 106 | (make-variable-buffer-local 'buffer-offer-save) | 106 | (make-variable-buffer-local 'buffer-offer-save) |
| 107 | 107 | ||
| 108 | (defconst find-file-existing-other-name t | 108 | (defvar find-file-existing-other-name t |
| 109 | "*Non-nil means find a file under alternative names, in existing buffers. | 109 | "*Non-nil means find a file under alternative names, in existing buffers. |
| 110 | This means if any existing buffer is visiting the file you want | 110 | This means if any existing buffer is visiting the file you want |
| 111 | under another name, you get the existing buffer instead of a new buffer.") | 111 | under another name, you get the existing buffer instead of a new buffer.") |
| 112 | 112 | ||
| 113 | (defconst find-file-visit-truename nil | 113 | (defvar find-file-visit-truename nil |
| 114 | "*Non-nil means visit a file under its truename. | 114 | "*Non-nil means visit a file under its truename. |
| 115 | The truename of a file is found by chasing all links | 115 | The truename of a file is found by chasing all links |
| 116 | both at the file level and at the levels of the containing directories.") | 116 | both at the file level and at the levels of the containing directories.") |
| 117 | 117 | ||
| 118 | (defconst find-file-revert-without-query | 118 | (defvar find-file-revert-without-query |
| 119 | '("/out$" "/traces/.*\.log$") | 119 | nil |
| 120 | "*Specify which files should be reverted without query. | 120 | "*Specify which files should be reverted without query. |
| 121 | The value is a list of regular expressions. | 121 | The value is a list of regular expressions. |
| 122 | If the file name matches one of these regular expressions, | 122 | If the file name matches one of these regular expressions, |
| @@ -134,7 +134,7 @@ If the buffer is visiting a new file, the value is nil.") | |||
| 134 | (defvar buffer-file-numbers-unique (not (memq system-type '(windows-nt))) | 134 | (defvar buffer-file-numbers-unique (not (memq system-type '(windows-nt))) |
| 135 | "Non-nil means that buffer-file-number uniquely identifies files.") | 135 | "Non-nil means that buffer-file-number uniquely identifies files.") |
| 136 | 136 | ||
| 137 | (defconst file-precious-flag nil | 137 | (defvar file-precious-flag nil |
| 138 | "*Non-nil means protect against I/O errors while saving files. | 138 | "*Non-nil means protect against I/O errors while saving files. |
| 139 | Some modes set this non-nil in particular buffers. | 139 | Some modes set this non-nil in particular buffers. |
| 140 | 140 | ||
| @@ -167,23 +167,23 @@ If nil, ask confirmation. Any other value prevents any trimming.") | |||
| 167 | "*Number of newest versions to keep when a new numbered backup is made. | 167 | "*Number of newest versions to keep when a new numbered backup is made. |
| 168 | Includes the new backup. Must be > 0") | 168 | Includes the new backup. Must be > 0") |
| 169 | 169 | ||
| 170 | (defconst require-final-newline nil | 170 | (defvar require-final-newline nil |
| 171 | "*Value of t says silently ensure a file ends in a newline when it is saved. | 171 | "*Value of t says silently ensure a file ends in a newline when it is saved. |
| 172 | Non-nil but not t says ask user whether to add a newline when there isn't one. | 172 | Non-nil but not t says ask user whether to add a newline when there isn't one. |
| 173 | nil means don't add newlines.") | 173 | nil means don't add newlines.") |
| 174 | 174 | ||
| 175 | (defconst auto-save-default t | 175 | (defvar auto-save-default t |
| 176 | "*Non-nil says by default do auto-saving of every file-visiting buffer.") | 176 | "*Non-nil says by default do auto-saving of every file-visiting buffer.") |
| 177 | 177 | ||
| 178 | (defconst auto-save-visited-file-name nil | 178 | (defvar auto-save-visited-file-name nil |
| 179 | "*Non-nil says auto-save a buffer in the file it is visiting, when practical. | 179 | "*Non-nil says auto-save a buffer in the file it is visiting, when practical. |
| 180 | Normally auto-save files are written under other names.") | 180 | Normally auto-save files are written under other names.") |
| 181 | 181 | ||
| 182 | (defconst save-abbrevs nil | 182 | (defvar save-abbrevs nil |
| 183 | "*Non-nil means save word abbrevs too when files are saved. | 183 | "*Non-nil means save word abbrevs too when files are saved. |
| 184 | Loading an abbrev file sets this to t.") | 184 | Loading an abbrev file sets this to t.") |
| 185 | 185 | ||
| 186 | (defconst find-file-run-dired t | 186 | (defvar find-file-run-dired t |
| 187 | "*Non-nil says run dired if `find-file' is given the name of a directory.") | 187 | "*Non-nil says run dired if `find-file' is given the name of a directory.") |
| 188 | 188 | ||
| 189 | ;;;It is not useful to make this a local variable. | 189 | ;;;It is not useful to make this a local variable. |
| @@ -242,7 +242,7 @@ LOCAL argument. | |||
| 242 | See also `write-file-hooks'.") | 242 | See also `write-file-hooks'.") |
| 243 | (make-variable-buffer-local 'write-contents-hooks) | 243 | (make-variable-buffer-local 'write-contents-hooks) |
| 244 | 244 | ||
| 245 | (defconst enable-local-variables t | 245 | (defvar enable-local-variables t |
| 246 | "*Control use of local variables in files you visit. | 246 | "*Control use of local variables in files you visit. |
| 247 | The value can be t, nil or something else. | 247 | The value can be t, nil or something else. |
| 248 | A value of t means file local variables specifications are obeyed; | 248 | A value of t means file local variables specifications are obeyed; |
| @@ -251,7 +251,7 @@ nil means they are ignored; anything else means query. | |||
| 251 | The command \\[normal-mode] always obeys file local variable | 251 | The command \\[normal-mode] always obeys file local variable |
| 252 | specifications and ignores this variable.") | 252 | specifications and ignores this variable.") |
| 253 | 253 | ||
| 254 | (defconst enable-local-eval 'maybe | 254 | (defvar enable-local-eval 'maybe |
| 255 | "*Control processing of the \"variable\" `eval' in a file's local variables. | 255 | "*Control processing of the \"variable\" `eval' in a file's local variables. |
| 256 | The value can be t, nil or something else. | 256 | The value can be t, nil or something else. |
| 257 | A value of t means obey `eval' variables; | 257 | A value of t means obey `eval' variables; |
| @@ -626,7 +626,7 @@ otherwise a string <2> or <3> or ... is appended to get an unused name." | |||
| 626 | Choose the buffer's name using `generate-new-buffer-name'." | 626 | Choose the buffer's name using `generate-new-buffer-name'." |
| 627 | (get-buffer-create (generate-new-buffer-name name))) | 627 | (get-buffer-create (generate-new-buffer-name name))) |
| 628 | 628 | ||
| 629 | (defconst automount-dir-prefix "^/tmp_mnt/" | 629 | (defvar automount-dir-prefix "^/tmp_mnt/" |
| 630 | "Regexp to match the automounter prefix in a directory name.") | 630 | "Regexp to match the automounter prefix in a directory name.") |
| 631 | 631 | ||
| 632 | (defvar abbreviated-home-dir nil | 632 | (defvar abbreviated-home-dir nil |
| @@ -1055,7 +1055,7 @@ If the element has the form (REGEXP FUNCTION NON-NIL), then after | |||
| 1055 | calling FUNCTION (if it's not nil), we delete the suffix that matched | 1055 | calling FUNCTION (if it's not nil), we delete the suffix that matched |
| 1056 | REGEXP and search the list again for another match.") | 1056 | REGEXP and search the list again for another match.") |
| 1057 | 1057 | ||
| 1058 | (defconst interpreter-mode-alist | 1058 | (defvar interpreter-mode-alist |
| 1059 | '(("perl" . perl-mode) | 1059 | '(("perl" . perl-mode) |
| 1060 | ("perl5" . perl-mode) | 1060 | ("perl5" . perl-mode) |
| 1061 | ("wish" . tcl-mode) | 1061 | ("wish" . tcl-mode) |
| @@ -1095,10 +1095,10 @@ The car of each element is compared with | |||
| 1095 | the name of the interpreter specified in the first line. | 1095 | the name of the interpreter specified in the first line. |
| 1096 | If it matches, mode MODE is selected.") | 1096 | If it matches, mode MODE is selected.") |
| 1097 | 1097 | ||
| 1098 | (defconst inhibit-first-line-modes-regexps '("\\.tar\\'" "\\.tgz\\'") | 1098 | (defvar inhibit-first-line-modes-regexps '("\\.tar\\'" "\\.tgz\\'") |
| 1099 | "List of regexps; if one matches a file name, don't look for `-*-'.") | 1099 | "List of regexps; if one matches a file name, don't look for `-*-'.") |
| 1100 | 1100 | ||
| 1101 | (defconst inhibit-first-line-modes-suffixes nil | 1101 | (defvar inhibit-first-line-modes-suffixes nil |
| 1102 | "List of regexps for what to ignore, for `inhibit-first-line-modes-regexps'. | 1102 | "List of regexps for what to ignore, for `inhibit-first-line-modes-regexps'. |
| 1103 | When checking `inhibit-first-line-modes-regexps', we first discard | 1103 | When checking `inhibit-first-line-modes-regexps', we first discard |
| 1104 | from the end of the file name anything that matches one of these regexps.") | 1104 | from the end of the file name anything that matches one of these regexps.") |
| @@ -1372,7 +1372,7 @@ in order to initialize other data structure based on them.") | |||
| 1372 | (hack-one-local-variable var val))))))) | 1372 | (hack-one-local-variable var val))))))) |
| 1373 | (run-hooks 'hack-local-variables-hook)) | 1373 | (run-hooks 'hack-local-variables-hook)) |
| 1374 | 1374 | ||
| 1375 | (defconst ignored-local-variables | 1375 | (defvar ignored-local-variables |
| 1376 | '(enable-local-eval) | 1376 | '(enable-local-eval) |
| 1377 | "Variables to be ignored in a file's local variable spec.") | 1377 | "Variables to be ignored in a file's local variable spec.") |
| 1378 | 1378 | ||
| @@ -2620,11 +2620,11 @@ by `sh' are supported." | |||
| 2620 | ;; not its part. Make the regexp say so. | 2620 | ;; not its part. Make the regexp say so. |
| 2621 | (concat "\\`" result "\\'"))) | 2621 | (concat "\\`" result "\\'"))) |
| 2622 | 2622 | ||
| 2623 | (defconst list-directory-brief-switches | 2623 | (defvar list-directory-brief-switches |
| 2624 | (if (eq system-type 'vax-vms) "" "-CF") | 2624 | (if (eq system-type 'vax-vms) "" "-CF") |
| 2625 | "*Switches for list-directory to pass to `ls' for brief listing,") | 2625 | "*Switches for list-directory to pass to `ls' for brief listing,") |
| 2626 | 2626 | ||
| 2627 | (defconst list-directory-verbose-switches | 2627 | (defvar list-directory-verbose-switches |
| 2628 | (if (eq system-type 'vax-vms) | 2628 | (if (eq system-type 'vax-vms) |
| 2629 | "/PROTECTION/SIZE/DATE/OWNER/WIDTH=(OWNER:10)" | 2629 | "/PROTECTION/SIZE/DATE/OWNER/WIDTH=(OWNER:10)" |
| 2630 | "-l") | 2630 | "-l") |
diff --git a/lisp/isearch.el b/lisp/isearch.el index 327ec264cc8..60b85d7d2f2 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -105,7 +105,7 @@ | |||
| 105 | 105 | ||
| 106 | ;;; Some additional options and constants. | 106 | ;;; Some additional options and constants. |
| 107 | 107 | ||
| 108 | (defconst search-exit-option t | 108 | (defvar search-exit-option t |
| 109 | "*Non-nil means random control characters terminate incremental search.") | 109 | "*Non-nil means random control characters terminate incremental search.") |
| 110 | 110 | ||
| 111 | (defvar search-slow-window-lines 1 | 111 | (defvar search-slow-window-lines 1 |
| @@ -131,7 +131,7 @@ If this value is `not-yanks', yanked text is always downcased.") | |||
| 131 | Actually, `isearch-edit-string' is called to let you enter the search | 131 | Actually, `isearch-edit-string' is called to let you enter the search |
| 132 | string, and RET terminates editing and does a nonincremental search.") | 132 | string, and RET terminates editing and does a nonincremental search.") |
| 133 | 133 | ||
| 134 | (defconst search-whitespace-regexp "\\s-+" | 134 | (defvar search-whitespace-regexp "\\s-+" |
| 135 | "*If non-nil, regular expression to match a sequence of whitespace chars. | 135 | "*If non-nil, regular expression to match a sequence of whitespace chars. |
| 136 | You might want to use something like \"[ \\t\\r\\n]+\" instead.") | 136 | You might want to use something like \"[ \\t\\r\\n]+\" instead.") |
| 137 | 137 | ||
| @@ -151,9 +151,9 @@ You might want to use something like \"[ \\t\\r\\n]+\" instead.") | |||
| 151 | (defvar regexp-search-ring nil | 151 | (defvar regexp-search-ring nil |
| 152 | "List of regular expression search string sequences.") | 152 | "List of regular expression search string sequences.") |
| 153 | 153 | ||
| 154 | (defconst search-ring-max 16 | 154 | (defvar search-ring-max 16 |
| 155 | "*Maximum length of search ring before oldest elements are thrown away.") | 155 | "*Maximum length of search ring before oldest elements are thrown away.") |
| 156 | (defconst regexp-search-ring-max 16 | 156 | (defvar regexp-search-ring-max 16 |
| 157 | "*Maximum length of regexp search ring before oldest elements are thrown away.") | 157 | "*Maximum length of regexp search ring before oldest elements are thrown away.") |
| 158 | 158 | ||
| 159 | (defvar search-ring-yank-pointer nil | 159 | (defvar search-ring-yank-pointer nil |
| @@ -427,7 +427,7 @@ is treated as a regexp. See \\[isearch-forward] for more info." | |||
| 427 | ;; All the work is done by the isearch-mode commands. | 427 | ;; All the work is done by the isearch-mode commands. |
| 428 | 428 | ||
| 429 | ;; Not used yet: | 429 | ;; Not used yet: |
| 430 | ;;(defconst isearch-commands '(isearch-forward isearch-backward | 430 | ;;(defvar isearch-commands '(isearch-forward isearch-backward |
| 431 | ;; isearch-forward-regexp isearch-backward-regexp) | 431 | ;; isearch-forward-regexp isearch-backward-regexp) |
| 432 | ;; "List of commands for which isearch-mode does not recursive-edit.") | 432 | ;; "List of commands for which isearch-mode does not recursive-edit.") |
| 433 | 433 | ||
diff --git a/lisp/startup.el b/lisp/startup.el index 979f7106627..626bc9f1e08 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -118,12 +118,12 @@ | |||
| 118 | 118 | ||
| 119 | (defvar command-line-processed nil "t once command line has been processed") | 119 | (defvar command-line-processed nil "t once command line has been processed") |
| 120 | 120 | ||
| 121 | (defconst inhibit-startup-message nil | 121 | (defvar inhibit-startup-message nil |
| 122 | "*Non-nil inhibits the initial startup message. | 122 | "*Non-nil inhibits the initial startup message. |
| 123 | This is for use in your personal init file, once you are familiar | 123 | This is for use in your personal init file, once you are familiar |
| 124 | with the contents of the startup message.") | 124 | with the contents of the startup message.") |
| 125 | 125 | ||
| 126 | (defconst inhibit-startup-echo-area-message nil | 126 | (defvar inhibit-startup-echo-area-message nil |
| 127 | "*Non-nil inhibits the initial startup echo area message. | 127 | "*Non-nil inhibits the initial startup echo area message. |
| 128 | Inhibition takes effect only if your `.emacs' file contains | 128 | Inhibition takes effect only if your `.emacs' file contains |
| 129 | a line of this form: | 129 | a line of this form: |
| @@ -133,10 +133,10 @@ If your `.emacs' file is byte-compiled, use the following form instead: | |||
| 133 | Thus, someone else using a copy of your `.emacs' file will see | 133 | Thus, someone else using a copy of your `.emacs' file will see |
| 134 | the startup message unless he personally acts to inhibit it.") | 134 | the startup message unless he personally acts to inhibit it.") |
| 135 | 135 | ||
| 136 | (defconst inhibit-default-init nil | 136 | (defvar inhibit-default-init nil |
| 137 | "*Non-nil inhibits loading the `default' library.") | 137 | "*Non-nil inhibits loading the `default' library.") |
| 138 | 138 | ||
| 139 | (defconst command-switch-alist nil | 139 | (defvar command-switch-alist nil |
| 140 | "Alist of command-line switches. | 140 | "Alist of command-line switches. |
| 141 | Elements look like (SWITCH-STRING . HANDLER-FUNCTION). | 141 | Elements look like (SWITCH-STRING . HANDLER-FUNCTION). |
| 142 | HANDLER-FUNCTION receives switch name as sole arg; | 142 | HANDLER-FUNCTION receives switch name as sole arg; |
| @@ -243,14 +243,17 @@ fashion analogous to the environment value TERM.") | |||
| 243 | Emacs runs this hook after processing the command line arguments and loading | 243 | Emacs runs this hook after processing the command line arguments and loading |
| 244 | the user's init file.") | 244 | the user's init file.") |
| 245 | 245 | ||
| 246 | (defconst initial-major-mode 'lisp-interaction-mode | 246 | (defvar initial-major-mode 'lisp-interaction-mode |
| 247 | "Major mode command symbol to use for the initial *scratch* buffer.") | 247 | "Major mode command symbol to use for the initial *scratch* buffer.") |
| 248 | 248 | ||
| 249 | (defvar init-file-user nil | 249 | (defvar init-file-user nil |
| 250 | "Identity of user whose `.emacs' file is or was read. | 250 | "Identity of user whose `.emacs' file is or was read. |
| 251 | The value is nil if no init file is being used; otherwise, it may be either | 251 | The value is nil if `-q' or `--no-init-file' was specified, |
| 252 | the null string, meaning that the init file was taken from the user that | 252 | meaning do not load any init file. |
| 253 | originally logged in, or it may be a string containing a user's name. | 253 | |
| 254 | Otherwise, the value may be the null string, meaning use the init file | ||
| 255 | for the user that originally logged in, or it may be a | ||
| 256 | string containing a user's name meaning use that person's init file. | ||
| 254 | 257 | ||
| 255 | In either of the latter cases, `(concat \"~\" init-file-user \"/\")' | 258 | In either of the latter cases, `(concat \"~\" init-file-user \"/\")' |
| 256 | evaluates to the name of the directory where the `.emacs' file was | 259 | evaluates to the name of the directory where the `.emacs' file was |
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index fd6db93ccd4..17237a4a235 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -28,17 +28,17 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (defconst fill-individual-varying-indent nil | 31 | (defvar fill-individual-varying-indent nil |
| 32 | "*Controls criterion for a new paragraph in `fill-individual-paragraphs'. | 32 | "*Controls criterion for a new paragraph in `fill-individual-paragraphs'. |
| 33 | Non-nil means changing indent doesn't end a paragraph. | 33 | Non-nil means changing indent doesn't end a paragraph. |
| 34 | That mode can handle paragraphs with extra indentation on the first line, | 34 | That mode can handle paragraphs with extra indentation on the first line, |
| 35 | but it requires separator lines between paragraphs. | 35 | but it requires separator lines between paragraphs. |
| 36 | A value of nil means that any change in indentation starts a new paragraph.") | 36 | A value of nil means that any change in indentation starts a new paragraph.") |
| 37 | 37 | ||
| 38 | (defconst sentence-end-double-space t | 38 | (defvar sentence-end-double-space t |
| 39 | "*Non-nil means a single space does not end a sentence.") | 39 | "*Non-nil means a single space does not end a sentence.") |
| 40 | 40 | ||
| 41 | (defconst colon-double-space nil | 41 | (defvar colon-double-space nil |
| 42 | "*Non-nil means put two spaces after a colon when filling.") | 42 | "*Non-nil means put two spaces after a colon when filling.") |
| 43 | 43 | ||
| 44 | (defvar fill-paragraph-function nil | 44 | (defvar fill-paragraph-function nil |
| @@ -59,10 +59,10 @@ reinserts the fill prefix in each resulting line." | |||
| 59 | (message "fill-prefix: \"%s\"" fill-prefix) | 59 | (message "fill-prefix: \"%s\"" fill-prefix) |
| 60 | (message "fill-prefix cancelled"))) | 60 | (message "fill-prefix cancelled"))) |
| 61 | 61 | ||
| 62 | (defconst adaptive-fill-mode t | 62 | (defvar adaptive-fill-mode t |
| 63 | "*Non-nil means determine a paragraph's fill prefix from its text.") | 63 | "*Non-nil means determine a paragraph's fill prefix from its text.") |
| 64 | 64 | ||
| 65 | (defconst adaptive-fill-regexp "[ \t]*\\([#;>*]+ +\\)?" | 65 | (defvar adaptive-fill-regexp "[ \t]*\\([#;>*]+ +\\)?" |
| 66 | "*Regexp to match text at start of line that constitutes indentation. | 66 | "*Regexp to match text at start of line that constitutes indentation. |
| 67 | If Adaptive Fill mode is enabled, whatever text matches this pattern | 67 | If Adaptive Fill mode is enabled, whatever text matches this pattern |
| 68 | on the second line of a paragraph is used as the standard indentation | 68 | on the second line of a paragraph is used as the standard indentation |
| @@ -472,7 +472,7 @@ space does not end a sentence, so don't break a line there." | |||
| 472 | (goto-char end))))))) | 472 | (goto-char end))))))) |
| 473 | 473 | ||
| 474 | 474 | ||
| 475 | (defconst default-justification 'left | 475 | (defvar default-justification 'left |
| 476 | "*Method of justifying text not otherwise specified. | 476 | "*Method of justifying text not otherwise specified. |
| 477 | Possible values are `left', `right', `full', `center', or `none'. | 477 | Possible values are `left', `right', `full', `center', or `none'. |
| 478 | The requested kind of justification is done whenever lines are filled. | 478 | The requested kind of justification is done whenever lines are filled. |
diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el index 775f0ea72a9..7948723d963 100644 --- a/lisp/textmodes/paragraphs.el +++ b/lisp/textmodes/paragraphs.el | |||
| @@ -85,7 +85,7 @@ to paragraphs. The fill functions insert and delete only soft newlines." | |||
| 85 | (point) (1+ (point)))))))))))) | 85 | (point) (1+ (point)))))))))))) |
| 86 | (setq use-hard-newlines t))) | 86 | (setq use-hard-newlines t))) |
| 87 | 87 | ||
| 88 | (defconst paragraph-start "[ \t\n\f]" "\ | 88 | (defvar paragraph-start "[ \t\n\f]" "\ |
| 89 | *Regexp for beginning of a line that starts OR separates paragraphs. | 89 | *Regexp for beginning of a line that starts OR separates paragraphs. |
| 90 | This regexp should match lines that separate paragraphs | 90 | This regexp should match lines that separate paragraphs |
| 91 | and should also match lines that start a paragraph | 91 | and should also match lines that start a paragraph |
| @@ -108,7 +108,7 @@ hard newline are considered to match.") | |||
| 108 | ;; something very minimal, even including "." (which makes every hard newline | 108 | ;; something very minimal, even including "." (which makes every hard newline |
| 109 | ;; start a new paragraph). | 109 | ;; start a new paragraph). |
| 110 | 110 | ||
| 111 | (defconst paragraph-separate "[ \t\f]*$" "\ | 111 | (defvar paragraph-separate "[ \t\f]*$" "\ |
| 112 | *Regexp for beginning of a line that separates paragraphs. | 112 | *Regexp for beginning of a line that separates paragraphs. |
| 113 | If you change this, you may have to change paragraph-start also. | 113 | If you change this, you may have to change paragraph-start also. |
| 114 | 114 | ||
| @@ -117,7 +117,7 @@ the beginning of the line, so it should not use \"^\" as an anchor. This | |||
| 117 | ensures that the paragraph functions will work equally within a region of | 117 | ensures that the paragraph functions will work equally within a region of |
| 118 | text indented by a margin setting.") | 118 | text indented by a margin setting.") |
| 119 | 119 | ||
| 120 | (defconst sentence-end (purecopy "[.?!][]\"')}]*\\($\\| $\\|\t\\| \\)[ \t\n]*") "\ | 120 | (defvar sentence-end (purecopy "[.?!][]\"')}]*\\($\\| $\\|\t\\| \\)[ \t\n]*") "\ |
| 121 | *Regexp describing the end of a sentence. | 121 | *Regexp describing the end of a sentence. |
| 122 | All paragraph boundaries also end sentences, regardless. | 122 | All paragraph boundaries also end sentences, regardless. |
| 123 | 123 | ||
| @@ -125,7 +125,7 @@ In order to be recognized as the end of a sentence, the ending period, | |||
| 125 | question mark, or exclamation point must be followed by two spaces, | 125 | question mark, or exclamation point must be followed by two spaces, |
| 126 | unless it's inside some sort of quotes or parenthesis.") | 126 | unless it's inside some sort of quotes or parenthesis.") |
| 127 | 127 | ||
| 128 | (defconst page-delimiter "^\014" "\ | 128 | (defvar page-delimiter "^\014" "\ |
| 129 | *Regexp describing line-beginnings that separate pages.") | 129 | *Regexp describing line-beginnings that separate pages.") |
| 130 | 130 | ||
| 131 | (defvar paragraph-ignore-fill-prefix nil "\ | 131 | (defvar paragraph-ignore-fill-prefix nil "\ |