unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52026: edebug-pop-to-buffer pops up buffer at random windows
@ 2021-11-21 19:33 Juri Linkov
  2021-11-22  8:10 ` Juri Linkov
  0 siblings, 1 reply; 2+ messages in thread
From: Juri Linkov @ 2021-11-21 19:33 UTC (permalink / raw)
  To: 52026

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?





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#52026: edebug-pop-to-buffer pops up buffer at random windows
  2021-11-21 19:33 bug#52026: edebug-pop-to-buffer pops up buffer at random windows Juri Linkov
@ 2021-11-22  8:10 ` Juri Linkov
  0 siblings, 0 replies; 2+ messages in thread
From: Juri Linkov @ 2021-11-22  8:10 UTC (permalink / raw)
  To: 52026

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-22  8:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-21 19:33 bug#52026: edebug-pop-to-buffer pops up buffer at random windows Juri Linkov
2021-11-22  8:10 ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).