Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8882002a
Commit
8882002a
authored
Mar 22, 2009
by
Richard M. Stallman
Browse files
(rmail-expunge): Without DONT-SHOW, show the message even after
updating summary.
parent
551fd0c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
16 deletions
+19
-16
lisp/ChangeLog
lisp/ChangeLog
+3
-1
lisp/mail/rmail.el
lisp/mail/rmail.el
+16
-15
No files found.
lisp/ChangeLog
View file @
8882002a
2009-03-22 Richard M Stallman <rms@gnu.org>
* mail/rmail.el (rmail-expunge): Update summary buffer even if NO-SHOW.
* mail/rmail.el (rmail-expunge): Update summary buffer even if DONT-SHOW.
(rmail-expunge): Without DONT-SHOW, show the message even after
updating summary.
2009-03-21 Jari Aalto <jari.aalto@cante.net>
...
...
lisp/mail/rmail.el
View file @
8882002a
...
...
@@ -3265,25 +3265,26 @@ See also user-option `rmail-confirm-expunge'."
(interactive)
(when (rmail-expunge-confirmed)
(let ((was-deleted (rmail-message-deleted-p rmail-current-message))
(
was-swapped
(
rmail-buffers-swapped-p
))
(
total
rmail-total-messages
))
(was-swapped (rmail-buffers-swapped-p)))
(rmail-only-expunge t)
(if dont-show
;; Do update the summary buffer, if any.
(
when
(
rmail-summary-exists
)
(
with-current-buffer
rmail-summary-buffer
(
let
((
rmail-total-messages
total
))
(
rmail-update-summary
))))
(let ((total rmail-total-messages))
(when (rmail-summary-exists)
(with-current-buffer rmail-summary-buffer
(let ((rmail-total-messages total))
(rmail-update-summary)))))
;; Update the summary and show it.
(if (rmail-summary-exists)
(
rmail-select-summary
(
rmail-update-summary
))
;; If we expunged the current message, a new one is current now,
;; so show it. If we weren't showing a message, show it.
(
if
(
or
was-deleted
(
not
was-swapped
))
(
rmail-show-message-1
rmail-current-message
)
;; Show the same message that was being shown before.
(
rmail-display-labels
)
(
rmail-swap-buffers
)
(
setq
rmail-buffer-swapped
t
))))))
)
(rmail-select-summary (rmail-update-summary))
)
;; If we expunged the current message, a new one is current now,
;; so show it. If we weren't showing a message, show it.
(if (or was-deleted (not was-swapped))
(rmail-show-message-1 rmail-current-message)
;; Show the same message that was being shown before.
(rmail-display-labels)
(rmail-swap-buffers)
(setq rmail-buffer-swapped t))))))
;;;; *** Rmail Mailing Commands ***
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment