GNU bug report logs - #76216
29.4; display-buffer-reuse-mode-window does not respect dedicated flag

Previous Next

Package: emacs;

Reported by: Trevor Murphy <trevor.m.murphy <at> gmail.com>

Date: Wed, 12 Feb 2025 01:55:02 UTC

Severity: normal

Found in version 29.4

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>, Trevor Murphy <trevor.m.murphy <at> gmail.com>
Cc: 76216 <at> debbugs.gnu.org, youngfrog <at> members.fsf.org, Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Subject: bug#76216: 29.4; display-buffer-reuse-mode-window does not respect dedicated flag
Date: Wed, 12 Feb 2025 16:37:05 +0100
>> 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




This bug report was last modified 141 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.