help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why mark gnus-summary-buffer as the previous buffer when opening say a p


From: Yuchen Pei
Subject: Why mark gnus-summary-buffer as the previous buffer when opening say a pdf attachment?
Date: Sat, 17 Jun 2023 12:41:30 +1000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]