From unknown Mon Jun 23 23:53:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20034: 25.0.50; [PATCH] gud never displays a source buffer over the gud window Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Mar 2015 02:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 20034@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.142577995930613 (code B ref -1); Sun, 08 Mar 2015 02:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Mar 2015 01:59:19 +0000 Received: from localhost ([127.0.0.1]:38981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUQUw-0007xe-Iq for submit@debbugs.gnu.org; Sat, 07 Mar 2015 20:59:19 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59458) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUQUu-0007xR-Cq for submit@debbugs.gnu.org; Sat, 07 Mar 2015 20:59:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUQUn-0007Pp-Pc for submit@debbugs.gnu.org; Sat, 07 Mar 2015 20:59:11 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUQUn-0007Pk-MC for submit@debbugs.gnu.org; Sat, 07 Mar 2015 20:59:09 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUQUm-0005hr-Lq for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 20:59:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUQUj-0007P3-Fw for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 20:59:08 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:58815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUQUj-0007Oj-7h for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 20:59:05 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id BE67C203C8 for ; Sat, 7 Mar 2015 20:59:00 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Sat, 07 Mar 2015 20:59:02 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:from:to:subject:date:message-id:mime-version :content-type; s=mesmtp; bh=jhqXbsGXYX6fQ8+gyeMqOuurzvk=; b=n/Sw oyfSCgWqXQdNGCeCYXHewCI7R+InKwg8j5/8eb8P3/ej7UtmA1cmtXoKcJ7Qos/R zhB2WheSTDpl77qISsPJXDpmCn71Cy/eo4l1U07g+4TsEdRXV8yGQjK3l8ScdXAj 9Bywq9QrtUeSUNQ03blo/4RkEU/sbk3I9s1OOKU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:subject:date :message-id:mime-version:content-type; s=smtpout; bh=jhqXbsGXYX6 fQ8+gyeMqOuurzvk=; b=fCAAsS304Ecjv5dnzeWtKASzsRz9bUpnWiVyf6vY/Fh Bty4Skn15SaHAD3CzFjg7b66ro6f44YO52K4jtJUNRKbRS2d62LJ2kdycnaiizxP IsHbkCZUPWD++g7C59rwveuwDkF3j1FwKJAytWmQDCeek/LNJsDMXavTf9hdeWjg = X-Sasl-enc: n+ghNRUCPy3rhgZheQKB04BLyBx0+H3PHv0rsw67Ql6E 1425779941 Received: from shorty.local (unknown [69.204.115.227]) by mail.messagingengine.com (Postfix) with ESMTPA id E3FF9680085 for ; Sat, 7 Mar 2015 20:59:01 -0500 (EST) Received: from localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1YUQUf-0007lE-Br for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 17:59:01 -0800 From: Dima Kogan Date: Sat, 07 Mar 2015 17:59:01 -0800 Message-ID: <87sidgp7ve.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain Hi. Sometime between emacs 23 and emacs 24 the behavior of display-buffer changed to show the buffer in the current window at times (emacs 23 always used a different window). As a (presumably unwanted) side-effect it is now possible for a gud user to lose the gud window as one interacts with gud. I often encounter this when I open a core dump in gud-gdb, then invoke "up" repeatedly to traverse the call stack. Eventually a source buffer takes over the gud window and I have to switch back to gud to keep navigating the stack. Trivial recipe: 1. Create any C program in /tmp/tst.c. Can be as simple as int main(void) { return 0; } 2. gcc -g -o tst tst.c 3. emacs -Q 4. C-x 3 (split window horizontally) 5. C-x C-f tst.c (open tst.c) 6. M-x gud-gdb, 'gdb --fullname /tmp/tst' (start up gud in the same window that's currently showing tst.c) 7. b main 8. r On my machine this switches to tst.c on top of the gud buffer, replacing gud in its window. With the attached patch this does not happen. This is similar, but not identical to bug http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17675 The proposed fix in that bug does not handle the above recipe. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gud-never-displays-a-source-buffer-over-the-gud-wind.patch >From d3b42eb74be145969dd829aeedcb7ceac629de03 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sat, 7 Mar 2015 17:37:20 -0800 Subject: [PATCH] gud never displays a source buffer over the gud window --- lisp/progmodes/gud.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 42c5b20..ac830e7 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -2813,7 +2813,7 @@ Obeying it means displaying in another window the specified file and line." (gud-find-file true-file))) (window (and buffer (or (get-buffer-window buffer) - (display-buffer buffer)))) + (display-buffer buffer '(nil (inhibit-same-window . t)))))) (pos)) (when buffer (with-current-buffer buffer -- 2.1.4 --=-=-=-- From unknown Mon Jun 23 23:53:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20034: 25.0.50; [PATCH] gud never displays a source buffer over the gud window Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Mar 2015 10:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dima Kogan , 20034@debbugs.gnu.org Received: via spool by 20034-submit@debbugs.gnu.org id=B20034.142580905712781 (code B ref 20034); Sun, 08 Mar 2015 10:05:02 +0000 Received: (at 20034) by debbugs.gnu.org; 8 Mar 2015 10:04:17 +0000 Received: from localhost ([127.0.0.1]:39150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUY4G-0003K4-KJ for submit@debbugs.gnu.org; Sun, 08 Mar 2015 06:04:17 -0400 Received: from mout.gmx.net ([212.227.15.19]:62772) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUY4E-0003Jm-57 for 20034@debbugs.gnu.org; Sun, 08 Mar 2015 06:04:14 -0400 Received: from [178.191.143.22] ([178.191.143.22]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LjaEi-1XtHNH0Yzw-00bZYr; Sun, 08 Mar 2015 11:04:07 +0100 Message-ID: <54FC1E8C.5050706@gmx.at> Date: Sun, 08 Mar 2015 11:03:56 +0100 From: martin rudalics MIME-Version: 1.0 References: <87sidgp7ve.fsf@secretsauce.net> In-Reply-To: <87sidgp7ve.fsf@secretsauce.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:OfWFBo5+Zlowr/9tyyr5F/fWhEVQQzNS7WLqnYp3rcLAYqgZVpW CR6fDVGbRAsx86dvVhdKL/ynOHXudOH1B6zsZtkPrPdFsnI2FOw0zD5nMaXnA6SWh6EbRSD EQ09UntYC1fGB+pjWI1qnmHpywQDj8DwI+5BMppw1NBgZNjHyfubQuDiD9fsJ4sK8SQNeKm MWtejXtTy7hVE6weBqidg== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > Sometime between emacs 23 and emacs 24 the behavior of display-buffer > changed to show the buffer in the current window at times (emacs 23 > always used a different window). No. `display-buffer' displays the buffer in the selected window just as often as before the changes you mention. > On my machine this switches to tst.c on top of the gud buffer, replacing > gud in its window. With the attached patch this does not happen. > > This is similar, but not identical to bug > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17675 > > The proposed fix in that bug does not handle the above recipe. Would your fix handle Bug#17675 as well? And maybe some of the related bugs in this area (see Bug#19901, for a recent example)? There also was a proposal to only "softly" dedicate some gud window to its buffer. See the thread entitled "Use of dedicated windows in gdb-mi.el". martin From unknown Mon Jun 23 23:53:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20034: 25.0.50; [PATCH] gud never displays a source buffer over the gud window Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Mar 2015 01:30:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: martin rudalics Cc: 20034@debbugs.gnu.org Received: via spool by 20034-submit@debbugs.gnu.org id=B20034.142586455316662 (code B ref 20034); Mon, 09 Mar 2015 01:30:06 +0000 Received: (at 20034) by debbugs.gnu.org; 9 Mar 2015 01:29:13 +0000 Received: from localhost ([127.0.0.1]:39915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUmVM-0004Kd-OO for submit@debbugs.gnu.org; Sun, 08 Mar 2015 21:29:13 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:48244) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUmVJ-0004KG-T9 for 20034@debbugs.gnu.org; Sun, 08 Mar 2015 21:29:10 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E1AB62095E for <20034@debbugs.gnu.org>; Sun, 8 Mar 2015 21:29:07 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Sun, 08 Mar 2015 21:29:09 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:references:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-type; s=mesmtp; bh=flWGSYu1Cu+i wDHiwkPWt2uEsYo=; b=Ecvo3cPhFcBKWlJJfNmu2hz3T535o/LdjK4JnNCDdevV B4u/H2itZjs+wFSWEaRjOXwqkKnuwmzaKQcwBgsjs9CM620NwHYOPxpGjDDiYYYa A9OKYnV4RV+QGrk6gk9l4Guur5OzcZ8gpANn7OgFnAAkCDlztYisuEHYikfwlwU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:references:from:to:cc:subject :date:in-reply-to:message-id:mime-version:content-type; s= smtpout; bh=flWGSYu1Cu+iwDHiwkPWt2uEsYo=; b=hZxjnKRKdewfzSyIt5Uo lIlkYbFnboJR2ZZ8wn0SJC2R4/axAtwrZIxwSVssei9pOWYCZdf6SJWeheZv6MnZ K+/eaUWhAPV8MEKlCi6NhT7kpEgqUweyTHHu8fAQI6SDbvn/eGN7d6BAsfqWIocJ xZAvyU+T4+LbrTe1rq/x9RY= X-Sasl-enc: rAIRFOnIsN3BdDmH4rk3/3isXCcCnC/TJWRcGQBp2Kxj 1425864549 Received: from shorty.local (unknown [69.204.115.227]) by mail.messagingengine.com (Postfix) with ESMTPA id 28DE26801CC; Sun, 8 Mar 2015 21:29:09 -0400 (EDT) Received: from localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1YUmVI-0000kI-GX; Sun, 08 Mar 2015 18:29:08 -0700 References: <87sidgp7ve.fsf@secretsauce.net> <54FC1E8C.5050706@gmx.at> From: Dima Kogan Date: Sun, 08 Mar 2015 18:25:27 -0700 In-reply-to: <54FC1E8C.5050706@gmx.at> Message-ID: <87fv9fklgb.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain martin rudalics writes: > > On my machine this switches to tst.c on top of the gud buffer, replacing > > gud in its window. With the attached patch this does not happen. > > > > This is similar, but not identical to bug > > > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17675 > > > > The proposed fix in that bug does not handle the above recipe. > > Would your fix handle Bug#17675 as well? And maybe some of the related > bugs in this area (see Bug#19901, for a recent example)? Hi. The patch fixes 17676. 19901 is a slightly different problem, and the attached patch fixes that as well. > There also was a proposal to only "softly" dedicate some gud window to > its buffer. See the thread entitled "Use of dedicated windows in > gdb-mi.el". I'm not concerned about gdb-mi here; just the old-style gud. I've seen the new display-buffer behavior similarly affect the behavior of some other things, like xcscope.el for instance (I'll handle that once this change is OKed). I feel like the attached patch is the default behavior I want most of the time, but this is probably different for each user. Thanks --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gud-never-displays-a-source-buffer-over-the-gud-wind.patch >From 41bc170051c5541d5379aed97a634ca3ed094682 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sat, 7 Mar 2015 17:37:20 -0800 Subject: [PATCH] gud never displays a source buffer over the gud window --- lisp/progmodes/gud.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index a12bdd9..f6dadeb 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -2813,7 +2813,7 @@ Obeying it means displaying in another window the specified file and line." (gud-find-file true-file))) (window (and buffer (or (get-buffer-window buffer) - (display-buffer buffer)))) + (display-buffer buffer '(nil (inhibit-same-window . t)))))) (pos)) (when buffer (with-current-buffer buffer -- 2.1.4 --=-=-=-- From unknown Mon Jun 23 23:53:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20034: 25.0.50; [PATCH] gud never displays a source buffer over the gud window Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Mar 2015 10:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dima Kogan Cc: 20034@debbugs.gnu.org Received: via spool by 20034-submit@debbugs.gnu.org id=B20034.142589745316620 (code B ref 20034); Mon, 09 Mar 2015 10:38:02 +0000 Received: (at 20034) by debbugs.gnu.org; 9 Mar 2015 10:37:33 +0000 Received: from localhost ([127.0.0.1]:40165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUv41-0004K0-AB for submit@debbugs.gnu.org; Mon, 09 Mar 2015 06:37:33 -0400 Received: from mout.gmx.net ([212.227.17.21]:54602) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUv3y-0004Jm-Uv for 20034@debbugs.gnu.org; Mon, 09 Mar 2015 06:37:31 -0400 Received: from [88.117.23.219] ([88.117.23.219]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Lmwpk-1Xo97D24ho-00h8fK; Mon, 09 Mar 2015 11:37:19 +0100 Message-ID: <54FD77F9.1050801@gmx.at> Date: Mon, 09 Mar 2015 11:37:45 +0100 From: martin rudalics MIME-Version: 1.0 References: <87sidgp7ve.fsf@secretsauce.net> <54FC1E8C.5050706@gmx.at> <87fv9fklgb.fsf@secretsauce.net> In-Reply-To: <87fv9fklgb.fsf@secretsauce.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:rpnHCxB6UIHDsV7HnEleVrU0IXCtD9/R5CDbg80D8qcYBuzJO9q OUZGZS1BssJMEIXRKWOX6nEtHK38Kp1pueUwU7wBAv62rVIEtqC1NJX08b6h1iD8gfwnvro fnZdH8/K13s46uLvsysH2hCMEqHWGdLtupFZLTkusgM7oB1vZJ/rpBaD43ebfeiLHRox4Cp nSxVEBR6UE3/zBZvLu/6g== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) >> Would your fix handle Bug#17675 as well? And maybe some of the related >> bugs in this area (see Bug#19901, for a recent example)? > > Hi. The patch fixes 17676. 17675, hopefully. > 19901 is a slightly different problem, and > the attached patch fixes that as well. Maybe people who reported problems with their gud-/gdb interface could try whether the patch fixes them. martin From unknown Mon Jun 23 23:53:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20034: 25.0.50; [PATCH] gud never displays a source buffer over the gud window Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Mar 2015 16:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: martin rudalics Cc: 20034@debbugs.gnu.org Received: via spool by 20034-submit@debbugs.gnu.org id=B20034.142591697522362 (code B ref 20034); Mon, 09 Mar 2015 16:03:01 +0000 Received: (at 20034) by debbugs.gnu.org; 9 Mar 2015 16:02:55 +0000 Received: from localhost ([127.0.0.1]:40867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YV08t-0005oc-7g for submit@debbugs.gnu.org; Mon, 09 Mar 2015 12:02:55 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:38205) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YV08r-0005oR-1o for 20034@debbugs.gnu.org; Mon, 09 Mar 2015 12:02:53 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CA4A521593 for <20034@debbugs.gnu.org>; Mon, 9 Mar 2015 12:02:50 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Mon, 09 Mar 2015 12:02:52 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:references:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-type; s=mesmtp; bh=yrs2f1tzuH1w xg96dS4Q4lqEA/8=; b=s9pPkfwz+Z0wRjpIJ5NrZL6BGZD01D410lhh0G+hrt+E kps+Q21lG9Jr1Q+CZLHM0VwSsOKH+RtFGkOQFkFBgRJ5jTr4PCGUPG16lxmFufuW Dz6KiSivQ4aGURjl7Qf9P2sqR13K7OqYZx0nyZiMaAjdfUyj0cc/1kUHnhXE0G8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:references:from:to:cc:subject :date:in-reply-to:message-id:mime-version:content-type; s= smtpout; bh=yrs2f1tzuH1wxg96dS4Q4lqEA/8=; b=TlpmeHWL0A5ur7ZXIWe1 XNdFJN7EJmOakTAsjbpiaAUdkxrS2IL30/xfxIuQmDwB5K+lIzG0cTM3OCMAhCex ql1fWndXhsmGNa3BZlF1DPLL4Wc6bjcQKcv3Rduvyg+PALWp2EU4vEXgtfbly79z pYK/t7IydcTjo5yR6xFsVLw= X-Sasl-enc: pnTYnxzOU2nV0fpK+MD72r6Ees/QWJRMCl6x7YA8zTE3 1425916971 Received: from shorty.local (unknown [172.56.33.38]) by mail.messagingengine.com (Postfix) with ESMTPA id C3046C002A7; Mon, 9 Mar 2015 12:02:51 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1YV08i-0007vi-V7; Mon, 09 Mar 2015 09:02:45 -0700 References: <87sidgp7ve.fsf@secretsauce.net> <54FC1E8C.5050706@gmx.at> <87fv9fklgb.fsf@secretsauce.net> <54FD77F9.1050801@gmx.at> From: Dima Kogan Date: Mon, 09 Mar 2015 09:01:16 -0700 In-reply-to: <54FD77F9.1050801@gmx.at> Message-ID: <87d24ikvks.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain In the last email I attached the older patch by mistake. Correct patch attached this time. It fixes this, 17675 and 19901 I believe. martin rudalics writes: > Maybe people who reported problems with their gud-/gdb interface could > try whether the patch fixes them. I sent requests to the tracker of 17675 and 19901 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gud-never-displays-a-source-buffer-over-the-gud-wind.patch >From ed24aed33bd27ddd66b7288fb3999eaa619a0c27 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sat, 7 Mar 2015 17:37:20 -0800 Subject: [PATCH] gud never displays a source buffer over the gud window --- lisp/progmodes/gud.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index a12bdd9..ea6f53c 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -2813,8 +2813,8 @@ Obeying it means displaying in another window the specified file and line." (gud-find-file true-file))) (window (and buffer (or (get-buffer-window buffer) - (display-buffer buffer)))) - (pos)) + (display-buffer buffer '(display-buffer-use-some-window (inhibit-same-window . t)))))) + (pos)) (when buffer (with-current-buffer buffer (unless (or (verify-visited-file-modtime buffer) gud-keep-buffer) -- 2.1.4 --=-=-=-- From unknown Mon Jun 23 23:53:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20034: 25.0.50; [PATCH] gud never displays a source buffer over the gud window Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Mar 2015 08:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dima Kogan Cc: 20034@debbugs.gnu.org Received: via spool by 20034-submit@debbugs.gnu.org id=B20034.142597498010929 (code B ref 20034); Tue, 10 Mar 2015 08:10:02 +0000 Received: (at 20034) by debbugs.gnu.org; 10 Mar 2015 08:09:40 +0000 Received: from localhost ([127.0.0.1]:41167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YVFES-0002qC-Af for submit@debbugs.gnu.org; Tue, 10 Mar 2015 04:09:40 -0400 Received: from mout.gmx.net ([212.227.15.19]:61022) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YVFEQ-0002q0-DD for 20034@debbugs.gnu.org; Tue, 10 Mar 2015 04:09:39 -0400 Received: from [62.47.136.67] ([62.47.136.67]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MaqeA-1YAyHo0yxG-00KP5z; Tue, 10 Mar 2015 09:09:30 +0100 Message-ID: <54FEA6B7.6030408@gmx.at> Date: Tue, 10 Mar 2015 09:09:27 +0100 From: martin rudalics MIME-Version: 1.0 References: <87sidgp7ve.fsf@secretsauce.net> <54FC1E8C.5050706@gmx.at> <87fv9fklgb.fsf@secretsauce.net> <54FD77F9.1050801@gmx.at> <87d24ikvks.fsf@secretsauce.net> In-Reply-To: <87d24ikvks.fsf@secretsauce.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:8G/NTM6gw6UkaB4iMdd1IvKgrwfL8Vhx6yb/gNwOflTx2lC8KvE wMLHIFCcFzrEc12Cwf8SswJK7UazahVrCNbFBlX78QRiyGc5okZB+RR3/aeDFruB4w8yCDP N9Q1JMA3pdy1pVwA3YkuByHWN/fQLxSdCkTeTdWvEuy43UEpHzt5YcniZrR1zdRbfCcagYP KeAGH+P3IgF9AtV8BbO2g== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) >> Maybe people who reported problems with their gud-/gdb interface could >> try whether the patch fixes them. > > I sent requests to the tracker of 17675 and 19901 Thank you. martin From unknown Mon Jun 23 23:53:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20034: 25.0.50; [PATCH] gud never displays a source buffer over the gud window Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Mar 2015 19:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: martin rudalics Cc: 20034@debbugs.gnu.org Received: via spool by 20034-submit@debbugs.gnu.org id=B20034.142653443227946 (code B ref 20034); Mon, 16 Mar 2015 19:34:02 +0000 Received: (at 20034) by debbugs.gnu.org; 16 Mar 2015 19:33:52 +0000 Received: from localhost ([127.0.0.1]:48914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXalr-0007Gf-NM for submit@debbugs.gnu.org; Mon, 16 Mar 2015 15:33:52 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:49682) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXalp-0007GV-0V for 20034@debbugs.gnu.org; Mon, 16 Mar 2015 15:33:49 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id DD07620FF8 for <20034@debbugs.gnu.org>; Mon, 16 Mar 2015 15:33:46 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Mon, 16 Mar 2015 15:33:48 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:references:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-type; s=mesmtp; bh=r48CN5+7cY2a r4BG8uEN8zRi/KI=; b=POgJLPQW9So6/Sl9Wc3iDGL0R4T539veaw6HkRGoMNWw H2HJxMWPdwvisAC57fZrKum1XGArUPVCWPs5U1nN+aBj2cxEGgm50SRNBFdVokmr TgNjET2Bx3HyEZZDo0KMlT5YJZXOHNMO7hyMyrD3ylCOv7Y9t0Q4pSj9CltqzqY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:references:from:to:cc:subject :date:in-reply-to:message-id:mime-version:content-type; s= smtpout; bh=r48CN5+7cY2ar4BG8uEN8zRi/KI=; b=bL7Y8npSVAj8VyROzFZM tKdzYfY2PRCJuE/2RY+suf0r2KzxkljuUR6gJ4ual13cCWNFLPf9RAzbrIFpDgU0 ztRJqkw9R6Eq1SM66V5Ws5UDqK7Igd0j8ku2Bpo2KhqXnnE6xtEaYLT5hTSpBD54 WAytoZiA9Q+qLqUHlBrT+II= X-Sasl-enc: wISiQi9IzpriFB9vk/PdNv2m1LvpvABG01GuwXlhwKfk 1426534428 Received: from shorty.local (unknown [76.91.145.213]) by mail.messagingengine.com (Postfix) with ESMTPA id 8D0F56801A2; Mon, 16 Mar 2015 15:33:48 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1YXalp-0000Fk-0B; Mon, 16 Mar 2015 12:33:49 -0700 References: <87sidgp7ve.fsf@secretsauce.net> <54FC1E8C.5050706@gmx.at> <87fv9fklgb.fsf@secretsauce.net> <54FD77F9.1050801@gmx.at> <87d24ikvks.fsf@secretsauce.net> <54FEA6B7.6030408@gmx.at> From: Dima Kogan Date: Mon, 16 Mar 2015 12:32:20 -0700 In-reply-to: <54FEA6B7.6030408@gmx.at> Message-ID: <87twxk3ffn.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) martin rudalics writes: >>> Maybe people who reported problems with their gud-/gdb interface could >>> try whether the patch fixes them. >> >> I sent requests to the tracker of 17675 and 19901 Reporters of those bugs haven't replied for a week. I did test the latest patch earlier, and it appeared to address both of those bugs as well as mine. Do we need to keep waiting for those reporters before taking the patch? Thanks dima From unknown Mon Jun 23 23:53:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20034: 25.0.50; [PATCH] gud never displays a source buffer over the gud window Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Mar 2015 10:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dima Kogan Cc: 20034@debbugs.gnu.org Received: via spool by 20034-submit@debbugs.gnu.org id=B20034.142658791125808 (code B ref 20034); Tue, 17 Mar 2015 10:26:01 +0000 Received: (at 20034) by debbugs.gnu.org; 17 Mar 2015 10:25:11 +0000 Received: from localhost ([127.0.0.1]:49209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXogQ-0006iA-EW for submit@debbugs.gnu.org; Tue, 17 Mar 2015 06:25:11 -0400 Received: from mout.gmx.net ([212.227.15.18]:59112) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXogM-0006i0-0D for 20034@debbugs.gnu.org; Tue, 17 Mar 2015 06:25:07 -0400 Received: from [62.47.143.244] ([62.47.143.244]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MLujU-1Yb97q3NvA-007hmB; Tue, 17 Mar 2015 11:25:02 +0100 Message-ID: <550800FC.7070500@gmx.at> Date: Tue, 17 Mar 2015 11:25:00 +0100 From: martin rudalics MIME-Version: 1.0 References: <87sidgp7ve.fsf@secretsauce.net> <54FC1E8C.5050706@gmx.at> <87fv9fklgb.fsf@secretsauce.net> <54FD77F9.1050801@gmx.at> <87d24ikvks.fsf@secretsauce.net> <54FEA6B7.6030408@gmx.at> <87twxk3ffn.fsf@secretsauce.net> In-Reply-To: <87twxk3ffn.fsf@secretsauce.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:TUXm5RgAbdmEtTRsYbqq2r47FatKrsBCoq/Mr0n5GdcxxbCbjzz 8FN+GB2xGlFZMIe6+nA8fp/7QaMDbGkoH3uO6znICYJJch47hViJ1Haah9G0rWYR4vphbaE tzWM6j0PWs3/iDZ8ezoNY5zfnSrGziil89/GIC0e9Xi5+RPlLsj7GZ3scaM0SHP9x+Qf+sO RAEwrcc+qKH6FMjDNUQjQ== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > Reporters of those bugs haven't replied for a week. I did test the > latest patch earlier, and it appeared to address both of those bugs as > well as mine. Do we need to keep waiting for those reporters before > taking the patch? No. Please install your change and close the bugs (referencing the commit). If the patch doesn't work for them, people can always reopen these bugs. Thanks, martin From unknown Mon Jun 23 23:53:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dima Kogan Subject: bug#20034: closed (Fixed) Message-ID: References: <87h9ti3g64.fsf@secretsauce.net> <87sidgp7ve.fsf@secretsauce.net> X-Gnu-PR-Message: they-closed 20034 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 20034@debbugs.gnu.org Date: Wed, 18 Mar 2015 07:43:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1426664584-21466-1" This is a multi-part message in MIME format... ------------=_1426664584-21466-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #20034: 25.0.50; [PATCH] gud never displays a source buffer over the gud wi= ndow which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 20034@debbugs.gnu.org. --=20 20034: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20034 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1426664584-21466-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 20034-done) by debbugs.gnu.org; 18 Mar 2015 07:42:35 +0000 Received: from localhost ([127.0.0.1]:50935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YY8cc-0005Ya-F0 for submit@debbugs.gnu.org; Wed, 18 Mar 2015 03:42:34 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:55355) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YY8cZ-0005YO-94 for 20034-done@debbugs.gnu.org; Wed, 18 Mar 2015 03:42:31 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2645A20A91 for <20034-done@debbugs.gnu.org>; Wed, 18 Mar 2015 03:42:27 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Wed, 18 Mar 2015 03:42:29 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:from:to:subject:date:message-id:mime-version :content-type; s=mesmtp; bh=7vw38pSO/AfKiajLoxlLRMhaXd0=; b=k8K7 rzB7orqIw1wmPDOVARt6d8v5KF8QPTO2EFiAPVxDOOrOWM1NHSPxcrewqhfCOyP9 iqsf1Sp9PawBnNyqUauL7sUKXNBOGfrhVQJlw5OZkN4d63jPow2iupC8t5iyHlD/ br98RdivrO15IYycZaF9g68LEBAHMCsPwE0DTvI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:subject:date :message-id:mime-version:content-type; s=smtpout; bh=7vw38pSO/Af KiajLoxlLRMhaXd0=; b=E8AeCEzJRILM3EBgbrDdAdreHOOha/veNLVSBSBnDQw 3l6FAStM8i7oqBGIEMIC1JBDqQnitvEoChBdIZ30vv33fd5A6pKPSBu6VzMXQ497 ntXHCgMx8j/vEuIv2SybaGqhfOxCfpGyAtbw9J8rZR8NgA7e9h5PAA4hxUnu+urA = X-Sasl-enc: ZBAJJlxJRC40qludpYbMqyXxNgfWvnKgeM+sCfJINfLS 1426664548 Received: from shorty.local (unknown [76.91.145.213]) by mail.messagingengine.com (Postfix) with ESMTPA id E5588C0028C; Wed, 18 Mar 2015 03:42:28 -0400 (EDT) Received: from localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1YY8cV-0005RG-Na; Wed, 18 Mar 2015 00:42:27 -0700 From: Dima Kogan To: 17675-done@debbugs.gnu.org, 19901-done@debbugs.gnu.org, 20034-done@debbugs.gnu.org Subject: Fixed Date: Wed, 18 Mar 2015 00:41:42 -0700 Message-ID: <87h9ti3g64.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20034-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Fixed with this commit: http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=fd93edbb1cabfdf0c732dbb0c6892a515b406a65 ------------=_1426664584-21466-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 8 Mar 2015 01:59:19 +0000 Received: from localhost ([127.0.0.1]:38981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUQUw-0007xe-Iq for submit@debbugs.gnu.org; Sat, 07 Mar 2015 20:59:19 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59458) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUQUu-0007xR-Cq for submit@debbugs.gnu.org; Sat, 07 Mar 2015 20:59:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUQUn-0007Pp-Pc for submit@debbugs.gnu.org; Sat, 07 Mar 2015 20:59:11 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUQUn-0007Pk-MC for submit@debbugs.gnu.org; Sat, 07 Mar 2015 20:59:09 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUQUm-0005hr-Lq for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 20:59:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUQUj-0007P3-Fw for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 20:59:08 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:58815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUQUj-0007Oj-7h for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 20:59:05 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id BE67C203C8 for ; Sat, 7 Mar 2015 20:59:00 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Sat, 07 Mar 2015 20:59:02 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:from:to:subject:date:message-id:mime-version :content-type; s=mesmtp; bh=jhqXbsGXYX6fQ8+gyeMqOuurzvk=; b=n/Sw oyfSCgWqXQdNGCeCYXHewCI7R+InKwg8j5/8eb8P3/ej7UtmA1cmtXoKcJ7Qos/R zhB2WheSTDpl77qISsPJXDpmCn71Cy/eo4l1U07g+4TsEdRXV8yGQjK3l8ScdXAj 9Bywq9QrtUeSUNQ03blo/4RkEU/sbk3I9s1OOKU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:subject:date :message-id:mime-version:content-type; s=smtpout; bh=jhqXbsGXYX6 fQ8+gyeMqOuurzvk=; b=fCAAsS304Ecjv5dnzeWtKASzsRz9bUpnWiVyf6vY/Fh Bty4Skn15SaHAD3CzFjg7b66ro6f44YO52K4jtJUNRKbRS2d62LJ2kdycnaiizxP IsHbkCZUPWD++g7C59rwveuwDkF3j1FwKJAytWmQDCeek/LNJsDMXavTf9hdeWjg = X-Sasl-enc: n+ghNRUCPy3rhgZheQKB04BLyBx0+H3PHv0rsw67Ql6E 1425779941 Received: from shorty.local (unknown [69.204.115.227]) by mail.messagingengine.com (Postfix) with ESMTPA id E3FF9680085 for ; Sat, 7 Mar 2015 20:59:01 -0500 (EST) Received: from localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1YUQUf-0007lE-Br for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 17:59:01 -0800 From: Dima Kogan To: bug-gnu-emacs@gnu.org Subject: 25.0.50; [PATCH] gud never displays a source buffer over the gud window Date: Sat, 07 Mar 2015 17:59:01 -0800 Message-ID: <87sidgp7ve.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain Hi. Sometime between emacs 23 and emacs 24 the behavior of display-buffer changed to show the buffer in the current window at times (emacs 23 always used a different window). As a (presumably unwanted) side-effect it is now possible for a gud user to lose the gud window as one interacts with gud. I often encounter this when I open a core dump in gud-gdb, then invoke "up" repeatedly to traverse the call stack. Eventually a source buffer takes over the gud window and I have to switch back to gud to keep navigating the stack. Trivial recipe: 1. Create any C program in /tmp/tst.c. Can be as simple as int main(void) { return 0; } 2. gcc -g -o tst tst.c 3. emacs -Q 4. C-x 3 (split window horizontally) 5. C-x C-f tst.c (open tst.c) 6. M-x gud-gdb, 'gdb --fullname /tmp/tst' (start up gud in the same window that's currently showing tst.c) 7. b main 8. r On my machine this switches to tst.c on top of the gud buffer, replacing gud in its window. With the attached patch this does not happen. This is similar, but not identical to bug http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17675 The proposed fix in that bug does not handle the above recipe. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gud-never-displays-a-source-buffer-over-the-gud-wind.patch >From d3b42eb74be145969dd829aeedcb7ceac629de03 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sat, 7 Mar 2015 17:37:20 -0800 Subject: [PATCH] gud never displays a source buffer over the gud window --- lisp/progmodes/gud.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 42c5b20..ac830e7 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -2813,7 +2813,7 @@ Obeying it means displaying in another window the specified file and line." (gud-find-file true-file))) (window (and buffer (or (get-buffer-window buffer) - (display-buffer buffer)))) + (display-buffer buffer '(nil (inhibit-same-window . t)))))) (pos)) (when buffer (with-current-buffer buffer -- 2.1.4 --=-=-=-- ------------=_1426664584-21466-1--