]> git.eshelyaron.com Git - emacs.git/commitdiff
(mail-abbrevs-sync-aliases): Do nothing if mail-personal-alias-file is nil.
authorRichard M. Stallman <rms@gnu.org>
Fri, 29 Aug 2003 16:12:38 +0000 (16:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 29 Aug 2003 16:12:38 +0000 (16:12 +0000)
lisp/mail/mailabbrev.el

index b2edf77786181adffe3d212ceea962ff787fed9a..743f909f5d6805877ed9a95c14f6b45948a9bd91 100644 (file)
@@ -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 ()