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


Message #8 received at 76216 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Trevor Murphy <trevor.m.murphy <at> gmail.com>,
 martin rudalics <rudalics <at> gmx.at>
Cc: 76216 <at> debbugs.gnu.org
Subject: Re: bug#76216: 29.4;
 display-buffer-reuse-mode-window does not respect dedicated flag
Date: Wed, 12 Feb 2025 15:32:50 +0200
> From: Trevor Murphy <trevor.m.murphy <at> gmail.com>
> 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.




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.