diff options
| author | Richard M. Stallman | 1993-06-15 20:50:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-15 20:50:11 +0000 |
| commit | 51e4ece8a5579a38c72352a79e1e5118f990ea75 (patch) | |
| tree | cd31a860465260ce1dc4ff1e241d0d3cd4d23c85 | |
| parent | b2b01bfa218c1bdc1e843dd01fef4bcbd01bfc46 (diff) | |
| download | emacs-51e4ece8a5579a38c72352a79e1e5118f990ea75.tar.gz emacs-51e4ece8a5579a38c72352a79e1e5118f990ea75.zip | |
(define-mail-abbrev): Renamed from define-mail-alias.
(build-mail-abbrevs): Use new name.
| -rw-r--r-- | lisp/mail/mailabbrev.el | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/mail/mailabbrev.el b/lisp/mail/mailabbrev.el index c3295c872ed..2768da15337 100644 --- a/lisp/mail/mailabbrev.el +++ b/lisp/mail/mailabbrev.el | |||
| @@ -70,7 +70,7 @@ | |||
| 70 | ;;; (This is bogus because mail-delivery programs want commas, not spaces, | 70 | ;;; (This is bogus because mail-delivery programs want commas, not spaces, |
| 71 | ;;; but that's what the file format is, so we have to live with it.) | 71 | ;;; but that's what the file format is, so we have to live with it.) |
| 72 | ;;; | 72 | ;;; |
| 73 | ;;; If you like, you can call the function define-mail-alias to define your | 73 | ;;; If you like, you can call the function define-mail-abbrev to define your |
| 74 | ;;; mail aliases instead of using a .mailrc file. When you call it in this | 74 | ;;; mail aliases instead of using a .mailrc file. When you call it in this |
| 75 | ;;; way, addresses are separated by commas. | 75 | ;;; way, addresses are separated by commas. |
| 76 | ;;; | 76 | ;;; |
| @@ -80,7 +80,7 @@ | |||
| 80 | ;;; this. One solution to this, if you are on a system whose /bin/mail doesn't | 80 | ;;; this. One solution to this, if you are on a system whose /bin/mail doesn't |
| 81 | ;;; work that way, (and you still want to be able to /bin/mail to send mail in | 81 | ;;; work that way, (and you still want to be able to /bin/mail to send mail in |
| 82 | ;;; addition to emacs) is to define minimal aliases (without full names) in | 82 | ;;; addition to emacs) is to define minimal aliases (without full names) in |
| 83 | ;;; your .mailrc file, and use define-mail-alias to redefine them when sending | 83 | ;;; your .mailrc file, and use define-mail-abbrev to redefine them when sending |
| 84 | ;;; mail from emacs; this way, mail sent from /bin/mail will work, and mail | 84 | ;;; mail from emacs; this way, mail sent from /bin/mail will work, and mail |
| 85 | ;;; sent from emacs will be pretty. | 85 | ;;; sent from emacs will be pretty. |
| 86 | ;;; | 86 | ;;; |
| @@ -209,9 +209,10 @@ no aliases, which is represented by this being a table with no entries.)") | |||
| 209 | (start (progn (skip-chars-forward " \t") (point)))) | 209 | (start (progn (skip-chars-forward " \t") (point)))) |
| 210 | (end-of-line) | 210 | (end-of-line) |
| 211 | ; (message "** %s \"%s\"" name (buffer-substring start (point)))(sit-for 1) | 211 | ; (message "** %s \"%s\"" name (buffer-substring start (point)))(sit-for 1) |
| 212 | (define-mail-alias | 212 | (define-mail-abbrev |
| 213 | name | 213 | name |
| 214 | (buffer-substring start (point)))))) | 214 | (buffer-substring start (point)) |
| 215 | t)))) | ||
| 215 | ;; Resolve forward references in .mailrc file. | 216 | ;; Resolve forward references in .mailrc file. |
| 216 | ;; This would happen automatically before the first abbrev was | 217 | ;; This would happen automatically before the first abbrev was |
| 217 | ;; expanded, but why not do it now. | 218 | ;; expanded, but why not do it now. |
| @@ -226,7 +227,7 @@ no aliases, which is represented by this being a table with no entries.)") | |||
| 226 | This has to contain a comma, so \", \" is a reasonable value. You might | 227 | This has to contain a comma, so \", \" is a reasonable value. You might |
| 227 | also want something like \",\\n \" to get each address on its own line.") | 228 | also want something like \",\\n \" to get each address on its own line.") |
| 228 | 229 | ||
| 229 | ;; define-mail-alias sets this flag, which causes mail-resolve-all-aliases | 230 | ;; define-mail-abbrev sets this flag, which causes mail-resolve-all-aliases |
| 230 | ;; to be called before expanding abbrevs if it's necessary. | 231 | ;; to be called before expanding abbrevs if it's necessary. |
| 231 | (defvar mail-abbrev-aliases-need-to-be-resolved t) | 232 | (defvar mail-abbrev-aliases-need-to-be-resolved t) |
| 232 | 233 | ||
| @@ -234,8 +235,8 @@ also want something like \",\\n \" to get each address on its own line.") | |||
| 234 | ;; stuff parsed from the .mailrc file. | 235 | ;; stuff parsed from the .mailrc file. |
| 235 | ;; | 236 | ;; |
| 236 | ;;;###autoload | 237 | ;;;###autoload |
| 237 | (defun define-mail-alias (name definition &optional from-mailrc-file) | 238 | (defun define-mail-abbrev (name definition &optional from-mailrc-file) |
| 238 | "Define NAME as a mail-alias that translates to DEFINITION. | 239 | "Define NAME as a mail-abbrev that translates to DEFINITION. |
| 239 | If DEFINITION contains multiple addresses, separate them with commas." | 240 | If DEFINITION contains multiple addresses, separate them with commas." |
| 240 | ;; When this is called from build-mail-abbrevs, the third argument is | 241 | ;; When this is called from build-mail-abbrevs, the third argument is |
| 241 | ;; true, and we do some evil space->comma hacking like /bin/mail does. | 242 | ;; true, and we do some evil space->comma hacking like /bin/mail does. |