From: Yuchen Pei <id@ypei.org>
To: help-gnu-emacs@gnu.org
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 [thread overview]
Message-ID: <87jzw2byjp.fsf@ypei.org> (raw)
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>
next reply other threads:[~2023-06-17 2:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-17 2:41 Yuchen Pei [this message]
2023-06-17 15:07 ` Why mark gnus-summary-buffer as the previous buffer when opening say a pdf attachment? Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87jzw2byjp.fsf@ypei.org \
--to=id@ypei.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).