diff options
| author | Richard M. Stallman | 2009-01-17 17:29:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2009-01-17 17:29:25 +0000 |
| commit | fdcab4274673a2a7f15a5c9fa0a25e48585773fb (patch) | |
| tree | f8b3d33c1bc611ac363289351b07b88b67d74647 | |
| parent | df05a1630f092597fd38b182e51871e3f9afbaca (diff) | |
| download | emacs-fdcab4274673a2a7f15a5c9fa0a25e48585773fb.tar.gz emacs-fdcab4274673a2a7f15a5c9fa0a25e48585773fb.zip | |
(buffer-swapped-with): Mark as permanent local.
(pmail-set-message-counters): Set pmail-deleted-vector from msg hdrs.
(pmail-auto-file): Simplify a regexp.
| -rw-r--r-- | lisp/mail/pmail.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/mail/pmail.el b/lisp/mail/pmail.el index 03296e99f57..75e0aff1927 100644 --- a/lisp/mail/pmail.el +++ b/lisp/mail/pmail.el | |||
| @@ -50,8 +50,8 @@ | |||
| 50 | "Buffer that this buffer's contents are temporarily swapped with. | 50 | "Buffer that this buffer's contents are temporarily swapped with. |
| 51 | You should only set this variable in file-visiting buffers, | 51 | You should only set this variable in file-visiting buffers, |
| 52 | because it only affects how to save the buffer in its file.") | 52 | because it only affects how to save the buffer in its file.") |
| 53 | |||
| 54 | (make-variable-buffer-local 'buffer-swapped-with) | 53 | (make-variable-buffer-local 'buffer-swapped-with) |
| 54 | (put 'buffer-swapped-with 'permanent-local t) | ||
| 55 | 55 | ||
| 56 | (defadvice basic-save-buffer | 56 | (defadvice basic-save-buffer |
| 57 | (around check-swap activate) | 57 | (around check-swap activate) |
| @@ -2352,6 +2352,10 @@ Output a helpful message unless NOMSG is non-nil." | |||
| 2352 | (while (<= i pmail-total-messages) | 2352 | (while (<= i pmail-total-messages) |
| 2353 | (aset pmail-msgref-vector i (list i)) | 2353 | (aset pmail-msgref-vector i (list i)) |
| 2354 | (setq i (1+ i)))) | 2354 | (setq i (1+ i)))) |
| 2355 | (let ((i 0)) | ||
| 2356 | (while (<= i pmail-total-messages) | ||
| 2357 | (pmail-set-message-deleted-p i (pmail-message-attr-p i ".D")) | ||
| 2358 | (setq i (1+ i)))) | ||
| 2355 | (message "Counting messages...done"))))) | 2359 | (message "Counting messages...done"))))) |
| 2356 | 2360 | ||
| 2357 | 2361 | ||
| @@ -2688,7 +2692,7 @@ copy all header fields whose names do not match | |||
| 2688 | "Automatically move a message into a sub-folder based on criteria. | 2692 | "Automatically move a message into a sub-folder based on criteria. |
| 2689 | Called when a new message is displayed." | 2693 | Called when a new message is displayed." |
| 2690 | (if (or (zerop pmail-total-messages) | 2694 | (if (or (zerop pmail-total-messages) |
| 2691 | (pmail-message-attr-p pmail-current-message "...F...") | 2695 | (pmail-message-attr-p pmail-current-message "...F") |
| 2692 | (not (string= (buffer-file-name) | 2696 | (not (string= (buffer-file-name) |
| 2693 | (expand-file-name pmail-file-name)))) | 2697 | (expand-file-name pmail-file-name)))) |
| 2694 | ;; Do nothing if the message has already been filed or if there | 2698 | ;; Do nothing if the message has already been filed or if there |