unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dmitry@gutov.dev>
To: Eli Zaretskii <eliz@gnu.org>,
	emacs-devel@gnu.org, Po Lu <luangruo@yahoo.com>
Subject: Re: Systematizing back navigation
Date: Tue, 21 Nov 2023 13:43:02 +0200	[thread overview]
Message-ID: <4ed84830-53d5-5985-27b6-cb1cfd2c4539@gutov.dev> (raw)
In-Reply-To: <6A055550-9202-4F1D-A4D4-78AA91F005A9@gnu.org>

On 21/11/2023 08:57, Eli Zaretskii wrote:
> On November 21, 2023 8:35:26 AM GMT+02:00, Po Lu<luangruo@yahoo.com>  wrote:
>> Eli Zaretskii<eliz@gnu.org>  writes:
>>
>>> Perhaps you bumped into some
>>> specific situation, and then tried to generalize it too much.  In that
>>> case, I suggest to describe the original issue, not its
>>> generalizations.
>> I did describe three specific scenarios that I come across frequently:
>> Info, Help and Gnus Article buffers.  Besides those, there are also
>> pop-ups displayed by the likes of VC,
>> dired-mouse-find-file-other-window, and virtually every other caller of
>> display-buffer.  With these, I'd rather Back dismissed the new window
>> altogether than switch to whatever window previous-buffer selects.
> 
> IMO, it is entirely reasonable to have Back bound to a command that "goes back" where that makes sense.

Would it make sense to bind it to xref-go-back globally? With 
mode-specific overrides in place.

> Dismissing a window with Back is basically a smartphone thing, so we could bind Back to the function bound to ESC or C-g, but only on Android; doing that on other platforms would be inconsistent with the general behavior of those platforms, and should be avoided, IMO.

Dismissing the window on 'M-,' if it was just created by 
xref-find-definitions-other-window kind of makes sense to me. Though it 
might mess up the goals the user had set it up for.

OTOH, 'C-x 4 . M-,' currently creates two windows showing the same 
buffer side-by-side, and that's much more easily reached with 'C-x 3'.



  reply	other threads:[~2023-11-21 11:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87il5vixat.fsf.ref@yahoo.com>
2023-11-21  3:45 ` Systematizing back navigation Po Lu
2023-11-21  5:35   ` Eli Zaretskii
2023-11-21  6:35     ` Po Lu
2023-11-21  6:57       ` Eli Zaretskii
2023-11-21 11:43         ` Dmitry Gutov [this message]
2023-11-21  6:39   ` Adam Porter
2023-11-21 11:44     ` Dmitry Gutov
2023-11-21 13:15   ` sbaugh
2023-11-21 17:01   ` Juri Linkov

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=4ed84830-53d5-5985-27b6-cb1cfd2c4539@gutov.dev \
    --to=dmitry@gutov.dev \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).