Commit 53aff12a authored by Glenn Morris's avatar Glenn Morris
Browse files

Make build-mail-aliases an interactive command.

* lisp/mail/mailalias.el (build-mail-aliases): Make it interactive.
* lisp/mail/sendmail.el (build-mail-aliases): Update autoload.

* doc/misc/faq.texi (Expanding aliases when sending mail):
Now build-mail-aliases is interactive.
parent aae4b48c
2010-12-14 Glenn Morris <rgm@gnu.org>
* faq.texi (Expanding aliases when sending mail):
Now build-mail-aliases is interactive.
2010-12-13 Andrew Cohen <cohen@andy.bu.edu> 2010-12-13 Andrew Cohen <cohen@andy.bu.edu>
* gnus.texi: First pass at adding (rough) nnir documentation. * gnus.texi: First pass at adding (rough) nnir documentation.
2010-12-13 Lars Magne Ingebrigtsen <larsi@gnus.org> 2010-12-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Filtering New Groups): Mention * gnus.texi (Filtering New Groups):
gnus-auto-subscribed-categories. Mention gnus-auto-subscribed-categories.
(The First Time): Removed, since default-subscribed-newsgroups has been (The First Time): Remove, since default-subscribed-newsgroups has been
removed. removed.
2010-12-13 Glenn Morris <rgm@gnu.org> 2010-12-13 Glenn Morris <rgm@gnu.org>
......
...@@ -4299,12 +4299,12 @@ file. ...@@ -4299,12 +4299,12 @@ file.
Normally, Emacs expands aliases when you send the message. Normally, Emacs expands aliases when you send the message.
To expand them before this, use @kbd{M-x expand-mail-aliases}. To expand them before this, use @kbd{M-x expand-mail-aliases}.
@c FIXME there should be an interactive rebuild command for this.
@item @item
Emacs normally only reads the @file{.mailrc} file once per session, Emacs normally only reads the @file{.mailrc} file once per session, when
when you start to compose your first mail message. If you edit you start to compose your first mail message. If you edit the file
@file{.mailrc}, you can type @kbd{M-: (build-mail-aliases) @key{RET}} to after this, you can use @kbd{M-x build-mail-aliases} to make Emacs
make Emacs reread @file{~/.mailrc}. reread it. Prior to Emacs 24.1, this is not an interactive command, so
you must instead type @kbd{M-: (build-mail-aliases) @key{RET}}.
@item @item
If you like, you can expand mail aliases as abbrevs, as soon as you If you like, you can expand mail aliases as abbrevs, as soon as you
......
2010-12-14 Glenn Morris <rgm@gnu.org> 2010-12-14 Glenn Morris <rgm@gnu.org>
* mail/mailalias.el (build-mail-aliases): Make it interactive.
* mail/sendmail.el (build-mail-aliases): Update autoload.
* dired.el (dired-trivial-filenames, dired-chown-program) * dired.el (dired-trivial-filenames, dired-chown-program)
(dired-auto-revert-buffer): Remove autoload cookies. (dired-auto-revert-buffer): Remove autoload cookies.
* mail/sendmail.el (mail-recover-1): Require 'dired. * mail/sendmail.el (mail-recover-1): Require 'dired.
......
;;; mailalias.el --- expand and complete mailing address aliases ;;; mailalias.el --- expand and complete mailing address aliases
;; Copyright (C) 1985, 1987, 1995, 1996, 1997, 2001, 2002, 2003, ;; Copyright (C) 1985, 1987, 1995, 1996, 1997, 2001, 2002, 2003, 2004,
;; 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. ;; 2005, 2006, 2007, 2008, 2009, 2010
;; Free Software Foundation, Inc.
;; Maintainer: FSF ;; Maintainer: FSF
;; Keywords: mail ;; Keywords: mail
...@@ -240,6 +241,11 @@ removed from alias expansions." ...@@ -240,6 +241,11 @@ removed from alias expansions."
(defun build-mail-aliases (&optional file) (defun build-mail-aliases (&optional file)
"Read mail aliases from personal aliases file and set `mail-aliases'. "Read mail aliases from personal aliases file and set `mail-aliases'.
By default, this is the file specified by `mail-personal-alias-file'." By default, this is the file specified by `mail-personal-alias-file'."
(interactive
(list
(read-file-name (format "Read mail alias file (default %s): "
mail-personal-alias-file)
nil mail-personal-alias-file t)))
(setq file (expand-file-name (or file mail-personal-alias-file))) (setq file (expand-file-name (or file mail-personal-alias-file)))
;; In case mail-aliases is t, make sure define-mail-alias ;; In case mail-aliases is t, make sure define-mail-alias
;; does not recursively call build-mail-aliases. ;; does not recursively call build-mail-aliases.
...@@ -562,5 +568,4 @@ See `mail-directory-stream'." ...@@ -562,5 +568,4 @@ See `mail-directory-stream'."
(provide 'mailalias) (provide 'mailalias)
;; arch-tag: 1d6a0f87-eb34-4d45-8816-60c1b952cf46
;;; mailalias.el ends here ;;; mailalias.el ends here
...@@ -384,7 +384,7 @@ The default value matches citations like `foo-bar>' plus whitespace." ...@@ -384,7 +384,7 @@ The default value matches citations like `foo-bar>' plus whitespace."
(autoload 'build-mail-aliases "mailalias" (autoload 'build-mail-aliases "mailalias"
"Read mail aliases from personal aliases file and set `mail-aliases'. "Read mail aliases from personal aliases file and set `mail-aliases'.
By default, this is the file specified by `mail-personal-alias-file'.") By default, this is the file specified by `mail-personal-alias-file'." t)
;;;###autoload ;;;###autoload
(defcustom mail-signature t (defcustom mail-signature t
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment