aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-12-01 09:49:29 +0800
committerChong Yidong2012-12-01 09:49:29 +0800
commitc01bf73e7913ab292a51913476558ca89554b737 (patch)
tree016a5f0cd747af14ac9916a1db4a2d8737a21672
parenta940045887decb3ace683daaf6f190d8e49f37d6 (diff)
downloademacs-c01bf73e7913ab292a51913476558ca89554b737.tar.gz
emacs-c01bf73e7913ab292a51913476558ca89554b737.zip
* startup.el (fancy-startup-tail): Improve the message about auto-save files.
Fixes: debbugs:2176
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/startup.el38
2 files changed, 22 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1bcb633b06f..b71cc72baf2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-12-01 Chong Yidong <cyd@gnu.org>
2
3 * startup.el (fancy-startup-tail): Improve the message about
4 auto-save files (Bug#2176).
5
12012-12-01 Glenn Morris <rgm@gnu.org> 62012-12-01 Glenn Morris <rgm@gnu.org>
2 7
3 * ido.el (ido-file-internal): 8 * ido.el (ido-file-internal):
diff --git a/lisp/startup.el b/lisp/startup.el
index 2e8b6b7f8c4..03181a79b15 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1569,27 +1569,23 @@ a face or button specification."
1569 :face '(variable-pitch (:height 0.8)) 1569 :face '(variable-pitch (:height 0.8))
1570 emacs-copyright 1570 emacs-copyright
1571 "\n") 1571 "\n")
1572 (and auto-save-list-file-prefix 1572 (when auto-save-list-file-prefix
1573 ;; Don't signal an error if the 1573 (let ((dir (file-name-directory auto-save-list-file-prefix))
1574 ;; directory for auto-save-list files 1574 (name (file-name-nondirectory auto-save-list-file-prefix))
1575 ;; does not yet exist. 1575 files)
1576 (file-directory-p (file-name-directory 1576 ;; Don't warn if the directory for auto-save-list files does not
1577 auto-save-list-file-prefix)) 1577 ;; yet exist.
1578 (directory-files 1578 (and (file-directory-p dir)
1579 (file-name-directory auto-save-list-file-prefix) 1579 (setq files (directory-files dir nil (concat "\\`" name) t))
1580 nil 1580 (fancy-splash-insert :face '(variable-pitch font-lock-comment-face)
1581 (concat "\\`" 1581 (if (= (length files) 1)
1582 (regexp-quote (file-name-nondirectory 1582 "\nAn auto-save file list was found. "
1583 auto-save-list-file-prefix))) 1583 "\nAuto-save file lists were found. ")
1584 t) 1584 "If an Emacs session crashed recently,\ntype "
1585 (fancy-splash-insert :face '(variable-pitch font-lock-comment-face) 1585 :face '(fixed-pitch font-lock-comment-face)
1586 "\nIf an Emacs session crashed recently, " 1586 "M-x recover-session RET"
1587 "type " 1587 :face '(variable-pitch font-lock-comment-face)
1588 :face '(fixed-pitch font-lock-comment-face) 1588 " to recover the files you were editing."))))
1589 "Meta-x recover-session RET"
1590 :face '(variable-pitch font-lock-comment-face)
1591 "\nto recover"
1592 " the files you were editing."))
1593 1589
1594 (when concise 1590 (when concise
1595 (fancy-splash-insert 1591 (fancy-splash-insert