unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Why mark gnus-summary-buffer as the previous buffer when opening say a pdf attachment?
@ 2023-06-17  2:41 Yuchen Pei
  2023-06-17 15:07 ` Emanuel Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Yuchen Pei @ 2023-06-17  2:41 UTC (permalink / raw)
  To: help-gnu-emacs

Referring to the following lines in `mm-display-external':

--8<---------------cut here---------------start------------->8---
			  ;; So that we pop back to the right place, sort of.
			  (switch-to-buffer gnus-summary-buffer)
			  (switch-to-buffer mm))
--8<---------------cut here---------------end--------------->8---

I don't know how to open an attachment from the summary buffer, or
whether this is the representative usecase of opening a attachment.

But if the attachment is opened from an article buffer (e.g. an email
message), the effect of these lines is that it pops back to the "wrong"
place (list of emails) when one is done with viewing
(e.g. `quit-window').

So I wonder what is the rationale of this logic.

Best,
Yuchen

-- 
PGP Key: 47F9 D050 1E11 8879 9040  4941 2126 7E93 EF86 DFD0
          <https://ypei.org/assets/ypei-pubkey.txt>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-17 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-17  2:41 Why mark gnus-summary-buffer as the previous buffer when opening say a pdf attachment? Yuchen Pei
2023-06-17 15:07 ` Emanuel Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).