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
a05fc4d9
Commit
a05fc4d9
authored
Aug 04, 1994
by
Richard M. Stallman
Browse files
(rmail-select-summary): Preserve rmail buffer's value of
rmail-total-messages even while summary buffer is current.
parent
285cdf4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
lisp/mail/rmail.el
lisp/mail/rmail.el
+19
-12
No files found.
lisp/mail/rmail.el
View file @
a05fc4d9
...
...
@@ -200,18 +200,25 @@ Called with region narrowed to the message, including headers.")
;; Perform BODY in the summary buffer
;; in such a way that its cursor is properly updated in its own window.
(defmacro rmail-select-summary (&rest body)
(` (progn (if (rmail-summary-displayed)
(let ((window (selected-window)))
(save-excursion
(unwind-protect
(progn
(pop-to-buffer rmail-summary-buffer)
(,@ body))
(select-window window))))
(save-excursion
(set-buffer rmail-summary-buffer)
(progn (,@ body))))
(rmail-maybe-display-summary))))
(` (let ((total rmail-total-messages))
(if (rmail-summary-displayed)
(let ((window (selected-window)))
(save-excursion
(unwind-protect
(progn
(pop-to-buffer rmail-summary-buffer)
;; rmail-total-messages is a buffer-local var
;; in the rmail buffer.
;; This way we make it available for the body
;; even tho the rmail buffer is not current.
(let ((rmail-total-messages total))
(,@ body)))
(select-window window))))
(save-excursion
(set-buffer rmail-summary-buffer)
(let ((rmail-total-messages total))
(,@ body))))
(rmail-maybe-display-summary))))
;;;; *** Rmail Mode ***
...
...
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