diff options
| author | Chong Yidong | 2012-12-01 09:49:29 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-12-01 09:49:29 +0800 |
| commit | c01bf73e7913ab292a51913476558ca89554b737 (patch) | |
| tree | 016a5f0cd747af14ac9916a1db4a2d8737a21672 | |
| parent | a940045887decb3ace683daaf6f190d8e49f37d6 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/startup.el | 38 |
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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-12-01 Glenn Morris <rgm@gnu.org> | 6 | 2012-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 |