unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: Michael Welsh Duggan <mwd@md5i.com>,
	22374@debbugs.gnu.org,
	Michael Buksas <mwbuksas@stellarscience.com>
Subject: bug#22374: Buffers of previously open files appear in gud interaction window instead of source window in many-windows mode
Date: Mon, 21 May 2018 16:38:31 -0400	[thread overview]
Message-ID: <87y3gchhh4.fsf_-_@gmail.com> (raw)
In-Reply-To: <5B026C15.8040602@gmx.at> (martin rudalics's message of "Mon, 21 May 2018 08:49:57 +0200")

[-- Attachment #1: Type: text/plain, Size: 581 bytes --]

[moving from bug#17675 to #22374]

martin rudalics <rudalics@gmx.at> writes:

> If you think that this might solve Bug#22374, I'd go for it.  Can you
> explain how it solves that bug?

Oh, I only observed that it [35] fixes the bug, I was hoping you could
explain it.  Actually, it looks like the explanation you put before [20]
still applies.  The reason the inhibit-same-window fix doesn't help is
that step 9 (middle-click the single line in the stack frame window)
changes the current window, hence the gud interaction window is no
longer the "same-window" and not inhibited.


[-- Attachment #2: reproducer for bug#22374 --]
[-- Type: text/plain, Size: 957 bytes --]

(defconst bug-22374-dir
  (file-name-directory (or load-file-name
                           buffer-file-name)))

(defun bug-22373-frame0 ()
  (interactive)
  (select-window (get-buffer-window "*stack frames of test*"))
  (let ((new-level "0"))
    (setq gdb-frame-number new-level)
    (gdb-input (concat "-stack-select-frame " new-level)
	       'ignore)
    (gdb-update)))

(mapatoms (lambda (s)
            (when (and (fboundp s)
                       (string-match "\\`display-buffer"
                                     (symbol-name s)))
              (trace-function-background s))))
(trace-function-background 'bug-22373-frame0)


(find-file (expand-file-name "test.cpp" bug-22374-dir))
(gdb "gdb -i=mi ./test")
(gdb-many-windows )
(gdb-input "start" #'ignore)
(run-with-idle-timer
 0.25 nil
 (lambda ()
   (select-window (get-buffer-window "test.cpp"))
   (switch-to-buffer "*scratch*")
   (run-with-idle-timer 0.5 nil #'bug-22373-frame0)
   ))


[-- Attachment #3: Type: text/plain, Size: 124 bytes --]



[20]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17675#20
[35]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17675#35

  reply	other threads:[~2018-05-21 20:38 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-03 15:17 bug#17675: 24.4.50; *gud* buffer keeps on getting buried Michael Welsh Duggan
2014-06-03 16:08 ` martin rudalics
2014-06-04  0:52   ` Michael Welsh Duggan
2014-06-04  6:41     ` martin rudalics
2014-06-04 11:20       ` Michael Welsh Duggan
2014-06-04 14:51         ` martin rudalics
2014-06-05  0:48           ` Michael Welsh Duggan
2014-06-05  7:48             ` martin rudalics
2014-11-23 23:27               ` Michael Welsh Duggan
2014-11-23 23:31                 ` Michael Welsh Duggan
2014-11-23 23:34                   ` Michael Welsh Duggan
2018-05-20 23:59                     ` Noam Postavsky
2018-05-21  0:18                       ` Michael Welsh Duggan
2018-05-21  1:06                         ` Noam Postavsky
2018-05-21  6:49                       ` martin rudalics
2018-05-21 20:38                         ` Noam Postavsky [this message]
2018-05-22  7:24                           ` bug#22374: Buffers of previously open files appear in gud interaction window instead of source window in many-windows mode martin rudalics
2018-05-23 23:11                             ` Noam Postavsky
2015-03-09 14:02 ` bug#17675: patch Dima Kogan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y3gchhh4.fsf_-_@gmail.com \
    --to=npostavs@gmail.com \
    --cc=22374@debbugs.gnu.org \
    --cc=mwbuksas@stellarscience.com \
    --cc=mwd@md5i.com \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).