diff options
| author | Richard M. Stallman | 2004-10-17 07:13:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-10-17 07:13:37 +0000 |
| commit | d6fcf40719f050fd364adc59ccbdc012b7ec5fce (patch) | |
| tree | e695d83f0d42aee09fba81222f24cf869553d7c3 | |
| parent | 6d52545d53dcc921172eb0f233079f929341f396 (diff) | |
| download | emacs-d6fcf40719f050fd364adc59ccbdc012b7ec5fce.tar.gz emacs-d6fcf40719f050fd364adc59ccbdc012b7ec5fce.zip | |
(news-directory): Renamed from news-path. Old name alias.
(rmail-spool-directory): Use defvar.
(sendmail-program): Use defcustom.
(remote-shell-program): Use defcustom.
(term-file-prefix): Use defvar.
(abbrev-file-name): Use defvar.
| -rw-r--r-- | lisp/paths.el | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/lisp/paths.el b/lisp/paths.el index 925dbb06e97..5611246ac8b 100644 --- a/lisp/paths.el +++ b/lisp/paths.el | |||
| @@ -101,11 +101,12 @@ This variable `Info-default-directory-list' is used as the default | |||
| 101 | for initializing `Info-directory-list' when Info is started, unless | 101 | for initializing `Info-directory-list' when Info is started, unless |
| 102 | the environment variable INFOPATH is set.") | 102 | the environment variable INFOPATH is set.") |
| 103 | 103 | ||
| 104 | (defvar news-path | 104 | (defvar news-directory |
| 105 | (if (file-exists-p "/usr/spool/news/") | 105 | (if (file-exists-p "/usr/spool/news/") |
| 106 | "/usr/spool/news/" | 106 | "/usr/spool/news/" |
| 107 | "/var/spool/news/") | 107 | "/var/spool/news/") |
| 108 | "The root directory below which all news files are stored.") | 108 | "The root directory below which all news files are stored.") |
| 109 | (defalias 'news-path 'news-directory) | ||
| 109 | 110 | ||
| 110 | (defvar news-inews-program | 111 | (defvar news-inews-program |
| 111 | (cond ((file-exists-p "/usr/bin/inews") "/usr/bin/inews") | 112 | (cond ((file-exists-p "/usr/bin/inews") "/usr/bin/inews") |
| @@ -136,7 +137,7 @@ The `ORGANIZATION' environment variable is used instead if defined.") | |||
| 136 | :group 'rmail | 137 | :group 'rmail |
| 137 | :version "21.1") | 138 | :version "21.1") |
| 138 | 139 | ||
| 139 | (defconst rmail-spool-directory | 140 | (defvar rmail-spool-directory |
| 140 | (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration) | 141 | (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration) |
| 141 | "/usr/spool/mail/") | 142 | "/usr/spool/mail/") |
| 142 | ;; On The Bull DPX/2 /usr/spool/mail is used although | 143 | ;; On The Bull DPX/2 /usr/spool/mail is used although |
| @@ -157,15 +158,17 @@ The `ORGANIZATION' environment variable is used instead if defined.") | |||
| 157 | "Name of directory used by system mailer for delivering new mail. | 158 | "Name of directory used by system mailer for delivering new mail. |
| 158 | Its name should end with a slash.") | 159 | Its name should end with a slash.") |
| 159 | 160 | ||
| 160 | (defconst sendmail-program | 161 | (defcustom sendmail-program |
| 161 | (cond | 162 | (cond |
| 162 | ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail") | 163 | ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail") |
| 163 | ((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail") | 164 | ((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail") |
| 164 | ((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail") | 165 | ((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail") |
| 165 | (t "fakemail")) ;In ../etc, to interface to /bin/mail. | 166 | (t "fakemail")) ;In ../etc, to interface to /bin/mail. |
| 166 | "Program used to send messages.") | 167 | "Program used to send messages." |
| 168 | :group 'mail | ||
| 169 | :type 'file) | ||
| 167 | 170 | ||
| 168 | (defconst remote-shell-program | 171 | (defcustom remote-shell-program |
| 169 | (cond | 172 | (cond |
| 170 | ;; Some systems use rsh for the remote shell; others use that name for the | 173 | ;; Some systems use rsh for the remote shell; others use that name for the |
| 171 | ;; restricted shell and use remsh for the remote shell. Let's try to guess | 174 | ;; restricted shell and use remsh for the remote shell. Let's try to guess |
| @@ -186,14 +189,16 @@ Its name should end with a slash.") | |||
| 186 | ((file-exists-p "/bin/rsh") "/bin/rsh") | 189 | ((file-exists-p "/bin/rsh") "/bin/rsh") |
| 187 | ((file-exists-p "/usr/bin/rsh") "/usr/bin/rsh") | 190 | ((file-exists-p "/usr/bin/rsh") "/usr/bin/rsh") |
| 188 | (t "rsh")) | 191 | (t "rsh")) |
| 189 | "File name for remote-shell program (often rsh or remsh).") | 192 | "File name for remote-shell program (often rsh or remsh)." |
| 193 | :group 'environment | ||
| 194 | :type 'file) | ||
| 190 | 195 | ||
| 191 | (defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/") "\ | 196 | (defvar term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/") "\ |
| 192 | If non-nil, Emacs startup does (load (concat term-file-prefix (getenv \"TERM\"))) | 197 | If non-nil, Emacs startup does (load (concat term-file-prefix (getenv \"TERM\"))) |
| 193 | You may set this variable to nil in your `.emacs' file if you do not wish | 198 | You may set this variable to nil in your `.emacs' file if you do not wish |
| 194 | the terminal-initialization file to be loaded.") | 199 | the terminal-initialization file to be loaded.") |
| 195 | 200 | ||
| 196 | (defconst abbrev-file-name | 201 | (defvar abbrev-file-name |
| 197 | (if (eq system-type 'vax-vms) | 202 | (if (eq system-type 'vax-vms) |
| 198 | "~/abbrev.def" | 203 | "~/abbrev.def" |
| 199 | (convert-standard-filename "~/.abbrev_defs")) | 204 | (convert-standard-filename "~/.abbrev_defs")) |