unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Johan Bengtsson <johan.bengtsson@iar.com>, 38197@debbugs.gnu.org
Subject: bug#38197: 26.3; File opened by find-file appears in other window
Date: Wed, 13 Nov 2019 18:25:14 +0100	[thread overview]
Message-ID: <adb10e82-70e8-0a30-218c-04f1a6904287@gmx.at> (raw)
In-Reply-To: <52602834-06af-3a9e-c4cc-93316aa8603f@iar.com>

 > If find-file is used on a file that already exists in a buffer and there
 > is than one window then the buffer will be displayed in one of the

I suppose you mean "more" than one window here.

 > non-active windows. If the file does not exist in a buffer it will be
 > opened and displayed in the current window as expected.
 >
 > The problem seems to be related to the use of pop-to-buffer-same-window
 > in find-file. If the definition of find-file is changed to use
 > switch-to-buffer (as it was in emacs25) it works as expected.

I can't reproduce that here.  Regardless of whether the file's buffer
is shown in a window or not and whether there are one or two windows,
the file's buffeer is always shown in the selected window.  Please
provide a recipe with emacs -Q.

Thanks, martin





  reply	other threads:[~2019-11-13 17:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-13 13:03 bug#38197: 26.3; File opened by find-file appears in other window Johan Bengtsson
2019-11-13 17:25 ` martin rudalics [this message]
     [not found]   ` <29db36ae-c0ce-6fd3-52af-86c44a9612f7@iar.com>
2019-11-14  9:58     ` martin rudalics
2020-08-25 23:21   ` Stefan Kangas
2020-10-01 12:50     ` Stefan Kangas

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=adb10e82-70e8-0a30-218c-04f1a6904287@gmx.at \
    --to=rudalics@gmx.at \
    --cc=38197@debbugs.gnu.org \
    --cc=johan.bengtsson@iar.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).