From unknown Fri Aug 15 14:45:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#38197 <38197@debbugs.gnu.org> To: bug#38197 <38197@debbugs.gnu.org> Subject: Status: 26.3; File opened by find-file appears in other window Reply-To: bug#38197 <38197@debbugs.gnu.org> Date: Fri, 15 Aug 2025 21:45:46 +0000 retitle 38197 26.3; File opened by find-file appears in other window reassign 38197 emacs submitter 38197 Johan Bengtsson severity 38197 normal tag 38197 moreinfo unreproducible thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 13 10:17:49 2019 Received: (at submit) by debbugs.gnu.org; 13 Nov 2019 15:17:49 +0000 Received: from localhost ([127.0.0.1]:59972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUuOv-00052V-3y for submit@debbugs.gnu.org; Wed, 13 Nov 2019 10:17:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:60274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUsJf-00063d-Jr for submit@debbugs.gnu.org; Wed, 13 Nov 2019 08:04:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40601) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUsJd-0008F3-2H for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 08:04:11 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUsJZ-0005B6-0r for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 08:04:07 -0500 Received: from gw1.iar.com ([213.136.49.54]:27283 helo=relay1.iar.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iUsJY-00054y-Iq for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2019 08:04:04 -0500 Received: from SEUPP-S-MS01.ad.iar.com (seupp-s-ms01.ad.iar.com [10.200.10.150]) by relay1.iar.com (Postfix) with ESMTPS id 702179968C for ; Wed, 13 Nov 2019 14:03:53 +0100 (CET) Received: from SEUPP-S-MS01.ad.iar.com (10.200.10.150) by SEUPP-S-MS01.ad.iar.com (10.200.10.150) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 13 Nov 2019 14:03:52 +0100 Received: from [10.200.20.64] (10.200.20.64) by SEUPP-S-MS01.ad.iar.com (10.200.10.150) with Microsoft SMTP Server id 15.0.1347.2 via Frontend Transport; Wed, 13 Nov 2019 14:03:52 +0100 To: Subject: 26.3; File opened by find-file appears in other window From: Johan Bengtsson Message-ID: <52602834-06af-3a9e-c4cc-93316aa8603f@iar.com> Date: Wed, 13 Nov 2019 14:03:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 213.136.49.54 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 13 Nov 2019 10:17:40 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 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. In GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-09-16 built on lcy01-amd64-030 Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 18.04.3 LTS Recent messages: Undo! [7 times] if: Invalid function: (switch-to-buffer value) Making completion list... delete-backward-char: Text is read-only Making completion list... [2 times] Quit Note: file is write protected Type "q" in help window to restore its previous buffer. previous-line: Beginning of buffer Making completion list... Configured using: 'configure --build=x86_64-linux-gnu --prefix=/usr '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib --program-suffix=26 --with-modules --with-file-notification=inotify --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-xwidgets --with-lcms2 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs26-TP6iDo/emacs26-26.3~1.git96dd019=. -fstack-protector-strong -Wformat -Werror=format-security -no-pie' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -no-pie'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD LCMS2 Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Help Minor modes in effect: compilation-in-progress: (global) ggtags-navigation-mode: t global-magit-file-mode: t diff-auto-refine-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t cl-old-struct-compat-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t Load-path shadows: /home/johanb/.emacs.d/elpa/dsvn-20190316.2201/dsvn hides /usr/share/emacs/site-lisp/dsvn /home/johanb/.emacs.d/elpa/psvn-20151103.1042/psvn hides /usr/share/emacs/site-lisp/psvn /home/johanb/.emacs.d/elpa/ninja-mode-20181024.1439/ninja-mode hides /usr/share/emacs/site-lisp/ninja-mode /home/johanb/.emacs.d/elpa/cmake-mode-20190710.1319/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /home/johanb/.emacs.d/elpa/yaml-mode-20190625.1740/yaml-mode hides /usr/share/emacs/site-lisp/yaml-mode/yaml-mode /home/johanb/.emacs.d/elpa/dash-20190920.1035/dash-pkg hides /usr/share/emacs/site-lisp/elpa-src/dash-2.13.0/dash-pkg /home/johanb/.emacs.d/elpa/dash-20190920.1035/dash-autoloads hides /usr/share/emacs/site-lisp/elpa-src/dash-2.13.0/dash-autoloads /home/johanb/.emacs.d/elpa/dash-20190920.1035/dash hides /usr/share/emacs/site-lisp/elpa-src/dash-2.13.0/dash /home/johanb/.emacs.d/elpa/git-commit-20190928.1746/git-commit-pkg hides /usr/share/emacs/site-lisp/elpa-src/git-commit-2.11.0/git-commit-pkg /home/johanb/.emacs.d/elpa/git-commit-20190928.1746/git-commit-autoloads hides /usr/share/emacs/site-lisp/elpa-src/git-commit-2.11.0/git-commit-autoloads /home/johanb/.emacs.d/elpa/git-commit-20190928.1746/git-commit hides /usr/share/emacs/site-lisp/elpa-src/git-commit-2.11.0/git-commit /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-obsolete hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-obsolete /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-autorevert hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-autorevert /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-submodule hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-submodule /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-commit hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-commit /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-pkg hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-pkg /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-repos hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-repos /home/johanb/.emacs.d/elpa/magit-20190930.1815/git-rebase hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/git-rebase /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-utils hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-utils /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-worktree hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-worktree /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-section hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-section /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-sequence hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-sequence /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-diff hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-diff /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-files hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-files /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-autoloads hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-autoloads /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-blame hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-blame /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-ediff hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-ediff /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-margin hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-margin /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-bookmark hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-bookmark /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-log hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-log /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-core hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-core /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-mode hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-mode /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-refs hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-refs /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-remote hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-remote /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-branch hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-branch /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-extras hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-extras /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-subtree hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-subtree /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-wip hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-wip /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-stash hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-stash /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-process hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-process /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-bisect hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-bisect /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-apply hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-apply /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-notes hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-notes /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-status hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-status /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-git hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-git /home/johanb/.emacs.d/elpa/magit-20190930.1815/magit-imenu hides /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-imenu /usr/share/emacs/site-lisp/elpa-src/magit-2.11.0/magit-popup hides /usr/share/emacs/site-lisp/elpa-src/magit-popup-2.11.0/magit-popup /home/johanb/.emacs.d/elpa/with-editor-20190715.2007/with-editor-autoloads hides /usr/share/emacs/site-lisp/elpa-src/with-editor-2.6.0/with-editor-autoloads /home/johanb/.emacs.d/elpa/with-editor-20190715.2007/with-editor-pkg hides /usr/share/emacs/site-lisp/elpa-src/with-editor-2.6.0/with-editor-pkg /home/johanb/.emacs.d/elpa/with-editor-20190715.2007/with-editor hides /usr/share/emacs/site-lisp/elpa-src/with-editor-2.6.0/with-editor /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/26.3/lisp/textmodes/rst /usr/share/emacs/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/26.3/lisp/textmodes/flyspell /usr/share/emacs/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/26.3/lisp/textmodes/ispell /home/johanb/.emacs.d/elpa/tuareg-20190805.958/ocamldebug hides /home/johanb/.emacs.d/elisp/iar-modules/lisp/ocamldebug /home/johanb/.emacs.d/elpa/cmake-mode-20190710.1319/cmake-mode hides /home/johanb/.emacs.d/elisp/iar-modules/lisp/cmake-mode /usr/share/emacs/26.3/lisp/progmodes/ruby-mode hides /home/johanb/.emacs.d/elisp/iar-modules/lisp/ruby-mode /home/johanb/.emacs.d/elpa/cmake-font-lock-20190728.1901/cmake-font-lock hides /home/johanb/.emacs.d/elisp/iar-modules/lisp/cmake-font-lock /home/johanb/.emacs.d/elpa/yaml-mode-20190625.1740/yaml-mode hides /home/johanb/.emacs.d/elisp/iar-modules/lisp/yaml-mode /home/johanb/.emacs.d/elpa/dsvn-20190316.2201/dsvn hides /home/johanb/.emacs.d/elisp/iar-modules/lisp/dsvn /home/johanb/.emacs.d/elpa/ninja-mode-20181024.1439/ninja-mode hides /home/johanb/.emacs.d/elisp/iar-modules/lisp/ninja-mode /home/johanb/.emacs.d/elpa/tuareg-20190805.958/tuareg hides /home/johanb/.emacs.d/elisp/iar-modules/lisp/tuareg Features: (shadow sort mail-extr emacsbug sendmail apropos debug pp python tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize parse-time rot13 disp-table ffap json-mode json-reformat json-snatcher js sgml-mode dom json map cl-print completion dos-w32 find-cmd find-dired eieio-opt speedbar sb-image ezimage dframe find-func git-rebase vc magit-patch magit-subtree magit-ediff ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff pulse pcase vc-dispatcher cmake-font-lock cmake-mode yaml-mode burs-mode make-mode ispell help-fns radix-tree sh-script executable tabify inf-ruby ruby-mode smie groovy-mode cc-langs perl-mode magit-extras dabbrev grep misearch multi-isearch asm-mode bug-reference gud magit-svn man thingatpt vc-git autoinsert modern-cpp-font-lock c-indent-operator cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs elec-pair dot-region ggtags etags xref project compile ewoc clang-format xml magit-submodule magit-obsolete magit-popup magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff-mode magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process magit-mode transient git-commit magit-git magit-section magit-utils crm log-edit easy-mmode message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor cl-extra help-mode async-bytecomp advice async shell pcomplete comint ansi-color ring server subr-x dash time-stamp mic-paren jka-compr edmacro kmacro useful finder-inf rx cl info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib site-start c-electric-operator vc-svn time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 2511486 204390) (symbols 48 58072 1) (miscs 40 48414 25826) (strings 32 194003 46774) (string-bytes 1 15129971) (vectors 16 91593) (vector-slots 8 2438955 100868) (floats 8 137 1002) (intervals 56 344120 2039) (buffers 992 273)) From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 13 12:25:28 2019 Received: (at 38197) by debbugs.gnu.org; 13 Nov 2019 17:25:28 +0000 Received: from localhost ([127.0.0.1]:60094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUwOW-0001bi-1h for submit@debbugs.gnu.org; Wed, 13 Nov 2019 12:25:28 -0500 Received: from mout.gmx.net ([212.227.15.15]:50379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUwOU-0001bV-Dc for 38197@debbugs.gnu.org; Wed, 13 Nov 2019 12:25:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1573665914; bh=BYroiCVVvLVpmaILwVSl5lY5/VmseYJL12UE4tQhBog=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=O6uDKb9+JZ0xv4ZOX0KFR1TbG8+GfFxJqq6g5vno63CfWrjs0UTdV7GnIbRmjGXQT Hw+FJrGbipAuuXZfL0HPVAW5DIQxOHZluccLcWNbOUjRCizG1YcmUdGnX3bpzFAIwC eDOFQPbGIymfwmJP/J/v+D/UZf5uJcP0fTHKI75A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.103] ([46.125.249.127]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MOiHl-1iFJB83fSB-00Q8pm; Wed, 13 Nov 2019 18:25:14 +0100 Subject: Re: bug#38197: 26.3; File opened by find-file appears in other window To: Johan Bengtsson , 38197@debbugs.gnu.org References: <52602834-06af-3a9e-c4cc-93316aa8603f@iar.com> From: martin rudalics Message-ID: Date: Wed, 13 Nov 2019 18:25:14 +0100 MIME-Version: 1.0 In-Reply-To: <52602834-06af-3a9e-c4cc-93316aa8603f@iar.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-AT Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:3ImbBLFzwbCVEWd4lN9OCbAd1d6vrBJVucPhdULI2gnbG67U2bu xmsnJzjEal0D98XWgX+JVvp1XZeCBkjTTIL/L1BlglumNg++tUHEaSL7B5XRD+PIHUP7tAF HEBwpw+CtETQaLl+fsgN4LHzOVFC69HEhi2tzLjxNPxBZVkWEyNXR+Uz7BuP2R2L1TDtu9i Dqpm5sismt0ISMUiXDm7Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:mNJVDwHL3Ag=:lAizvNJN8nYu1hYnRB439J p8JcRa1nEORQfcNbpRK7FQv9ki8txqBvMHsQ9UaCWvdqFQ51CC0q6NrwmdLkuakBtKRDbg/GA QjuL3v1C5bNxk6rxtAvHFqvUOrR4w+u9YpqyksdCW8anwzY2OEOfXXyAr3ZTzwizunsqyHGIB 832glZcuYKi78jDN/7lwAIR5xrpzEAfUVo/WY71bQhxDmyGVkjE08ZJ1dZJPi/iD1YySaJYtw aZZ5gdnD6OuA2YmngZU675d7Ld/sVxZW1teOt8egsG2FSElUG2/0xt5//o9073fszpRP2knj/ YVV6i3kIAojD0smD/cMPFyUykXt7iQW7IwUBUHMD5G/8f9y1ZMPiqYghekFByGcLtOhJ8JW5M bAoowkA3zz6aS65wTdQmoPeS6CkvC/OzjQ75YJ1kHGyGnPRbd6gHVjuaY19++3qsztx8ctqOu NeyD3eHgdRDeEyz8+VE39wZgv4Pex6tDUb9agauxQqrBkoLpe66wTsH11v5kF+R3Fkxeyi6u/ O96M+J1/bRHhzdCG7PS+0ueko8LomYcL3qXS7+akVOgCkCPt4kw8cO3cGnJrKfJpONoevDu0x V2YnQWNvCfacZD+4ibS+4B/IONTBcwxx/T5Xsqf/DkRvKOti6L9snhPH2JfbNlZQJ1vsmpgOj i3+RkXB9qVRVsudLGBITGif4i5MWSk1zj2XHk3LdqW5OxEu4uvNdEVSnGz/EAazguXzLPbfAk ulwAbohd3KkFLULKRt7hTipWMyKqX7Q/uesd0K8ldYsTTVVxYDbwN+shlVvLnD2rIAPnpeX3Y eOsKsWXpxC+t6pj11GJa7PLYm2K4azAMNMiBLsmDPLXn0bR9kZOGgV9IrJDXgTe2AU7UzHamA bpfgmTMQen8azrWdca55P4rCJjmFq3dJUeIsBBry1W/eeGUamp3Go8Vpk2dV+7pY8ehEticDx zsNEiG1tnbt6RP1UipGiyU9QXQAIDmUKEqd7C+AF8REv+tRMSJ71qfEosWOVSXfeSpiccbcJ1 7cTTHD2NLzmPu1w/xhVjQpgH4ewx0dYBaPXH/w3i+RRZzg860atZ5T/iqo49ISaK9tFuDF/+z COF5HHTz4ha7LNxLtUvsNcJufOjA7/pjcLYnYLKXQJTLxoKB6EC8ts+Wet3bPxIewCupqMQLK 8J33qyqBRLAlSnD33ygzPtb0/xBecdq0Bd7e6H6YuBjqFpwUqcJZZ1PTvc/mngfkO5R6pSHiy sCN7KAAWz0thbeefDx3GObZ03EAFB1xtJuqIIdg== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38197 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 04:59:17 2019 Received: (at 38197) by debbugs.gnu.org; 14 Nov 2019 09:59:17 +0000 Received: from localhost ([127.0.0.1]:60970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVBuG-0008Dv-Qg for submit@debbugs.gnu.org; Thu, 14 Nov 2019 04:59:16 -0500 Received: from mout.gmx.net ([212.227.17.21]:56205) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVBuD-0008Dg-Vo for 38197@debbugs.gnu.org; Thu, 14 Nov 2019 04:59:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1573725539; bh=PrHoG22B01/KTk/1Fypn8p2NocGwZLZ7ibSbB5ywMqI=; h=X-UI-Sender-Class:Subject:To:References:From:Cc:Date:In-Reply-To; b=QfFteX02uvCJAsAAyjytzc7K+2icJqIBHCOjHC/hlwSBnbqrElLR6k+llm60GVArN hFFsYAWR8D6KMMsPxjUG7VWOFxe0/CWDeY5TcIaKr7DSTLKBFJq1YoId0oNEjiZfDr oMlDdCXlFYl7+BkqqAm17ANA7Kf5lpGj+FkitkeY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.102] ([46.125.249.17]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N6sit-1holOG1mYB-018HV0; Thu, 14 Nov 2019 10:58:59 +0100 Subject: Re: bug#38197: 26.3; File opened by find-file appears in other window To: Johan Bengtsson References: <52602834-06af-3a9e-c4cc-93316aa8603f@iar.com> <29db36ae-c0ce-6fd3-52af-86c44a9612f7@iar.com> From: martin rudalics Message-ID: Date: Thu, 14 Nov 2019 10:58:57 +0100 MIME-Version: 1.0 In-Reply-To: <29db36ae-c0ce-6fd3-52af-86c44a9612f7@iar.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-AT Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:7BdEoVpNkW5lbUxVLzK38JTyrOffiZ97e6i3y96b4SzFNVQRl/Z SILWkIMaPnhdT62WM7TlFq5UUnllsuuM6c4VpQvoHAwHneP+FqvWjWAQuONh0svo+fZnAk9 EJgP+z1Jn8qwH12QHl6dPTIKw/VmZ5S02L2XC3wPLy67i6UzuC5TbrTIcHDHAyEQ/jDXixN FtebBr6O0Hm7+rLZioVKA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:PSy+9AZ+DLw=:KoyUJ19FWS/cXGHXkLGDjT zq/vpN+qEOIPDIhMmkdkMqDo8FLimES3ijhHhQX+2qjrWivi25erBXu2mF7ACb0IZBSKhRI/u 3PQ0Vudrq2HhH2q9qAL+aOhGa9MgEs7LfOso9bhtwcHfgv5KBVk5JbhlqYsjoo3DRKg3yVBI8 FimrJ2ecJzy2i/YQxLm+4lKTUTOVaB58cuv1E6oE62kJb4xAWZQXfjPOfFKYig8nfYKl64d/F YtRDlrjqcyKVSrBa3kh+AxlEYcgmmi0bFmuXK6NF/7xGzLXOd9M0MzfiXQGNqLJXYkL7pZfL0 dovM6ih7ZMt6v0LzyX68tDVUHXvfhzeobb56QQNTPKuKqaKFRw65LUFANxALfyEMqMoh5ATX9 nEexPhhIGyhryYQmIdGgmq/Rd81FxqYKVt3g0BIVVvQ9B47Zg6V3bhgOccN3BliZDKIEyQZA0 LD4ErTaRq21YbD+G5yUmSf6ldhN/6r7pBNkTr20im3dBQOB6mHqGZsMWOf8T+NN0xaBP2Alqi HaSDNgOVk+lh7OeB6IwOTTHyWU7VYcFnUuwYbt9IFeNBNlHamQJeM9E5QPEzV37/QAJmQv0F6 F4zGuuTGwnK92mRPSN+eOsuoa3A9bOP0RQg0pXrCGS3eFKoEMdCDIQo+s6KDpqwJTMiWXwCNJ mOAXoK8OcY6qpNi+vjqESgNy+j+bERNIQoQUxc1NjiPnWe0V7vjdqbokHmFktEtcg8kJUhZKY eiQft/Nt23/0ilnBPy6GtlYnOxPr7O4/l4fj5tckrrW75D6hDvLYwOA4zhuKmOZFvupCQ4ATE UuV1KLWqcgYypSJfExFey7wT4D9Yw8jfSD3GVwWr/inYTNA6N4A4SxJnOMNsqihRUwcPOFiHY T57+tq+Y0mSMBqvLbutR/gMzmri+8qaKr+d6t21hnebQ7Abfr/nnrdIkc+BqNNR6j4YbKEulh C0C4Uzg4eT3ampSi1sVNuze/CHFKs26FSamx7zyCJFpNRU2pvm/eSONuF50oiKkgLK+3gPXVP BEXBCiJRmBDBvR/zky79lLAHWMAt5cMN1rzcJ7mGMJ4yG6cVC+YuPvH9WwyZ9ev7/oVeUs8kN 3h3uULck8SzUHLcpKBoVRGZNwln+jRvZoTiYMcmEKtzkQw05jEqcJYkOD9cwJWQLlKNSAz5wU z+Mu1vPvvKWwvFMNfG6EnIsWcxyfBlFncdK53dO+AZ6D5q46HRhPDvfyyXCR7nfr1n/5JFDmf yk5NPUqixdJNIzTRa2aCleKSK5cdQnPrG4enINjiq6xn9U1hEQvCYYEnzU10= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 38197 Cc: 38197@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > I have examined the problem some more and it turned out to be on my > side. In a futile attempt to prevent gud-gdb from splitting my gdb > window to show the source file when there is a perfectly good window > beside it I had modified display-buffer-alist, and when execute this > setting in a clean (-Q) emacs the problem start > appearing. Apparently pop-to-buffer-same-window and switch-to-buffer > handle this setting differently. Maybe we should look a bit deeper into this. In the thread on Bug#37840 we are discussing a similar issue. martin From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 25 19:22:05 2020 Received: (at 38197) by debbugs.gnu.org; 25 Aug 2020 23:22:05 +0000 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 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 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) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 25 Aug 2020 16:21:51 -0700 From: Stefan Kangas In-Reply-To: (martin rudalics's message of "Wed, 13 Nov 2019 18:25:14 +0100") References: <52602834-06af-3a9e-c4cc-93316aa8603f@iar.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 25 Aug 2020 16:21:51 -0700 Message-ID: Subject: Re: bug#38197: 26.3; File opened by find-file appears in other window To: martin rudalics Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 38197 Cc: Johan Bengtsson , 38197@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 01 08:50:57 2020 Received: (at 38197) by debbugs.gnu.org; 1 Oct 2020 12:50:57 +0000 Received: from localhost ([127.0.0.1]:34695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNy2z-0006eK-9G for submit@debbugs.gnu.org; Thu, 01 Oct 2020 08:50:57 -0400 Received: from mail-ej1-f52.google.com ([209.85.218.52]:34052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNy2w-0006dl-UH for 38197@debbugs.gnu.org; Thu, 01 Oct 2020 08:50:55 -0400 Received: by mail-ej1-f52.google.com with SMTP id gr14so7919811ejb.1 for <38197@debbugs.gnu.org>; Thu, 01 Oct 2020 05:50:54 -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=uh29yHvw+WhKS86yhXH2lUklidL5fl4GIrqv0OFkhHQ=; b=lRnmMUcA5bTJs36CwIQ9DYn0tPiMFBEkMxXStgrX7sAGCRmsl+APv9dvAx7Ur57c5S Q6SMWFXEpf6zI/rlfg0DF1wQmdZ92eA8WAqpFqYSBqueiV+npHsXFzRuwGBwG2VqlwHl 54CmG8LEPnd+HqIaZhMFfnL7TP6sV86gBN178hysgMdEaWImOeSVcoNuxz6iYt6pHXd4 FuGlio4Z86wy266oarnmTzzvfNwhN3+q8KkNr94ZQ7fwjt9gskXiY4/b9dD0vc+VNE2P d/0emrXYIXBVn65bBmfkadSwNywVx/rEOEC1UV90q+kq/Ho1r6Qag6PVKUu5/PifycqD +6cQ== X-Gm-Message-State: AOAM530/g9wMNdeSh7REvb5TpaSYNXHA+hagCgzfRiJj6KgoEiQ8Ku/f arz5uSYphGp0iEquVePaFxlBQ//0eJ7Inn/3icI= X-Google-Smtp-Source: ABdhPJxnY0BovP+s9kpzCOLmRRD+Io5/y9VBLLA53jeafVx/T8G/B/723RXm2vmw/oKAmg8VeZFXz9WphtN5V6pxlp0= X-Received: by 2002:a17:907:70cb:: with SMTP id yk11mr7838671ejb.312.1601556649265; Thu, 01 Oct 2020 05:50:49 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 1 Oct 2020 05:50:48 -0700 From: Stefan Kangas In-Reply-To: (Stefan Kangas's message of "Tue, 25 Aug 2020 16:21:51 -0700") References: <52602834-06af-3a9e-c4cc-93316aa8603f@iar.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Thu, 1 Oct 2020 05:50:48 -0700 Message-ID: Subject: Re: bug#38197: 26.3; File opened by find-file appears in other window To: martin rudalics Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 38197 Cc: Johan Bengtsson , 38197@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tags 38197 + unreproducible close 38197 thanks Stefan Kangas writes: > 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"? More information was requested, but none was given within 5 weeks, so I'm closing this bug. If this is still an issue, please reply to this email (use "Reply to all" in your email client) and we can reopen the bug report. Best regards, Stefan Kangas From unknown Fri Aug 15 14:45:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 30 Oct 2020 11:24:15 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator