From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#38197: 26.3; File opened by find-file appears in other window Date: Tue, 25 Aug 2020 16:21:51 -0700 Message-ID: References: <52602834-06af-3a9e-c4cc-93316aa8603f@iar.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40647"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Johan Bengtsson , 38197@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 26 01:23:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAiHb-000ASw-3n for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Aug 2020 01:23:15 +0200 Original-Received: from localhost ([::1]:44104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAiHZ-0001My-Kl for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Aug 2020 19:23:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAiHP-0001LE-3b for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 19:23:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53185) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAiHO-00030v-Qw for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 19:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAiHO-0007dC-NY for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 19:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Aug 2020 23:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38197 X-GNU-PR-Package: emacs Original-Received: via spool by 38197-submit@debbugs.gnu.org id=B38197.159839772529177 (code B ref 38197); Tue, 25 Aug 2020 23:23:02 +0000 Original-Received: (at 38197) by debbugs.gnu.org; 25 Aug 2020 23:22:05 +0000 Original-Received: from localhost ([127.0.0.1]:36481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAiGT-0007aW-5s for submit@debbugs.gnu.org; Tue, 25 Aug 2020 19:22:05 -0400 Original-Received: from mail-yb1-f179.google.com ([209.85.219.179]:45186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAiGL-0007ZG-G5 for 38197@debbugs.gnu.org; Tue, 25 Aug 2020 19:21:57 -0400 Original-Received: by mail-yb1-f179.google.com with SMTP id x2so171495ybf.12 for <38197@debbugs.gnu.org>; Tue, 25 Aug 2020 16:21:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=IorRGwdMrCyblBm4FWPS9gElpZxHTfIWkicQd4CdUdE=; b=uQiat7yt8/twPKpH0zBssb6HO1c6lI0a+Qu4xkE5Qdpb2i3BonuH5h13y8JiXLxqPJ dsDn5RFFLS6P3PSWHTo3496KaV/5ZShxjJf3LfPptJX5pZ3EwiTTkH4NnBeEEuSCNFon roeuiI9+E6vX6fZs1kJQ5smm43reVl8pnp0t0CbOHETnTitJwHB+zHGoMYTEHwKcmaOv A+9XS6PNoGraq890t2ogFkXd1urrzV3n5mhreBucxRvjjatIfrCe5qrtj4AUM0bMmagx 2TvEuGdAES8PFrb/xpYb0O2IVXtMQ8ivvdf50AzOMvSkdMkP2QBpeRNPwObIgE9C5f/6 7KKQ== X-Gm-Message-State: AOAM533SBRUBHDV34P8rnWAOe1mxEDevO4wELv4TMriuccbYy6Q4zIh6 afMNGDvdZ33HtopBYdox26sxrTC+Z2YwkZO9t1M= X-Google-Smtp-Source: ABdhPJzg+SG5Tdf3KyaozfywUUJwEbQFOng4XngU3hczDDrszSQHIYknYkCc61m9EG7Y6J2UWOGu1AzDk0DXQTbOCc0= X-Received: by 2002:a5b:508:: with SMTP id o8mr19268232ybp.43.1598397712015; Tue, 25 Aug 2020 16:21:52 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 25 Aug 2020 16:21:51 -0700 In-Reply-To: (martin rudalics's message of "Wed, 13 Nov 2019 18:25:14 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186369 Archived-At: tags 38197 + moreinfo thanks martin rudalics writes: >> 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. It seems like we need more info here to progress. Could you provide a recipe to reproduce this bug starting from "emacs -Q"? Best regards, Stefan Kangas