diff options
| author | Glenn Morris | 2012-05-23 23:53:08 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-05-23 23:53:08 -0700 |
| commit | c8f3b42c71188f634f645aaeac2c656bf5d2691f (patch) | |
| tree | b11780b520b390397f6b0ac762fe5298068f1206 | |
| parent | 6df9112c19fb67beb06e814205578466c5b1123a (diff) | |
| download | emacs-c8f3b42c71188f634f645aaeac2c656bf5d2691f.tar.gz emacs-c8f3b42c71188f634f645aaeac2c656bf5d2691f.zip | |
Move some rmail variables from paths.el to rmail.el
Ref eg
http://lists.gnu.org/archive/html/emacs-devel/2004-10/msg00620.html
* paths.el (rmail-file-name, rmail-spool-directory): Move from here...
* mail/rmail.el (rmail-file-name, rmail-spool-directory): ... to here.
Make the latter a defcustom, with a delayed initialization.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 27 | ||||
| -rw-r--r-- | lisp/paths.el | 21 |
3 files changed, 29 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cc83b323396..423891d1baf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2012-05-24 Glenn Morris <rgm@gnu.org> | 1 | 2012-05-24 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * paths.el (rmail-file-name, rmail-spool-directory): Move from here... | ||
| 4 | * mail/rmail.el (rmail-file-name, rmail-spool-directory): ... to here. | ||
| 5 | Make the latter a defcustom, with a delayed initialization. | ||
| 6 | |||
| 3 | * paths.el (gnus-nntp-service, gnus-local-organization): Remove. | 7 | * paths.el (gnus-nntp-service, gnus-local-organization): Remove. |
| 4 | These were deleted from Gnus itself late 2010. | 8 | These were deleted from Gnus itself late 2010. |
| 5 | 9 | ||
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 14bf9d90a16..ad364edeea1 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -100,8 +100,6 @@ its character representation and its display representation.") | |||
| 100 | "The current header display style choice, one of | 100 | "The current header display style choice, one of |
| 101 | 'normal (selected headers) or 'full (all headers).") | 101 | 'normal (selected headers) or 'full (all headers).") |
| 102 | 102 | ||
| 103 | ;; rmail-spool-directory and rmail-file-name are defined in paths.el. | ||
| 104 | |||
| 105 | (defgroup rmail nil | 103 | (defgroup rmail nil |
| 106 | "Mail reader for Emacs." | 104 | "Mail reader for Emacs." |
| 107 | :group 'mail) | 105 | :group 'mail) |
| @@ -143,6 +141,31 @@ its character representation and its display representation.") | |||
| 143 | :prefix "rmail-edit-" | 141 | :prefix "rmail-edit-" |
| 144 | :group 'rmail) | 142 | :group 'rmail) |
| 145 | 143 | ||
| 144 | ;;;###autoload | ||
| 145 | (defcustom rmail-file-name (purecopy "~/RMAIL") | ||
| 146 | "Name of user's primary mail file." | ||
| 147 | :type 'string | ||
| 148 | :group 'rmail | ||
| 149 | :version "21.1") | ||
| 150 | |||
| 151 | ;;;###autoload | ||
| 152 | (defcustom rmail-spool-directory | ||
| 153 | (purecopy | ||
| 154 | (cond ((file-exists-p "/var/mail") | ||
| 155 | ;; SVR4 and recent BSD are said to use this. | ||
| 156 | ;; Rather than trying to know precisely which systems use it, | ||
| 157 | ;; let's assume this dir is never used for anything else. | ||
| 158 | "/var/mail/") | ||
| 159 | ;; Many GNU/Linux systems use this name. | ||
| 160 | ((file-exists-p "/var/spool/mail") "/var/spool/mail/") | ||
| 161 | ((memq system-type '(hpux usg-unix-v irix)) "/usr/mail/") | ||
| 162 | (t "/usr/spool/mail/"))) | ||
| 163 | "Name of directory used by system mailer for delivering new mail. | ||
| 164 | Its name should end with a slash." | ||
| 165 | :initialize 'custom-initialize-delay | ||
| 166 | :type 'directory | ||
| 167 | :group 'rmail) | ||
| 168 | |||
| 146 | (defcustom rmail-movemail-program nil | 169 | (defcustom rmail-movemail-program nil |
| 147 | "If non-nil, the file name of the `movemail' program." | 170 | "If non-nil, the file name of the `movemail' program." |
| 148 | :group 'rmail-retrieve | 171 | :group 'rmail-retrieve |
diff --git a/lisp/paths.el b/lisp/paths.el index 23b24f2819a..670da89b5dd 100644 --- a/lisp/paths.el +++ b/lisp/paths.el | |||
| @@ -123,27 +123,6 @@ the environment variable INFOPATH is set.") | |||
| 123 | The name of the host running an NNTP server. | 123 | The name of the host running an NNTP server. |
| 124 | The null string means use the local host as the server site.") | 124 | The null string means use the local host as the server site.") |
| 125 | 125 | ||
| 126 | (defcustom rmail-file-name (purecopy "~/RMAIL") "\ | ||
| 127 | Name of user's primary mail file." | ||
| 128 | :type 'string | ||
| 129 | :group 'rmail | ||
| 130 | :version "21.1") | ||
| 131 | |||
| 132 | (defvar rmail-spool-directory | ||
| 133 | (purecopy | ||
| 134 | (cond ((file-exists-p "/var/mail") | ||
| 135 | ;; SVR4 and recent BSD are said to use this. | ||
| 136 | ;; Rather than trying to know precisely which systems use it, | ||
| 137 | ;; let's assume this dir is never used for anything else. | ||
| 138 | "/var/mail/") | ||
| 139 | ;; Many GNU/Linux systems use this name. | ||
| 140 | ((file-exists-p "/var/spool/mail") | ||
| 141 | "/var/spool/mail/") | ||
| 142 | ((memq system-type '(hpux usg-unix-v irix)) | ||
| 143 | "/usr/mail/") | ||
| 144 | (t "/usr/spool/mail/"))) | ||
| 145 | "Name of directory used by system mailer for delivering new mail. | ||
| 146 | Its name should end with a slash.") | ||
| 147 | 126 | ||
| 148 | (defcustom remote-shell-program | 127 | (defcustom remote-shell-program |
| 149 | (purecopy | 128 | (purecopy |