diff options
| author | Richard M. Stallman | 2002-03-03 22:18:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-03-03 22:18:12 +0000 |
| commit | 8366cfb567bb59167f8463e9b6e732d468da9268 (patch) | |
| tree | 889fd6e7a1e3cfbd89208d98a6ebd7f5ae125c68 | |
| parent | 14661c9a50e1569f1538de1caa80fd0f914aa2ac (diff) | |
| download | emacs-8366cfb567bb59167f8463e9b6e732d468da9268.tar.gz emacs-8366cfb567bb59167f8463e9b6e732d468da9268.zip | |
(mail-recover-1): Increase non-random-len
by 1 since we changed make-auto-save-file-name to add one
fewer character to the buffer name.
(mail-recover): Really show point at the right place
in the *Directory* buffer.
| -rw-r--r-- | lisp/mail/sendmail.el | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 4986b75c983..9097fd3e3d0 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -471,6 +471,7 @@ Here are commands that move to a header field (and create it if there isn't): | |||
| 471 | \\[mail-sent-via] mail-sent-via (add a Sent-via field for each To or CC). | 471 | \\[mail-sent-via] mail-sent-via (add a Sent-via field for each To or CC). |
| 472 | Turning on Mail mode runs the normal hooks `text-mode-hook' and | 472 | Turning on Mail mode runs the normal hooks `text-mode-hook' and |
| 473 | `mail-mode-hook' (in that order)." | 473 | `mail-mode-hook' (in that order)." |
| 474 | (setq local-abbrev-table text-mode-abbrev-table) | ||
| 474 | (make-local-variable 'mail-reply-action) | 475 | (make-local-variable 'mail-reply-action) |
| 475 | (make-local-variable 'mail-send-actions) | 476 | (make-local-variable 'mail-send-actions) |
| 476 | (setq buffer-offer-save t) | 477 | (setq buffer-offer-save t) |
| @@ -1547,7 +1548,7 @@ The seventh argument ACTIONS is a list of actions to take | |||
| 1547 | ;; "#<RANDOM-STUFF>#" to the buffer name, where RANDOM-STUFF | 1548 | ;; "#<RANDOM-STUFF>#" to the buffer name, where RANDOM-STUFF |
| 1548 | ;; is the result of (make-temp-name ""). | 1549 | ;; is the result of (make-temp-name ""). |
| 1549 | (setq non-random-len | 1550 | (setq non-random-len |
| 1550 | (- (length file-name) (length (make-temp-name "")) 1)) | 1551 | (- (length file-name) (length (make-temp-name "")))) |
| 1551 | (setq wildcard (concat (substring file-name 0 non-random-len) "*")) | 1552 | (setq wildcard (concat (substring file-name 0 non-random-len) "*")) |
| 1552 | (if (null (file-expand-wildcards wildcard)) | 1553 | (if (null (file-expand-wildcards wildcard)) |
| 1553 | (message "There are no auto-saved drafts to recover") | 1554 | (message "There are no auto-saved drafts to recover") |
| @@ -1631,15 +1632,12 @@ you can move to one of them and type C-c C-c to recover that one." | |||
| 1631 | ;; ls-lisp instead). | 1632 | ;; ls-lisp instead). |
| 1632 | (dired-noselect file-name | 1633 | (dired-noselect file-name |
| 1633 | (concat dired-listing-switches "t")))) | 1634 | (concat dired-listing-switches "t")))) |
| 1634 | (save-excursion | 1635 | (save-selected-window |
| 1635 | (set-buffer dispbuf) | 1636 | (select-window (display-buffer dispbuf t)) |
| 1636 | (let ((buffer-read-only nil)) | 1637 | (goto-char (point-min)) |
| 1637 | (goto-char (point-min)) | 1638 | (forward-line 2) |
| 1638 | (forward-line) | 1639 | (dired-move-to-filename) |
| 1639 | (kill-line 2) | 1640 | (setq dispbuf (rename-buffer "*Directory*" t))) |
| 1640 | (dired-move-to-filename) | ||
| 1641 | (setq dispbuf (rename-buffer "*Directory*" t)))) | ||
| 1642 | (display-buffer dispbuf t) | ||
| 1643 | (if (not (yes-or-no-p | 1641 | (if (not (yes-or-no-p |
| 1644 | (format "Recover mail draft from auto save file %s? " | 1642 | (format "Recover mail draft from auto save file %s? " |
| 1645 | file-name))) | 1643 | file-name))) |