diff options
| author | Noah Friedman | 1995-01-03 23:44:25 +0000 |
|---|---|---|
| committer | Noah Friedman | 1995-01-03 23:44:25 +0000 |
| commit | a3039e326d09dd8b4c591b1540c46475bd03d68b (patch) | |
| tree | 9f55e4055914ffaa16f3d2c818e123a82d3faabd | |
| parent | 9d73ab0d9d309a7ccc0a3bd8180e81febd160712 (diff) | |
| download | emacs-a3039e326d09dd8b4c591b1540c46475bd03d68b.tar.gz emacs-a3039e326d09dd8b4c591b1540c46475bd03d68b.zip | |
(mail-abbrev-mailrc-file): Variable and macro deleted.
All callers now use `mail-personal-alias-file'.
| -rw-r--r-- | lisp/mail/mailabbrev.el | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/lisp/mail/mailabbrev.el b/lisp/mail/mailabbrev.el index 3b3f9a5198e..087087f21bc 100644 --- a/lisp/mail/mailabbrev.el +++ b/lisp/mail/mailabbrev.el | |||
| @@ -126,14 +126,6 @@ | |||
| 126 | 126 | ||
| 127 | (require 'sendmail) | 127 | (require 'sendmail) |
| 128 | 128 | ||
| 129 | (defvar mail-abbrev-mailrc-file nil | ||
| 130 | "Name of file with mail aliases. If nil, ~/.mailrc is used.") | ||
| 131 | |||
| 132 | (defmacro mail-abbrev-mailrc-file () | ||
| 133 | '(or mail-abbrev-mailrc-file | ||
| 134 | (setq mail-abbrev-mailrc-file | ||
| 135 | (or (getenv "MAILRC") "~/.mailrc")))) | ||
| 136 | |||
| 137 | ;; originally defined in sendmail.el - used to be an alist, now is a table. | 129 | ;; originally defined in sendmail.el - used to be an alist, now is a table. |
| 138 | (defvar mail-abbrevs nil | 130 | (defvar mail-abbrevs nil |
| 139 | "Word-abbrev table of mail address aliases. | 131 | "Word-abbrev table of mail address aliases. |
| @@ -144,7 +136,7 @@ no aliases, which is represented by this being a table with no entries.)") | |||
| 144 | ;;;###autoload | 136 | ;;;###autoload |
| 145 | (defun mail-abbrevs-setup () | 137 | (defun mail-abbrevs-setup () |
| 146 | (if (and (not (vectorp mail-abbrevs)) | 138 | (if (and (not (vectorp mail-abbrevs)) |
| 147 | (file-exists-p (mail-abbrev-mailrc-file))) | 139 | (file-exists-p mail-personal-alias-file)) |
| 148 | (build-mail-abbrevs)) | 140 | (build-mail-abbrevs)) |
| 149 | (make-local-variable 'pre-abbrev-expand-hook) | 141 | (make-local-variable 'pre-abbrev-expand-hook) |
| 150 | (setq pre-abbrev-expand-hook | 142 | (setq pre-abbrev-expand-hook |
| @@ -157,8 +149,9 @@ no aliases, which is represented by this being a table with no entries.)") | |||
| 157 | 149 | ||
| 158 | ;;;###autoload | 150 | ;;;###autoload |
| 159 | (defun build-mail-abbrevs (&optional file recursivep) | 151 | (defun build-mail-abbrevs (&optional file recursivep) |
| 160 | "Read mail aliases from `~/.mailrc' file and set `mail-abbrevs'." | 152 | "Read mail aliases from personal mail alias file and set `mail-abbrevs'. |
| 161 | (setq file (expand-file-name (or file (mail-abbrev-mailrc-file)))) | 153 | By default this is the file specified by `mail-personal-alias-file'." |
| 154 | (setq file (expand-file-name (or file mail-personal-alias-file))) | ||
| 162 | (if (vectorp mail-abbrevs) | 155 | (if (vectorp mail-abbrevs) |
| 163 | nil | 156 | nil |
| 164 | (setq mail-abbrevs nil) | 157 | (setq mail-abbrevs nil) |
| @@ -247,7 +240,7 @@ If DEFINITION contains multiple addresses, separate them with commas." | |||
| 247 | nil | 240 | nil |
| 248 | (setq mail-abbrevs nil) | 241 | (setq mail-abbrevs nil) |
| 249 | (define-abbrev-table 'mail-abbrevs '()) | 242 | (define-abbrev-table 'mail-abbrevs '()) |
| 250 | (if (file-exists-p (mail-abbrev-mailrc-file)) | 243 | (if (file-exists-p mail-personal-alias-file) |
| 251 | (build-mail-abbrevs))) | 244 | (build-mail-abbrevs))) |
| 252 | ;; strip garbage from front and end | 245 | ;; strip garbage from front and end |
| 253 | (if (string-match "\\`[ \t\n,]+" definition) | 246 | (if (string-match "\\`[ \t\n,]+" definition) |
| @@ -489,7 +482,7 @@ characters which may be a part of the name of a mail-alias.") | |||
| 489 | (interactive (list | 482 | (interactive (list |
| 490 | (let ((insert-default-directory t) | 483 | (let ((insert-default-directory t) |
| 491 | (default-directory (expand-file-name "~/")) | 484 | (default-directory (expand-file-name "~/")) |
| 492 | (def (mail-abbrev-mailrc-file))) | 485 | (def mail-personal-alias-file)) |
| 493 | (read-file-name | 486 | (read-file-name |
| 494 | (format "Read additional aliases from file: (default %s) " | 487 | (format "Read additional aliases from file: (default %s) " |
| 495 | def) | 488 | def) |
| @@ -503,7 +496,7 @@ characters which may be a part of the name of a mail-alias.") | |||
| 503 | (interactive (list | 496 | (interactive (list |
| 504 | (let ((insert-default-directory t) | 497 | (let ((insert-default-directory t) |
| 505 | (default-directory (expand-file-name "~/")) | 498 | (default-directory (expand-file-name "~/")) |
| 506 | (def (mail-abbrev-mailrc-file))) | 499 | (def mail-personal-alias-file)) |
| 507 | (read-file-name | 500 | (read-file-name |
| 508 | (format "Read mail aliases from file: (default %s) " def) | 501 | (format "Read mail aliases from file: (default %s) " def) |
| 509 | default-directory | 502 | default-directory |