GNU bug report logs - #68081
30.0.50; derived-mode and display-buffer-alist

Previous Next

Package: emacs;

Reported by: German Pacenza <germanp82 <at> hotmail.com>

Date: Thu, 28 Dec 2023 13:32:02 UTC

Severity: normal

Found in version 30.0.50

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: germanp82 <at> hotmail.com, 68081 <at> debbugs.gnu.org
Cc: eliz <at> gnu.org
Subject: bug#68081: 30.0.50; derived-mode and display-buffer-alist
Date: Sat, 6 Jan 2024 09:56:38 +0100
> (setq display-buffer-alist
>      '(((derived-mode . compilation-mode)
>         (display-buffer-in-side-window)
>         (side . top))))
>
> Run 'vc-update' command which creates a compilation-mode buffer.

Thanks, but this doesn't create a compilation-mode buffer here.
'vc-log-internal-common' has these lines

    ;; Display after setting up major-mode, so display-buffer-alist can know
    ;; the major-mode.
    (pop-to-buffer buffer)

so vc.el seems to be aware of the problem.  Can you please spot the
'pop-to-buffer' call responsible for the misbehavior in your scenario?

Thanks, martin




This bug report was last modified 1 year and 211 days ago.

Previous Next


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