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
c920f222
Commit
c920f222
authored
Dec 02, 2009
by
Glenn Morris
Browse files
(rmail-pop-to-buffer): New function. (Bug#2282)
(rmail-select-summary): Use rmail-pop-to-buffer.
parent
5813f6ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/mail/rmail.el
lisp/mail/rmail.el
+7
-1
No files found.
lisp/ChangeLog
View file @
c920f222
2009-12-02 Glenn Morris <rgm@gnu.org>
* mail/rmail.el (rmail-pop-to-buffer): New function. (Bug#2282)
(rmail-select-summary): Use rmail-pop-to-buffer.
* calendar/diary-lib.el (diary-list-entries): Replace superfluous
save-excursion with save-current-buffer.
Widen before searching. (Bug#5093)
...
...
lisp/mail/rmail.el
View file @
c920f222
...
...
@@ -792,6 +792,12 @@ that knows the exact ordering of the \\( \\) subexpressions.")
.
'rmail-header-name
))))
"Additional expressions to highlight in Rmail mode."
)
;; Rmail does not expect horizontal splitting. (Bug#2282)
(
defun
rmail-pop-to-buffer
(
&rest
args
)
"Like `pop-to-buffer', but with `split-width-threshold' set to nil."
(
let
(
split-width-threshold
)
(
apply
'pop-to-buffer
args
)))
;; 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
)
...
...
@@ -801,7 +807,7 @@ that knows the exact ordering of the \\( \\) subexpressions.")
(
save-excursion
(
unwind-protect
(
progn
(pop-to-buffer rmail-summary-buffer)
(
rmail-
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
...
...
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