all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Dmitry Gutov <dgutov@yandex.ru>, 36161@debbugs.gnu.org
Subject: bug#36161: 27.0.50; display-buffer-in-previous-window might choose not to use PREVIOUS-WINDOW
Date: Wed, 19 Jun 2019 11:15:13 +0200	[thread overview]
Message-ID: <45889b62-ccc6-c9ae-bb56-68124973dc0e@gmx.at> (raw)
In-Reply-To: <3bf7a2d5-128e-724b-694e-908366915d3f@yandex.ru>

 > OK, let's try again. The recipe is:
 >
 > 1. emacs -Q
 > 2. Split the frame into 4 windows, so that new display-buffer calls don't pop any new windows.
 > 3. Select the top-left window (for instance).
 > 4. Call M-x project-find-regexp, input "Xref", press RET. The result is an *xref* buffer shown in one of the windows.
 > 5. Press q.
 > 6. Try 4. again.
 > 7. Repeat 5,6 as many times as you like. The *xref* buffer will be displayed in all three available windows in turn.

Sorry, step 4 does not work here so I cannot try that.  The behavior
you see might be caused by the rotation of windows in 'window-list-1'.
But also some other buffer display action might be responsible.  So
the first question is whether you are sure that the window is produced
by 'display-buffer-in-previous-window' in all these cases.

 >>  > So about that main use case (the Debugger), can it just exclude the selected window using inhibit-same-window? That would obviate the need for special logic in this case.
 >>
 >> An 'inhibit-same-window' entry is the canonical way to "exclude" the
 >> selected window.  A 'previous-window' entry is just a hint to "prefer"
 >> some other window.
 >
 > I'm not sure if you're trying to say "no" in response to my question. But if so, I suppose this bug report can be closed (and we can conclude that this function is definitely not suitable for xref). Thanks for updating the docstring.

I've been trying to say "yes" to the question "can it just exclude the
selected window using inhibit-same-window".

martin





      reply	other threads:[~2019-06-19  9:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-10 20:29 bug#36161: 27.0.50; display-buffer-in-previous-window might choose not to use PREVIOUS-WINDOW Dmitry Gutov
2019-06-11  8:16 ` martin rudalics
2019-06-11 13:01   ` Dmitry Gutov
2019-06-12  9:18     ` martin rudalics
2019-06-12 13:31       ` Dmitry Gutov
2019-06-13  8:43         ` martin rudalics
2019-06-16  0:47           ` Dmitry Gutov
2019-06-16  8:16             ` martin rudalics
2019-06-19  1:37               ` Dmitry Gutov
2019-06-19  9:15                 ` martin rudalics [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45889b62-ccc6-c9ae-bb56-68124973dc0e@gmx.at \
    --to=rudalics@gmx.at \
    --cc=36161@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.