From unknown Mon Aug 18 04:11:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76216: 29.4; display-buffer-reuse-mode-window does not respect dedicated flag Resent-From: Trevor Murphy Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Feb 2025 01:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76216 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 76216@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17393252508047 (code B ref -1); Wed, 12 Feb 2025 01:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Feb 2025 01:54:10 +0000 Received: from localhost ([127.0.0.1]:59769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ti1x3-00025e-1B for submit@debbugs.gnu.org; Tue, 11 Feb 2025 20:54:10 -0500 Received: from lists.gnu.org ([2001:470:142::17]:39032) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ti1x0-000255-1m for submit@debbugs.gnu.org; Tue, 11 Feb 2025 20:54:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ti1wt-0006fO-Ap for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2025 20:53:59 -0500 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ti1wq-0007h1-RP for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2025 20:53:59 -0500 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5dccc90a52eso10165085a12.0 for ; Tue, 11 Feb 2025 17:53:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739325233; x=1739930033; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=inVtIUqH+MebGIog3NXZz5aAJkb11f6/YphmAa7W4yI=; b=fP/JDmhPVT+F4aB8tm1tFE6Azc6EtJwZDBMO9U3q8Odz468yzM/9lSuiYiKYWIHaCr o0q6dJsrSF013dXI++a8LVZlYlr4FhxBRQGthkDizSqIAJPNE+A2ly939dyB/zOP5vSE /zRX2zfD7uHvH07+JA5EPuV55qjVx0/Wc0MYwT3lrvHgROSzY7kMfrOIuCKEarEAgTRa 3kUA7UwQHm5i7WY9fXBml9uUFZqhXp086v8j5PnmiL/madIA27PM2mLWSbOT0hAjrHxJ 1/niF24TdoGG45DKM16Uw4UeW2SIqDKAuI3Zk3gTtf9ybs99aGSFzQDDRMxX1P4m+2M+ oQUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739325233; x=1739930033; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=inVtIUqH+MebGIog3NXZz5aAJkb11f6/YphmAa7W4yI=; b=ddqdLd+mK1+9l1tkTWfF0Y4JsXV2AQASJ4IHg41CCOoUO6ZAtD5mCerH8prUmjgzaV FsWk5Qi7fjFPywlGummmnuOJXjSn3sGvGIDfklxMTw2DfFTpRP1x0YrPnFB70MzvXW+q xV2wK6saYtmynT/0DLGHYvSd2/yoaSnxX99W0H694/XHEvuq1cx9wYoQa2KqlbkKw7aI LHI2CffTdYM1m1quRINrt3SQldbkXAORexrLd0krBwjyt3ufPj30yNfDM7KOafj1b8M9 6mbasxtPxb29IqTxW4AnyfC7v/NjQiXZ693QuOeZbCNWln62jr2nWNiKT5ii3BTJYIyu 9M7Q== X-Gm-Message-State: AOJu0YxGmW+eMkJxDUUMpNfM85uW0VdDRxfnLtz+ZSyI0UX2gOaybVCb MXNRgexlcv8C6Ye06DgyZ+nbNCQX9AUIs1loe5HuCcN5Wp+CJ/tzcuxGYC5xAnnnbkkh4AfP8jb OiIdcL8H+ezVnajAjK/rdWvV8J+OuACYp X-Gm-Gg: ASbGncvqyfz7s+eRTECzb3oWU6TuCavcZZxBqSrQpVpE1WomeuwKwCtt7CW4yn5iOa9 XJBXzqaRNWMXWcpeKr/7X2AJIEDHfeDHxerh3RJqUQeDsFc6FTh9wINS0JZ/E7IEGtJhXh+8J/a FF0aeYdoa5Og== X-Google-Smtp-Source: AGHT+IHpb54mgvYCREEryYeNclKhokpUPnzEtK8OAKc183w0WwjDHZM/4tUDO/zptUoWHQITqiGTBgU/OiLFyr2PZH4= X-Received: by 2002:a05:6402:51d2:b0:5de:5025:2bd9 with SMTP id 4fb4d7f45d1cf-5deadd936f0mr1292229a12.11.1739325232884; Tue, 11 Feb 2025 17:53:52 -0800 (PST) MIME-Version: 1.0 From: Trevor Murphy Date: Tue, 11 Feb 2025 17:52:30 -0800 X-Gm-Features: AWEUYZlKxofvdAd9rDodfxAK2hkUQU3YDDAJ6sBSl3Mb-0sXyKDahaW0-_s1z_4 Message-ID: Content-Type: multipart/mixed; boundary="000000000000a7deb3062de8363b" Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=trevor.m.murphy@gmail.com; helo=mail-ed1-x530.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) 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.0 (/) --000000000000a7deb3062de8363b Content-Type: multipart/alternative; boundary="000000000000a7deb2062de83639" --000000000000a7deb2062de83639 Content-Type: text/plain; charset="UTF-8" Hey, all. Per the subject line, I noticed that this display action function isn't respecting when I mark a window dedicated to its buffer. Here's a minimal example you can step through in the scratch buffer: ``` (setq *w* (split-window-horizontally) *one* (get-buffer-create "one") *two* (get-buffer-create "two")) (display-buffer-use-some-window *one* '((inhibit-same-window . t))) ;;; should see "one" appear in the *w* window (set-window-dedicated-p *w* t) (display-buffer-use-some-window *two* '((inhibit-same-window . t))) ;;; should not see any changes, the function returns nil (display-buffer-reuse-mode-window *two* '((inhibit-same-window . t))) ;;; bug -- should see "two" appear in the *w* window ``` I think this is a bug in -reuse-mode-window, and so I've attached a patch that would fix the issue. Though maybe I'm wrong? Is this intended behavior? In GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.48, cairo version 1.18.2) Repository revision: 324f7b692ab0768891a26fe1c1431f4b555018be Repository branch: main System Description: Arch Linux Configured using: 'configure --with-pgtk --with-native-compilation=aot --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib --with-tree-sitter --localstatedir=/var --with-cairo --disable-build-details --with-harfbuzz --with-libsystemd --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/trevor/pkgbuilds/abs/emacs/src=/usr/src/debug/emacs -flto=auto' 'LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto' 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/trevor/pkgbuilds/abs/emacs/src=/usr/src/debug/emacs -flto=auto'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 76993 6931) (symbols 48 7111 0) (strings 32 19553 2302) (string-bytes 1 592363) (vectors 16 15757) (vector-slots 8 327500 14961) (floats 8 37 46) (intervals 56 267 0) (buffers 984 11)) --000000000000a7deb2062de83639 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey, all.=C2=A0 Per the subject line, I noticed that this = display action
function isn't respecting when I mark a window dedica= ted to its buffer.

Here's a minimal example you can step through= in the scratch buffer:

```
(setq *w* (split-window-horizontally)=
=C2=A0 =C2=A0 =C2=A0 *one* (get-buffer-create "one")
=C2= =A0 =C2=A0 =C2=A0 *two* (get-buffer-create "two"))

(displa= y-buffer-use-some-window *one* '((inhibit-same-window . t)))
;;; sho= uld see "one" appear in the *w* window

(set-window-dedicat= ed-p *w* t)
(display-buffer-use-some-window *two* '((inhibit-same-wi= ndow . t)))
;;; should not see any changes, the function returns nil
= (display-buffer-reuse-mode-window *two* '((inhibit-same-window . t)));;; bug -- should see "two" appear in the *w* window
```
=
I think this is a bug in -reuse-mode-window, and so I've attached a=
patch that would fix the issue.=C2=A0 Though maybe I'm wrong?=C2=A0= Is
this intended behavior?


In GNU Emacs 29.4 (bui= ld 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.48,
cairo version 1.18.2)Repository revision: 324f7b692ab0768891a26fe1c1431f4b555018be
Reposito= ry branch: main
System Description: Arch Linux

Configured using:<= br>=C2=A0'configure --with-pgtk --with-native-compilation=3Daot --sysco= nfdir=3D/etc
=C2=A0--prefix=3D/usr --libexecdir=3D/usr/lib --with-tree-s= itter
=C2=A0--localstatedir=3D/var --with-cairo --disable-build-details<= br>=C2=A0--with-harfbuzz --with-libsystemd --with-modules 'CFLAGS=3D-ma= rch=3Dx86-64
=C2=A0-mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptions -Wp,= -D_FORTIFY_SOURCE=3D3
=C2=A0-Wformat -Werror=3Dformat-security -fstack-c= lash-protection
=C2=A0-fcf-protection -fno-omit-frame-pointer -mno-omit-= leaf-frame-pointer -g
=C2=A0-ffile-prefix-map=3D/home/trevor/pkgbuilds/a= bs/emacs/src=3D/usr/src/debug/emacs
=C2=A0-flto=3Dauto' 'LDFLAGS= =3D-Wl,-O1 -Wl,--sort-common -Wl,--as-needed
=C2=A0-Wl,-z,relro -Wl,-z,n= ow -Wl,-z,pack-relative-relocs -flto=3Dauto'
=C2=A0'CXXFLAGS=3D-= march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptions
=C2=A0-W= p,-D_FORTIFY_SOURCE=3D3 -Wformat -Werror=3Dformat-security
=C2=A0-fstack= -clash-protection -fcf-protection -fno-omit-frame-pointer
=C2=A0-mno-omi= t-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g
=C2=A0-ffile-prefix-ma= p=3D/home/trevor/pkgbuilds/abs/emacs/src=3D/usr/src/debug/emacs
=C2=A0-f= lto=3Dauto''

Configured features:
ACL CAIRO DBUS FREETYPE= GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSY= STEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
PDUMPER PGTK PNG RSVG S= ECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X= IM GTK3 ZLIB

Important settings:
=C2=A0 value of $LANG: en_US.UTF= -8
=C2=A0 locale-coding-system: utf-8-unix

Major mode: Lisp Inter= action

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 gl= obal-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 show-paren-mode: t
= =C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool= -bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t<= br>=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 bl= ink-cursor-mode: t
=C2=A0 line-number-mode: t
=C2=A0 indent-tabs-mode= : t
=C2=A0 transient-mark-mode: t
=C2=A0 auto-composition-mode: t
= =C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t

Lo= ad-path shadows:
None found.

Features:
(shadow sort mail-extr = emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml= mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util tex= t-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc= 2231 mailabbrev gmm-utils mailheader cl-loaddefs
comp comp-cstr warnings= icons subr-x rx cl-seq cl-macs gv cl-extra
help-mode bytecomp byte-comp= ile cl-lib sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-u= tils rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-ho= ok vc-hooks lisp-float-type
elisp-mode mwheel term/pgtk-win pgtk-win ter= m/common-win pgtk-dnd
tool-bar dnd fontset image regexp-opt fringe tabul= ated-list replace
newcomment text-mode lisp-mode prog-mode register page= tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar m= ouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffe= r nadvice seq
simple cl-generic indonesian philippine cham georgian utf-= 8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eu= cjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indi= an
cyrillic chinese composite emoji-zwj charscript charprop case-tableepa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded buttonloaddefs theme-loaddefs faces cus-face macroexp files window
text-prop= erties overlay sha1 md5 base64 format env code-pages mule
custom widget = keymap hashtable-print-readable backquote threads dbusbind
inotify dynam= ic-setting system-font-setting font-render-setting cairo
gtk pgtk lcms2 = multi-tty make-network-process native-compile emacs)

Memory informat= ion:
((conses 16 76993 6931)
=C2=A0(symbols 48 7111 0)
=C2=A0(stri= ngs 32 19553 2302)
=C2=A0(string-bytes 1 592363)
=C2=A0(vectors 16 15= 757)
=C2=A0(vector-slots 8 327500 14961)
=C2=A0(floats 8 37 46)
= =C2=A0(intervals 56 267 0)
=C2=A0(buffers 984 11))
--000000000000a7deb2062de83639-- --000000000000a7deb3062de8363b Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Ignore-dedicated-windows-in-display-buffer-reuse-mod.patch" Content-Disposition: attachment; filename="0001-Ignore-dedicated-windows-in-display-buffer-reuse-mod.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_m719966q0 RnJvbSBiYTM0Y2NiYjhiNGE5ZjJjZmI1NzU3MmViZDEyNGVlZTk4ZTFhNjU0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBUcmV2b3IgTXVycGh5IDx0cmV2b3IubS5tdXJwaHlAZ21haWwu Y29tPgpEYXRlOiBUdWUsIDExIEZlYiAyMDI1IDE3OjI2OjU1IC0wODAwClN1YmplY3Q6IFtQQVRD SF0gSWdub3JlIGRlZGljYXRlZCB3aW5kb3dzIGluCiAnZGlzcGxheS1idWZmZXItcmV1c2UtbW9k ZS13aW5kb3cnLgoKVW5sZXNzIHRoZSBkZWRpY2F0ZWQgd2luZG93IGlzIGFscmVhZHkgZGlzcGxh eWluZyB0aGUKYnVmZmVyLXRvLWJlLWRpc3BsYXllZC4gIEluIHRoYXQgY2FzZSB0aGUgd2luZG93 IG1heSBiZSByZXVzZWQsCmFjY29yZGluZyB0byB0aGUgc2V0dGluZyBvZiBpbmhpYml0LXNhbWUt d2luZG93LgoKKiBsaXNwL3dpbmRvdy5lbCAoZGlzcGxheS1idWZmZXItcmV1c2UtbW9kZS13aW5k b3cpOiBDaGVjawp3aW5kb3ctZGVkaWNhdGVkLXAgYmVmb3JlIHB1c2hpbmcgdGhlIGNhbmRpZGF0 ZSB3aW5kb3cgb250byB0aGUgc3RhY2suCi0tLQogbGlzcC93aW5kb3cuZWwgfCAyICsrCiAxIGZp bGUgY2hhbmdlZCwgMiBpbnNlcnRpb25zKCspCgpkaWZmIC0tZ2l0IGEvbGlzcC93aW5kb3cuZWwg Yi9saXNwL3dpbmRvdy5lbAppbmRleCAxM2ZlMWZlYmExMC4uMDE4YmIzNWY5NDMgMTAwNjQ0Ci0t LSBhL2xpc3Avd2luZG93LmVsCisrKyBiL2xpc3Avd2luZG93LmVsCkBAIC03OTg0LDYgKzc5ODQs OCBAQCBkaXNwbGF5LWJ1ZmZlci1yZXVzZS1tb2RlLXdpbmRvdwogICAgICAgICAgICAgICAgICAg ICAgICAoKGFwcGx5ICMnZGVyaXZlZC1tb2RlLXAgYWxsb3dlZC1tb2RlcykKICAgICAgICAgICAg ICAgICAgICAgICAgICdkZXJpdmVkKSkpKSkKICAgICAgICAgICAod2hlbiAoYW5kIG1vZGU/Cisg ICAgICAgICAgICAgICAgICAgICAob3IgKG5vdCAod2luZG93LWRlZGljYXRlZC1wIHdpbmRvdykp CisgICAgICAgICAgICAgICAgICAgICAgICAgKGVxIGJ1ZmZlciAod2luZG93LWJ1ZmZlciB3aW5k b3cpKSkKICAgICAgICAgICAgICAgICAgICAgIChub3QgKGFuZCBpbmhpYml0LXNhbWUtd2luZG93 LXAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoZXEgd2luZG93IGN1cndpbikpKSkK ICAgICAgICAgICAgIChwdXNoIHdpbmRvdyAoaWYgKGVxIGN1cmZyYW1lICh3aW5kb3ctZnJhbWUg d2luZG93KSkKLS0gCjIuNDguMQoK --000000000000a7deb3062de8363b-- From unknown Mon Aug 18 04:11:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76216: 29.4; display-buffer-reuse-mode-window does not respect dedicated flag Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Feb 2025 13:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76216 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Trevor Murphy , martin rudalics Cc: 76216@debbugs.gnu.org Received: via spool by 76216-submit@debbugs.gnu.org id=B76216.173936722725682 (code B ref 76216); Wed, 12 Feb 2025 13:34:01 +0000 Received: (at 76216) by debbugs.gnu.org; 12 Feb 2025 13:33:47 +0000 Received: from localhost ([127.0.0.1]:33279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiCs6-0006gA-Fc for submit@debbugs.gnu.org; Wed, 12 Feb 2025 08:33:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41268) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tiCs3-0006ft-49 for 76216@debbugs.gnu.org; Wed, 12 Feb 2025 08:33:44 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tiCrf-00078n-Q9; Wed, 12 Feb 2025 08:33:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=BmJqrR3a799zrl5blp30h4vRlCeJ0v/0NXlrCdw4LIw=; b=K/y168jaFgHf Eh6Th+S7zK0/fKO01yKsOShWyOotW1513L6Vrm7KUXVtE2wEhGCZgK6n0p2hlKx5gw8u+9AqECez4 GDYtNuNIMl5JNM+ewZuxb9oONTt8x1wrCHqVohDmiRUuQxptmYo+u2+aX4mV2kBFw1gft3mxsPMUI rhohScNvSUTRSqISCxYU7bDsyxJCRLIbus+wZLaBT+7i7wcuaRMvSjE1HVM08pTymXWV31i2BjsAF vsEYPx+DvvuzYHAWCmRmBeSKjdDUZJHSX7REiCTfz8x9iJo42ZLAoUKnZjGUYbA7zMDdor2UsB5dA RKpPVlsK3XVvK5ZfPO7+7w==; Date: Wed, 12 Feb 2025 15:32:50 +0200 Message-Id: <86ed03l24d.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Trevor Murphy on Tue, 11 Feb 2025 17:52:30 -0800) References: X-Spam-Score: -2.3 (--) 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: -3.3 (---) > From: Trevor Murphy > Date: Tue, 11 Feb 2025 17:52:30 -0800 > > Hey, all. Per the subject line, I noticed that this display action > function isn't respecting when I mark a window dedicated to its buffer. > > Here's a minimal example you can step through in the scratch buffer: > > ``` > (setq *w* (split-window-horizontally) > *one* (get-buffer-create "one") > *two* (get-buffer-create "two")) > > (display-buffer-use-some-window *one* '((inhibit-same-window . t))) > ;;; should see "one" appear in the *w* window > > (set-window-dedicated-p *w* t) > (display-buffer-use-some-window *two* '((inhibit-same-window . t))) > ;;; should not see any changes, the function returns nil > (display-buffer-reuse-mode-window *two* '((inhibit-same-window . t))) > ;;; bug -- should see "two" appear in the *w* window > ``` > > I think this is a bug in -reuse-mode-window, and so I've attached a > patch that would fix the issue. Though maybe I'm wrong? Is > this intended behavior? Adding Martin to the discussion. From unknown Mon Aug 18 04:11:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76216: 29.4; display-buffer-reuse-mode-window does not respect dedicated flag Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Feb 2025 15:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76216 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Trevor Murphy Cc: 76216@debbugs.gnu.org, youngfrog@members.fsf.org, Nicolas Richard Received: via spool by 76216-submit@debbugs.gnu.org id=B76216.173937465012655 (code B ref 76216); Wed, 12 Feb 2025 15:38:02 +0000 Received: (at 76216) by debbugs.gnu.org; 12 Feb 2025 15:37:30 +0000 Received: from localhost ([127.0.0.1]:37807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiEnp-0003I2-FJ for submit@debbugs.gnu.org; Wed, 12 Feb 2025 10:37:29 -0500 Received: from mout.gmx.net ([212.227.17.20]:35435) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tiEnl-0003Hk-Qb for 76216@debbugs.gnu.org; Wed, 12 Feb 2025 10:37:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1739374627; x=1739979427; i=rudalics@gmx.at; bh=njzXwC54DbEPl1nk2nOsjdWvHBkM7e3cXB4t46bKqsg=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=QrNtNcHxop1wE0fUnXhiU9pcMvcQtTFg9MqDV8es8lfQ/fsNtPSP0vvROJ1r8Y6I E3FIjxXgu+o6oxhDat8V4XRIniNNIgrDCFOOC7Wffzulto5A1xufpvpQnjE4f60fr 92YZc+KaviZd7ymWRDfB6dzf8yu1mv2Jor72M6Hxg0boMivSkHM4d+4ZwqlyVTSSg lLbzmedcbdLWsOLgvhQ6gA3YpjJi4rGcj6lmuNextlGi5TZB0k5KCCZJdZDIT5e0V JR6z8LuTwrfBzmEiFr6jKDfFgJCJ9JdMfBwaDTGNXGJCIcAb3OveVxqTBv3t93xZu V0fBcl/1md28BgZymA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.31.113] ([213.142.96.36]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N1fmq-1tFTdD21GK-00xUjP; Wed, 12 Feb 2025 16:37:07 +0100 Message-ID: Date: Wed, 12 Feb 2025 16:37:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <86ed03l24d.fsf@gnu.org> Content-Language: en-US From: martin rudalics In-Reply-To: <86ed03l24d.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:9FFCIV/dr0TVDvfgQov+nYX5qSzUfolc1M3VDwesiUgEmY56i/X D5YQKf+n7iOs49SC8ZIiw8YPBAGm/nZIhczpkxctqwLI6ztMFgIexr6sZ+wiMKiJcNj0eye T6N52/mtnzXK30z2aK+sZ8SpZLZsyLM5Tal7s4WgD1oYRaobcj/YKK+hHxwI3/EukJm+pHz mgVxF3MTBhhZqWbE/J3MA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:JaihTNFjYTQ=;+82uT26RExuqOnAQHmcn7/9T6X4 u2XebnxxyjjpsCYLRUECyK/qkuluIKdhhaYbZR9PBznLV8yi5w4dwtvszHb2WU3nE+HRsMqdi Pt9rGJPjJGHVOE6Hk9w4fCMaZQbing5wqdg8CNLLLk2g9fQneR62qjqbtZB1OwYr2yujCuojn D2/pxPyyqsz6+CXKj8BkG1nf1dFr01YjbzXaNPM/i4WEEGzjktHlwlHn2uOhd00EZoen8c8lZ /7ojqRstVb/K/bEYfFfOf0iGVuPUgeY1eWxl3xp0MIdlRpfcEQ0ENTsE8MDKQJPPhXJz+6G2R KOKF3lO1i9K+OHGQ8FoqPWkUd7U5SDtWVHYOxN/83+i5Qry7g0rtFit/wiysBfSUS2Yj/Nqil RxfOS6lEdHBkKQ6ZbeDEUzA5VqLqfdaFC0XK3JY7Lqm+E2JFl+M7CDOhxiLSdDO1+YgbyyzMH 87+zbHlG30CzM9lTZxUIpLO8EwBgxgcp/MqpnpHZ5gh6eDVz8Rtr5PiPnZiV87aWVL6Rm/Ur1 WcddoFcVLgH2SxGCutm3GnfVj72NcaW+SCEd/j7iBqgCRA3EdiMXQnpYffOuz/1DRZuHETi5Q /vyWW7f6SgMt82XU2NUlvZLRGNGy/XT3nbl9qKx0plnit+iZ0Zfnz522FnmxyFn4LmOwXa2Ju hiNxpy8la0bdqXi9PeQGXL5HNRTI1H0JFexhOD8pC/jhHHoKOILLTl2tbWvqGV/87Cc26jt8D LT1qaN1UIV2HVaIDbtUKSOMqq4LOXNTlBqPfRirnMHW7S6tPH1xHLXhmy0Lj8MhBdOFVtTZum ktYtxLj+YnhTspNC4RoY2aBanoCYkzkXRuZPIlmxkTiyfBqP1Hhhgw8KS0a/hWXSaNBDS3QSp 5kvqIhACgCvclRNElm1Aq8NsDOiqPs2KRJZ9jWVp52TEz+7/jwru2Rm9aO/7GOutNy0PXFm3m S/IOeYbNwowa6C//JzHHFBwoxWRIhD/YonJkRNNUFaEENEK4o6QPvaH7YtUpLxwlympsrogLi DXbvXao1nKzrrrJpK8zKqmObqlAz2eDcHwXy5K5VKG44qAbY6h7CEOJRzeMO0SAeOhGKfTNBr 2TgsdjlZFEzANs+HBXyeYQhbZIUOuOmWsw+blQ8E+Gi8+ly/HhPOCk5ZoBPN53g/2UFphnAfz IMTuAXn825GYIWiO6FBt15f8sw9ugh797/ia2huAMUV7DlflLv0WbUVSmzk0tXHre/BarLsA1 fwJz6vQh8HKXXSsrcnOfqRCGajzi0liMR5VVfOHRQdsTF8nQSvXFuNfC4yjtOocl5PNOXOg+K kFKpTtKm3/YH63THweKeGzuqqK2rHGz7UzMQDznTi0FEcN0KJpqYGUPM23aOs/noqFw/mJxoL RW5W0cpYahR/9OZ3pl4/0D+EETAtWl/jwYAbxVLQnV/A0qzX7cfscKAJpyxRxA1FDAT9KPysb xzx2JNA== X-Spam-Score: -0.7 (/) 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 (-) >> Hey, all. Per the subject line, I noticed that this display action >> function isn't respecting when I mark a window dedicated to its buffer. >> >> Here's a minimal example you can step through in the scratch buffer: >> >> ``` >> (setq *w* (split-window-horizontally) >> *one* (get-buffer-create "one") >> *two* (get-buffer-create "two")) >> >> (display-buffer-use-some-window *one* '((inhibit-same-window . t))) >> ;;; should see "one" appear in the *w* window >> >> (set-window-dedicated-p *w* t) >> (display-buffer-use-some-window *two* '((inhibit-same-window . t))) >> ;;; should not see any changes, the function returns nil >> (display-buffer-reuse-mode-window *two* '((inhibit-same-window . t))) >> ;;; bug -- should see "two" appear in the *w* window >> ``` >> >> I think this is a bug in -reuse-mode-window, and so I've attached a >> patch that would fix the issue. Though maybe I'm wrong? Is >> this intended behavior? > > Adding Martin to the discussion. I think both approaches can be considered valid but would favor Trevor's variant. In either case we should document the resulting behavior. Adding both addresses of Nicolas Richard, maybe he still is somewhere. martin From unknown Mon Aug 18 04:11:19 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Trevor Murphy Subject: bug#76216: closed (Re: bug#76216: 29.4; display-buffer-reuse-mode-window does not respect dedicated flag) Message-ID: References: <861pvhq7q1.fsf@gnu.org> X-Gnu-PR-Message: they-closed 76216 X-Gnu-PR-Package: emacs Reply-To: 76216@debbugs.gnu.org Date: Sat, 01 Mar 2025 12:03:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1740830582-22286-1" This is a multi-part message in MIME format... ------------=_1740830582-22286-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #76216: 29.4; display-buffer-reuse-mode-window does not respect dedicated f= lag which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 76216@debbugs.gnu.org. --=20 76216: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76216 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1740830582-22286-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 76216-done) by debbugs.gnu.org; 1 Mar 2025 12:03:00 +0000 Received: from localhost ([127.0.0.1]:34599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1toLYZ-0005n8-HP for submit@debbugs.gnu.org; Sat, 01 Mar 2025 07:03:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36746) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1toLYX-0005ma-DN for 76216-done@debbugs.gnu.org; Sat, 01 Mar 2025 07:02:58 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1toLYR-0004Wb-9p; Sat, 01 Mar 2025 07:02:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=hCuhVB0AAG+YI4+IzHIGWC0IcGl5ZiXd8WVls6HtW1s=; b=QbxAUVcIk6ka KKv9Nc+2RFpOa8bl5D9CWc/XfraPwmC5uir2Aokbz1ynFONVCh6Xb6wWQhd5C/1Gyu0ClEN0k/jpa IwDDxS/1IVRlHSezAB7L5Fj1T6cY1SmTuvPEJlKLIZjXfdHAtyasYaIZ/R9+ds5qvrqiOHyme0HQA yOyehN2ziQqTqttzcuXp5c5vtQ0nWuz76EJjKLHFNxfe9++vARXX5GG4iALe217XvenVw/E7UzEDg rmMdjxiaYJg4F5ckx0rwvTVCs5iFqi9sNvQA55UH2x50E/g3e3yphfB2JgNUNNqb3vbzDAoPfG96+ mYHjb/Pyt2Vhkiuu9V3leQ==; Date: Sat, 01 Mar 2025 14:02:46 +0200 Message-Id: <861pvhq7q1.fsf@gnu.org> From: Eli Zaretskii To: martin rudalics In-Reply-To: (message from martin rudalics on Wed, 12 Feb 2025 16:37:05 +0100) Subject: Re: bug#76216: 29.4; display-buffer-reuse-mode-window does not respect dedicated flag References: <86ed03l24d.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76216-done Cc: trevor.m.murphy@gmail.com, theonewiththeevillook@yahoo.fr, 76216-done@debbugs.gnu.org, youngfrog@members.fsf.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: -3.3 (---) > Date: Wed, 12 Feb 2025 16:37:05 +0100 > Cc: 76216@debbugs.gnu.org, Nicolas Richard , > youngfrog@members.fsf.org > From: martin rudalics > > >> Hey, all. Per the subject line, I noticed that this display action > >> function isn't respecting when I mark a window dedicated to its buffer. > >> > >> Here's a minimal example you can step through in the scratch buffer: > >> > >> ``` > >> (setq *w* (split-window-horizontally) > >> *one* (get-buffer-create "one") > >> *two* (get-buffer-create "two")) > >> > >> (display-buffer-use-some-window *one* '((inhibit-same-window . t))) > >> ;;; should see "one" appear in the *w* window > >> > >> (set-window-dedicated-p *w* t) > >> (display-buffer-use-some-window *two* '((inhibit-same-window . t))) > >> ;;; should not see any changes, the function returns nil > >> (display-buffer-reuse-mode-window *two* '((inhibit-same-window . t))) > >> ;;; bug -- should see "two" appear in the *w* window > >> ``` > >> > >> I think this is a bug in -reuse-mode-window, and so I've attached a > >> patch that would fix the issue. Though maybe I'm wrong? Is > >> this intended behavior? > > > > Adding Martin to the discussion. > > I think both approaches can be considered valid but would favor Trevor's > variant. In either case we should document the resulting behavior. > > Adding both addresses of Nicolas Richard, maybe he still is somewhere. Thanks, I've now installed Trevor's change on the master branch, and I'm therefore closing this bug. ------------=_1740830582-22286-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Feb 2025 01:54:10 +0000 Received: from localhost ([127.0.0.1]:59769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ti1x3-00025e-1B for submit@debbugs.gnu.org; Tue, 11 Feb 2025 20:54:10 -0500 Received: from lists.gnu.org ([2001:470:142::17]:39032) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ti1x0-000255-1m for submit@debbugs.gnu.org; Tue, 11 Feb 2025 20:54:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ti1wt-0006fO-Ap for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2025 20:53:59 -0500 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ti1wq-0007h1-RP for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2025 20:53:59 -0500 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5dccc90a52eso10165085a12.0 for ; Tue, 11 Feb 2025 17:53:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739325233; x=1739930033; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=inVtIUqH+MebGIog3NXZz5aAJkb11f6/YphmAa7W4yI=; b=fP/JDmhPVT+F4aB8tm1tFE6Azc6EtJwZDBMO9U3q8Odz468yzM/9lSuiYiKYWIHaCr o0q6dJsrSF013dXI++a8LVZlYlr4FhxBRQGthkDizSqIAJPNE+A2ly939dyB/zOP5vSE /zRX2zfD7uHvH07+JA5EPuV55qjVx0/Wc0MYwT3lrvHgROSzY7kMfrOIuCKEarEAgTRa 3kUA7UwQHm5i7WY9fXBml9uUFZqhXp086v8j5PnmiL/madIA27PM2mLWSbOT0hAjrHxJ 1/niF24TdoGG45DKM16Uw4UeW2SIqDKAuI3Zk3gTtf9ybs99aGSFzQDDRMxX1P4m+2M+ oQUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739325233; x=1739930033; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=inVtIUqH+MebGIog3NXZz5aAJkb11f6/YphmAa7W4yI=; b=ddqdLd+mK1+9l1tkTWfF0Y4JsXV2AQASJ4IHg41CCOoUO6ZAtD5mCerH8prUmjgzaV FsWk5Qi7fjFPywlGummmnuOJXjSn3sGvGIDfklxMTw2DfFTpRP1x0YrPnFB70MzvXW+q xV2wK6saYtmynT/0DLGHYvSd2/yoaSnxX99W0H694/XHEvuq1cx9wYoQa2KqlbkKw7aI LHI2CffTdYM1m1quRINrt3SQldbkXAORexrLd0krBwjyt3ufPj30yNfDM7KOafj1b8M9 6mbasxtPxb29IqTxW4AnyfC7v/NjQiXZ693QuOeZbCNWln62jr2nWNiKT5ii3BTJYIyu 9M7Q== X-Gm-Message-State: AOJu0YxGmW+eMkJxDUUMpNfM85uW0VdDRxfnLtz+ZSyI0UX2gOaybVCb MXNRgexlcv8C6Ye06DgyZ+nbNCQX9AUIs1loe5HuCcN5Wp+CJ/tzcuxGYC5xAnnnbkkh4AfP8jb OiIdcL8H+ezVnajAjK/rdWvV8J+OuACYp X-Gm-Gg: ASbGncvqyfz7s+eRTECzb3oWU6TuCavcZZxBqSrQpVpE1WomeuwKwCtt7CW4yn5iOa9 XJBXzqaRNWMXWcpeKr/7X2AJIEDHfeDHxerh3RJqUQeDsFc6FTh9wINS0JZ/E7IEGtJhXh+8J/a FF0aeYdoa5Og== X-Google-Smtp-Source: AGHT+IHpb54mgvYCREEryYeNclKhokpUPnzEtK8OAKc183w0WwjDHZM/4tUDO/zptUoWHQITqiGTBgU/OiLFyr2PZH4= X-Received: by 2002:a05:6402:51d2:b0:5de:5025:2bd9 with SMTP id 4fb4d7f45d1cf-5deadd936f0mr1292229a12.11.1739325232884; Tue, 11 Feb 2025 17:53:52 -0800 (PST) MIME-Version: 1.0 From: Trevor Murphy Date: Tue, 11 Feb 2025 17:52:30 -0800 X-Gm-Features: AWEUYZlKxofvdAd9rDodfxAK2hkUQU3YDDAJ6sBSl3Mb-0sXyKDahaW0-_s1z_4 Message-ID: Subject: 29.4; display-buffer-reuse-mode-window does not respect dedicated flag To: bug-gnu-emacs@gnu.org Content-Type: multipart/mixed; boundary="000000000000a7deb3062de8363b" Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=trevor.m.murphy@gmail.com; helo=mail-ed1-x530.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit 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.0 (/) --000000000000a7deb3062de8363b Content-Type: multipart/alternative; boundary="000000000000a7deb2062de83639" --000000000000a7deb2062de83639 Content-Type: text/plain; charset="UTF-8" Hey, all. Per the subject line, I noticed that this display action function isn't respecting when I mark a window dedicated to its buffer. Here's a minimal example you can step through in the scratch buffer: ``` (setq *w* (split-window-horizontally) *one* (get-buffer-create "one") *two* (get-buffer-create "two")) (display-buffer-use-some-window *one* '((inhibit-same-window . t))) ;;; should see "one" appear in the *w* window (set-window-dedicated-p *w* t) (display-buffer-use-some-window *two* '((inhibit-same-window . t))) ;;; should not see any changes, the function returns nil (display-buffer-reuse-mode-window *two* '((inhibit-same-window . t))) ;;; bug -- should see "two" appear in the *w* window ``` I think this is a bug in -reuse-mode-window, and so I've attached a patch that would fix the issue. Though maybe I'm wrong? Is this intended behavior? In GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.48, cairo version 1.18.2) Repository revision: 324f7b692ab0768891a26fe1c1431f4b555018be Repository branch: main System Description: Arch Linux Configured using: 'configure --with-pgtk --with-native-compilation=aot --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib --with-tree-sitter --localstatedir=/var --with-cairo --disable-build-details --with-harfbuzz --with-libsystemd --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/trevor/pkgbuilds/abs/emacs/src=/usr/src/debug/emacs -flto=auto' 'LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto' 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/trevor/pkgbuilds/abs/emacs/src=/usr/src/debug/emacs -flto=auto'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 76993 6931) (symbols 48 7111 0) (strings 32 19553 2302) (string-bytes 1 592363) (vectors 16 15757) (vector-slots 8 327500 14961) (floats 8 37 46) (intervals 56 267 0) (buffers 984 11)) --000000000000a7deb2062de83639 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey, all.=C2=A0 Per the subject line, I noticed that this = display action
function isn't respecting when I mark a window dedica= ted to its buffer.

Here's a minimal example you can step through= in the scratch buffer:

```
(setq *w* (split-window-horizontally)=
=C2=A0 =C2=A0 =C2=A0 *one* (get-buffer-create "one")
=C2= =A0 =C2=A0 =C2=A0 *two* (get-buffer-create "two"))

(displa= y-buffer-use-some-window *one* '((inhibit-same-window . t)))
;;; sho= uld see "one" appear in the *w* window

(set-window-dedicat= ed-p *w* t)
(display-buffer-use-some-window *two* '((inhibit-same-wi= ndow . t)))
;;; should not see any changes, the function returns nil
= (display-buffer-reuse-mode-window *two* '((inhibit-same-window . t)));;; bug -- should see "two" appear in the *w* window
```
=
I think this is a bug in -reuse-mode-window, and so I've attached a=
patch that would fix the issue.=C2=A0 Though maybe I'm wrong?=C2=A0= Is
this intended behavior?


In GNU Emacs 29.4 (bui= ld 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.48,
cairo version 1.18.2)Repository revision: 324f7b692ab0768891a26fe1c1431f4b555018be
Reposito= ry branch: main
System Description: Arch Linux

Configured using:<= br>=C2=A0'configure --with-pgtk --with-native-compilation=3Daot --sysco= nfdir=3D/etc
=C2=A0--prefix=3D/usr --libexecdir=3D/usr/lib --with-tree-s= itter
=C2=A0--localstatedir=3D/var --with-cairo --disable-build-details<= br>=C2=A0--with-harfbuzz --with-libsystemd --with-modules 'CFLAGS=3D-ma= rch=3Dx86-64
=C2=A0-mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptions -Wp,= -D_FORTIFY_SOURCE=3D3
=C2=A0-Wformat -Werror=3Dformat-security -fstack-c= lash-protection
=C2=A0-fcf-protection -fno-omit-frame-pointer -mno-omit-= leaf-frame-pointer -g
=C2=A0-ffile-prefix-map=3D/home/trevor/pkgbuilds/a= bs/emacs/src=3D/usr/src/debug/emacs
=C2=A0-flto=3Dauto' 'LDFLAGS= =3D-Wl,-O1 -Wl,--sort-common -Wl,--as-needed
=C2=A0-Wl,-z,relro -Wl,-z,n= ow -Wl,-z,pack-relative-relocs -flto=3Dauto'
=C2=A0'CXXFLAGS=3D-= march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptions
=C2=A0-W= p,-D_FORTIFY_SOURCE=3D3 -Wformat -Werror=3Dformat-security
=C2=A0-fstack= -clash-protection -fcf-protection -fno-omit-frame-pointer
=C2=A0-mno-omi= t-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g
=C2=A0-ffile-prefix-ma= p=3D/home/trevor/pkgbuilds/abs/emacs/src=3D/usr/src/debug/emacs
=C2=A0-f= lto=3Dauto''

Configured features:
ACL CAIRO DBUS FREETYPE= GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSY= STEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
PDUMPER PGTK PNG RSVG S= ECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X= IM GTK3 ZLIB

Important settings:
=C2=A0 value of $LANG: en_US.UTF= -8
=C2=A0 locale-coding-system: utf-8-unix

Major mode: Lisp Inter= action

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 gl= obal-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 show-paren-mode: t
= =C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool= -bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t<= br>=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 bl= ink-cursor-mode: t
=C2=A0 line-number-mode: t
=C2=A0 indent-tabs-mode= : t
=C2=A0 transient-mark-mode: t
=C2=A0 auto-composition-mode: t
= =C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t

Lo= ad-path shadows:
None found.

Features:
(shadow sort mail-extr = emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml= mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util tex= t-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc= 2231 mailabbrev gmm-utils mailheader cl-loaddefs
comp comp-cstr warnings= icons subr-x rx cl-seq cl-macs gv cl-extra
help-mode bytecomp byte-comp= ile cl-lib sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-u= tils rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-ho= ok vc-hooks lisp-float-type
elisp-mode mwheel term/pgtk-win pgtk-win ter= m/common-win pgtk-dnd
tool-bar dnd fontset image regexp-opt fringe tabul= ated-list replace
newcomment text-mode lisp-mode prog-mode register page= tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar m= ouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffe= r nadvice seq
simple cl-generic indonesian philippine cham georgian utf-= 8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eu= cjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indi= an
cyrillic chinese composite emoji-zwj charscript charprop case-tableepa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded buttonloaddefs theme-loaddefs faces cus-face macroexp files window
text-prop= erties overlay sha1 md5 base64 format env code-pages mule
custom widget = keymap hashtable-print-readable backquote threads dbusbind
inotify dynam= ic-setting system-font-setting font-render-setting cairo
gtk pgtk lcms2 = multi-tty make-network-process native-compile emacs)

Memory informat= ion:
((conses 16 76993 6931)
=C2=A0(symbols 48 7111 0)
=C2=A0(stri= ngs 32 19553 2302)
=C2=A0(string-bytes 1 592363)
=C2=A0(vectors 16 15= 757)
=C2=A0(vector-slots 8 327500 14961)
=C2=A0(floats 8 37 46)
= =C2=A0(intervals 56 267 0)
=C2=A0(buffers 984 11))
--000000000000a7deb2062de83639-- --000000000000a7deb3062de8363b Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Ignore-dedicated-windows-in-display-buffer-reuse-mod.patch" Content-Disposition: attachment; filename="0001-Ignore-dedicated-windows-in-display-buffer-reuse-mod.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_m719966q0 RnJvbSBiYTM0Y2NiYjhiNGE5ZjJjZmI1NzU3MmViZDEyNGVlZTk4ZTFhNjU0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBUcmV2b3IgTXVycGh5IDx0cmV2b3IubS5tdXJwaHlAZ21haWwu Y29tPgpEYXRlOiBUdWUsIDExIEZlYiAyMDI1IDE3OjI2OjU1IC0wODAwClN1YmplY3Q6IFtQQVRD SF0gSWdub3JlIGRlZGljYXRlZCB3aW5kb3dzIGluCiAnZGlzcGxheS1idWZmZXItcmV1c2UtbW9k ZS13aW5kb3cnLgoKVW5sZXNzIHRoZSBkZWRpY2F0ZWQgd2luZG93IGlzIGFscmVhZHkgZGlzcGxh eWluZyB0aGUKYnVmZmVyLXRvLWJlLWRpc3BsYXllZC4gIEluIHRoYXQgY2FzZSB0aGUgd2luZG93 IG1heSBiZSByZXVzZWQsCmFjY29yZGluZyB0byB0aGUgc2V0dGluZyBvZiBpbmhpYml0LXNhbWUt d2luZG93LgoKKiBsaXNwL3dpbmRvdy5lbCAoZGlzcGxheS1idWZmZXItcmV1c2UtbW9kZS13aW5k b3cpOiBDaGVjawp3aW5kb3ctZGVkaWNhdGVkLXAgYmVmb3JlIHB1c2hpbmcgdGhlIGNhbmRpZGF0 ZSB3aW5kb3cgb250byB0aGUgc3RhY2suCi0tLQogbGlzcC93aW5kb3cuZWwgfCAyICsrCiAxIGZp bGUgY2hhbmdlZCwgMiBpbnNlcnRpb25zKCspCgpkaWZmIC0tZ2l0IGEvbGlzcC93aW5kb3cuZWwg Yi9saXNwL3dpbmRvdy5lbAppbmRleCAxM2ZlMWZlYmExMC4uMDE4YmIzNWY5NDMgMTAwNjQ0Ci0t LSBhL2xpc3Avd2luZG93LmVsCisrKyBiL2xpc3Avd2luZG93LmVsCkBAIC03OTg0LDYgKzc5ODQs OCBAQCBkaXNwbGF5LWJ1ZmZlci1yZXVzZS1tb2RlLXdpbmRvdwogICAgICAgICAgICAgICAgICAg ICAgICAoKGFwcGx5ICMnZGVyaXZlZC1tb2RlLXAgYWxsb3dlZC1tb2RlcykKICAgICAgICAgICAg ICAgICAgICAgICAgICdkZXJpdmVkKSkpKSkKICAgICAgICAgICAod2hlbiAoYW5kIG1vZGU/Cisg ICAgICAgICAgICAgICAgICAgICAob3IgKG5vdCAod2luZG93LWRlZGljYXRlZC1wIHdpbmRvdykp CisgICAgICAgICAgICAgICAgICAgICAgICAgKGVxIGJ1ZmZlciAod2luZG93LWJ1ZmZlciB3aW5k b3cpKSkKICAgICAgICAgICAgICAgICAgICAgIChub3QgKGFuZCBpbmhpYml0LXNhbWUtd2luZG93 LXAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoZXEgd2luZG93IGN1cndpbikpKSkK ICAgICAgICAgICAgIChwdXNoIHdpbmRvdyAoaWYgKGVxIGN1cmZyYW1lICh3aW5kb3ctZnJhbWUg d2luZG93KSkKLS0gCjIuNDguMQoK --000000000000a7deb3062de8363b-- ------------=_1740830582-22286-1--