GNU bug report logs - #52026
edebug-pop-to-buffer pops up buffer at random windows

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Sun, 21 Nov 2021 19:39:02 UTC

Severity: normal

Tags: notabug

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52026 in the body.
You can then email your comments to 52026 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#52026; Package emacs. (Sun, 21 Nov 2021 19:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juri Linkov <juri <at> linkov.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 21 Nov 2021 19:39:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: bug-gnu-emacs <at> gnu.org
Subject: edebug-pop-to-buffer pops up buffer at random windows
Date: Sun, 21 Nov 2021 21:33:52 +0200
It's hard to edebug in a predefined window configuration
when edebug pops up source code buffers in random windows,
and thus continually changes the window configuration.

Would it be possible to always show the debugged source files
in the same window?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52026; Package emacs. (Mon, 22 Nov 2021 08:14:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: 52026 <at> debbugs.gnu.org
Subject: Re: bug#52026: edebug-pop-to-buffer pops up buffer at random windows
Date: Mon, 22 Nov 2021 10:10:03 +0200
tags 52026 notabug
close 52026
quit

> It's hard to edebug in a predefined window configuration
> when edebug pops up source code buffers in random windows,
> and thus continually changes the window configuration.
>
> Would it be possible to always show the debugged source files
> in the same window?

Actually, this is easy to do with a simple configuration:

#+begin_src emacs-lisp
(advice-add 'edebug-pop-to-buffer :around
            (lambda (orig-fun buffer &optional window)
              (when (string-prefix-p "edebug" (format "%s" real-this-command))
                (window--display-buffer buffer (old-selected-window) 'reuse
                                        '(nil (inhibit-same-window . nil))))
              (funcall orig-fun buffer window))
            '((name . edebug-pop-to-buffer-same-window)))
#+end_src




Added tag(s) notabug. Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Mon, 22 Nov 2021 08:14:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 52026 <at> debbugs.gnu.org and Juri Linkov <juri <at> linkov.net> Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Mon, 22 Nov 2021 08:14:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 20 Dec 2021 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 128 days ago.

Previous Next


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