diff options
| author | Richard M. Stallman | 1994-07-06 19:45:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-07-06 19:45:38 +0000 |
| commit | e36d00d496352d9d317fcf621015ea20268c4824 (patch) | |
| tree | 42e9a608f6e689f69693fc96e3b38bba48a74b29 | |
| parent | 4826e97fbca76188adbd4b31004242ca1bfeaab4 (diff) | |
| download | emacs-e36d00d496352d9d317fcf621015ea20268c4824.tar.gz emacs-e36d00d496352d9d317fcf621015ea20268c4824.zip | |
(desktop-buffer-rmail): Handle the situation
where the RMAIL file is locked, mail is waiting, and the
user selects `quit' gracefully.
| -rw-r--r-- | lisp/desktop.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/desktop.el b/lisp/desktop.el index fa92582fef6..2e12ac34e7a 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -447,7 +447,11 @@ autoloaded files." | |||
| 447 | ;; ---------------------------------------------------------------------------- | 447 | ;; ---------------------------------------------------------------------------- |
| 448 | (defun desktop-buffer-rmail () "Load an RMAIL file." | 448 | (defun desktop-buffer-rmail () "Load an RMAIL file." |
| 449 | (if (eq 'rmail-mode mam) | 449 | (if (eq 'rmail-mode mam) |
| 450 | (progn (rmail-input fn) t))) | 450 | (condition-case error |
| 451 | (progn (rmail-input fn) t) | ||
| 452 | (file-locked | ||
| 453 | (kill-buffer (current-buffer)) | ||
| 454 | 'ignored)))) | ||
| 451 | ;; ---------------------------------------------------------------------------- | 455 | ;; ---------------------------------------------------------------------------- |
| 452 | (defun desktop-buffer-mh () "Load a folder in the mh system." | 456 | (defun desktop-buffer-mh () "Load a folder in the mh system." |
| 453 | (if (eq 'mh-folder-mode mam) | 457 | (if (eq 'mh-folder-mode mam) |