From: Richard M. Stallman Date: Fri, 29 Aug 2003 16:12:38 +0000 (+0000) Subject: (mail-abbrevs-sync-aliases): Do nothing if mail-personal-alias-file is nil. X-Git-Tag: ttn-vms-21-2-B4~8958 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f7e85dcf23383000d40c1c997ecd5f3df83c9ac2;p=emacs.git (mail-abbrevs-sync-aliases): Do nothing if mail-personal-alias-file is nil. --- diff --git a/lisp/mail/mailabbrev.el b/lisp/mail/mailabbrev.el index b2edf777861..743f909f5d6 100644 --- a/lisp/mail/mailabbrev.el +++ b/lisp/mail/mailabbrev.el @@ -161,12 +161,13 @@ no aliases, which is represented by this being a table with no entries.)") "The modification time of your mail alias file when it was last examined.") (defun mail-abbrevs-sync-aliases () - (if (file-exists-p mail-personal-alias-file) - (let ((modtime (nth 5 (file-attributes mail-personal-alias-file)))) - (if (not (equal mail-abbrev-modtime modtime)) - (progn - (setq mail-abbrev-modtime modtime) - (build-mail-abbrevs)))))) + (when mail-personal-alias-file + (if (file-exists-p mail-personal-alias-file) + (let ((modtime (nth 5 (file-attributes mail-personal-alias-file)))) + (if (not (equal mail-abbrev-modtime modtime)) + (progn + (setq mail-abbrev-modtime modtime) + (build-mail-abbrevs))))))) ;;;###autoload (defun mail-abbrevs-setup ()