From unknown Fri Aug 15 03:37:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#21777 <21777@debbugs.gnu.org> To: bug#21777 <21777@debbugs.gnu.org> Subject: Status: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs Reply-To: bug#21777 <21777@debbugs.gnu.org> Date: Fri, 15 Aug 2025 10:37:37 +0000 retitle 21777 25.0.50; gud-gdb uses a pager, which is harmful inside emacs reassign 21777 emacs submitter 21777 Dima Kogan severity 21777 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 28 15:20:59 2015 Received: (at submit) by debbugs.gnu.org; 28 Oct 2015 19:20:59 +0000 Received: from localhost ([127.0.0.1]:42868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrWHL-0003eA-BP for submit@debbugs.gnu.org; Wed, 28 Oct 2015 15:20:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45228) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrWHJ-0003e2-Ak for submit@debbugs.gnu.org; Wed, 28 Oct 2015 15:20:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrWHG-00005X-3z for submit@debbugs.gnu.org; Wed, 28 Oct 2015 15:20:57 -0400 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]:52124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWHF-00005N-Vd for submit@debbugs.gnu.org; Wed, 28 Oct 2015 15:20:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWHE-0007Ly-9I for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:20:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrWHB-0008VW-3L for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:20:52 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:59957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWHA-0008UW-JM for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:20:48 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 11683208E0 for ; Wed, 28 Oct 2015 15:20:47 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Wed, 28 Oct 2015 15:20:47 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=WqiUVFwnpELg83Tos175f6CvpYk =; b=jJj4Zwt58EnKqHuNq8bC8+AP1pS0Kyweyv9QtvuY0qSZlO0WLwCeqfoyhja Olwcp9/nFyPfLMLF+2PhcuT40MdvM6wTyIx9NhAuIpHXVccUlOHuG3ROgEwlDXR7 7dXLqH1cHkmWq8GAaqWtt8exQ/ZZeloLvSdjaPYAZlp2F0Rc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=Wq iUVFwnpELg83Tos175f6CvpYk=; b=XgEDRY1jvttZiKdwt8DO4O4pvtWWzmQD7b UsvADjZ9rpv5iAK/wDbq+SN4fvKBBp0Q212TwBDHg1vGHVIyDsaIu1UNH9wDIBcM sYiGBnlqvqnx5xKf8gIi6qbxJ3iqMjBQTzGr6IWYbkJDPfe2T09XvtyiQ/4A2wOp gIptu+ZtI= X-Sasl-enc: L2VID3i2b+hPbEcvlqrN7bHN0/ZmrPcckzXuH/rKcy5Y 1446060046 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 9A4CB6801AD for ; Wed, 28 Oct 2015 15:20:46 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1ZrWH7-00083P-Kw for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 12:20:45 -0700 From: Dima Kogan To: bug-gnu-emacs@gnu.org Subject: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs Date: Wed, 28 Oct 2015 12:20:45 -0700 Message-ID: <87ziz2x0j6.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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 (-----) Hi. A regression occurred since 24.4.1, and gud-gdb now uses the pager by default. This means that when gdb wants to output more than N lines, it says ---Type to continue, or q to quit--- This is intended for gdb running in the console, but makes using gdb from emacs much less pleasant since extra user interaction becomes necessary. At worst, gdb sessions meant to be non-interactive (ones that have self-continuing breakpoint commands for instance) become forcefully interactive. Recipe: 1. emacs -Q 2. M-x gud-gdb (select any executable; it doesn't matter) 3. gdb command: show height Emacs 24.4.1 says (gdb) show height Number of lines gdb thinks are in a page is unlimited. This is good. The pager is off, and emacs will receive all gdb output without extra user interaction. Emacs from git says (gdb) show height Number of lines gdb thinks are in a page is 24. This is bad. After 24 lines of output gdb will pester the user. I haven't attempted to do any debugging here yet. Probably will look at it eventually, but if somebody knows what's wrong immediately, that'd be great From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 28 18:28:23 2015 Received: (at 21777) by debbugs.gnu.org; 28 Oct 2015 22:28:23 +0000 Received: from localhost ([127.0.0.1]:42975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrZCh-0008AN-8b for submit@debbugs.gnu.org; Wed, 28 Oct 2015 18:28:23 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:34354) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrZCL-00089W-HA for 21777@debbugs.gnu.org; Wed, 28 Oct 2015 18:28:20 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3nmPg36SkPz3hj9q; Wed, 28 Oct 2015 23:27:59 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3nmPg34n7qzvh1s; Wed, 28 Oct 2015 23:27:59 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 2cx2_TnmMCKM; Wed, 28 Oct 2015 23:27:58 +0100 (CET) X-Auth-Info: Cj59b7Y6OfJUWdW1pkhnpBc4pfOqymJDUDOCI2MyVBfMMf/1cIZGFk1dITaAebHL Received: from igel.home (host-188-174-209-241.customer.m-online.net [188.174.209.241]) by mail.mnet-online.de (Postfix) with ESMTPA; Wed, 28 Oct 2015 23:27:58 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 3A3102C1661; Wed, 28 Oct 2015 23:27:58 +0100 (CET) From: Andreas Schwab To: Dima Kogan Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> X-Yow: .. One FISHWICH coming up!! Date: Wed, 28 Oct 2015 23:27:58 +0100 In-Reply-To: <87ziz2x0j6.fsf@secretsauce.net> (Dima Kogan's message of "Wed, 28 Oct 2015 12:20:45 -0700") Message-ID: <87fv0uaas1.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org 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 (/) Dima Kogan writes: > Emacs from git says > > (gdb) show height > Number of lines gdb thinks are in a page is 24. This is something that needs to be fixed in gdb, see init_page_info in gdb/utils.c. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 28 18:58:19 2015 Received: (at 21777) by debbugs.gnu.org; 28 Oct 2015 22:58:19 +0000 Received: from localhost ([127.0.0.1]:42982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrZfM-0000Qo-0C for submit@debbugs.gnu.org; Wed, 28 Oct 2015 18:58:18 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:45642) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrZf2-0000QN-2f for 21777@debbugs.gnu.org; Wed, 28 Oct 2015 18:57:58 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 64C482034E for <21777@debbugs.gnu.org>; Wed, 28 Oct 2015 18:57:39 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Wed, 28 Oct 2015 18:57:39 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=hcE7s cMif4rrTRZQP7D/oCaYx6I=; b=j9x5XS1Uu1IV3Q4bOwHUAmYm4noQD5LJBh2cO 9s1tAHNnEH28sUC7o2j5T8l9lErpwKz3pfOtiWMwxDSelM5DXIO2p2rOyvKunAyD YJw8U4ddTfF3cK/iqDOy0s7fD3djxOh1OZNx5Y9Ut+VCtxFD33AoWVPWuYl1DZhS I5Ne4g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=hcE7scMif4rrTRZQP7D/oCaYx6I=; b=Ug12z vpdI+tiEiihkzcpzC8Np89sX2WO1b1uAkw6+YN7WPfLPtm7h5O+LNgT/0E5J1adB zF/mcUNg4A7dyTo1YncjbU1OtsvqTs1rAlbZ8GsFdBOe1sDFWiiCWCDdIDGUunL/ OD07ho9Kbl0lZTIsjghtfRbZ8/4TDxWwEeqU/o= X-Sasl-enc: KztOfFKMhVshOpJAVjOmMAy0HGSC0OcZh2jF6fy8Sdg2 1446073059 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 0E58168014C; Wed, 28 Oct 2015 18:57:39 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1ZrZez-0000OP-Sa; Wed, 28 Oct 2015 15:57:37 -0700 References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> From: Dima Kogan To: Andreas Schwab Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs In-reply-to: <87fv0uaas1.fsf@igel.home> Date: Wed, 28 Oct 2015 15:57:37 -0700 Message-ID: <87twpaha8u.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org 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 (/) Andreas Schwab writes: > Dima Kogan writes: > >> Emacs from git says >> >> (gdb) show height >> Number of lines gdb thinks are in a page is 24. > > This is something that needs to be fixed in gdb, see init_page_info in > gdb/utils.c. Hi. Thanks for replying. Looking at gdb/utils.c, apparently gdb looks at the EMACS environment variable, which was set previously but is not anymore: https://github.com/emacs-mirror/emacs/commit/beaab898968caf8b243a33d24824d430fabc31fc This patch in emacs is what broke it. Options: 1. revert above patch 2. patch gdb to look at INSIDE_EMACS not EMACS 3. handle this inside emacs, not relying on gdb behavior I like 3. Emacs should be responsible for things emacs wants, not external applications, even if they're GNU applications. Also, it looks like gdb checks EMACS in a few more places, and I haven't looked at those yet. Thoughts? From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 29 12:16:18 2015 Received: (at 21777) by debbugs.gnu.org; 29 Oct 2015 16:16:18 +0000 Received: from localhost ([127.0.0.1]:44448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zrps9-0002xo-JU for submit@debbugs.gnu.org; Thu, 29 Oct 2015 12:16:17 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:50820) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zrps6-0002xf-I8 for 21777@debbugs.gnu.org; Thu, 29 Oct 2015 12:16:15 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NWZ00J00P46HV00@a-mtaout20.012.net.il> for 21777@debbugs.gnu.org; Thu, 29 Oct 2015 18:16:00 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWZ00J5DP6OB660@a-mtaout20.012.net.il>; Thu, 29 Oct 2015 18:16:00 +0200 (IST) Date: Thu, 29 Oct 2015 18:16:02 +0200 From: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs In-reply-to: <87twpaha8u.fsf@secretsauce.net> X-012-Sender: halo1@inter.net.il To: Dima Kogan Message-id: <837fm53b25.fsf@gnu.org> References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) > From: Dima Kogan > Date: Wed, 28 Oct 2015 15:57:37 -0700 > Cc: 21777@debbugs.gnu.org > > Hi. Thanks for replying. Looking at gdb/utils.c, apparently gdb looks at > the EMACS environment variable, which was set previously but is not > anymore: > > https://github.com/emacs-mirror/emacs/commit/beaab898968caf8b243a33d24824d430fabc31fc > > This patch in emacs is what broke it. Options: > > 1. revert above patch That patch fixed a real-life bug, so I don't think reverting it is an option we should seriously consider. > 2. patch gdb to look at INSIDE_EMACS not EMACS That should be done regardless, I will submit a patch to GDB. > 3. handle this inside emacs, not relying on gdb behavior > > I like 3. Emacs should be responsible for things emacs wants, not > external applications, even if they're GNU applications. 3 is okay in principle, but you didn't show any specific suggestions. What did you have in mind? Please also keep in mind that "M-x gud-gdb" is a legacy command, and the more modern "M-x gdb" doesn't have that problem. There's also: 4. Fix this locally in your GDB init files (using GDB scripting facilities). > Also, it looks like gdb checks EMACS in a few more places, and I haven't > looked at those yet. Maybe I'm missing something, but I don't see any additional places except the one pointed out by Andreas. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 29 18:58:51 2015 Received: (at 21777) by debbugs.gnu.org; 29 Oct 2015 22:58:51 +0000 Received: from localhost ([127.0.0.1]:44863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zrw9j-0006EZ-5S for submit@debbugs.gnu.org; Thu, 29 Oct 2015 18:58:51 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:55935) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zrw9g-0006ER-Cb for 21777@debbugs.gnu.org; Thu, 29 Oct 2015 18:58:48 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 1C9CA207FB for <21777@debbugs.gnu.org>; Thu, 29 Oct 2015 18:58:48 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Thu, 29 Oct 2015 18:58:48 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=PJfzN oMI1wtftnS16C/OrNAjHEw=; b=wJTDyXheYZ2KN8Y/qpuOjo6EiPmzEKkscSezH M5UEiynAxMWCNZ84JiFxHjKni2C8Hq5TTLb0uRXkGd5WwlMH5QcRaZFIyC3n0LEW jfMyZeie/Wq+1GJbpQ4R4LVyVze9NXZjIqD3pWgI8wVfbDepUwTWFKuPOHcAVQQ3 TXF03I= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=PJfzNoMI1wtftnS16C/OrNAjHEw=; b=ICobz R/XU/gLlmcxNt4HEFj1Vl60vfhdD/m+SURTRaGPT78skRefhwo4kgcmn4cCsfnYf TBWrJyfypNNe37kQSVlTTw+vYlNUBpdiPYDWBnBUjqSM8dQDtD8BCx3aBeTldgj5 PaPM2lSdIm6P1OxGfremXrdJC0oOVuq24idwxc= X-Sasl-enc: O2Iv3oo0h1uzMp5JpB/A5zBoNGL/cKInGQAn2jQgNECF 1446159527 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id B9FE96800E3; Thu, 29 Oct 2015 18:58:47 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1Zrw9e-0000KA-Hl; Thu, 29 Oct 2015 15:58:46 -0700 References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> From: Dima Kogan To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs In-reply-to: <837fm53b25.fsf@gnu.org> Date: Thu, 29 Oct 2015 15:58:46 -0700 Message-ID: <87pozxgu3d.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org 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 (/) Eli Zaretskii writes: >> From: Dima Kogan >> >> Hi. Thanks for replying. Looking at gdb/utils.c, apparently gdb looks at >> the EMACS environment variable, which was set previously but is not >> anymore: >> >> 2. patch gdb to look at INSIDE_EMACS not EMACS > > That should be done regardless, I will submit a patch to GDB. Thanks for doing that! >> 3. handle this inside emacs, not relying on gdb behavior >> >> I like 3. Emacs should be responsible for things emacs wants, not >> external applications, even if they're GNU applications. > > 3 is okay in principle, but you didn't show any specific suggestions. > What did you have in mind? gud-gdb.el can send a "set height unlimited" command when it starts the gdb process. I'm happy to give you a patch, if you want. > Please also keep in mind that "M-x gud-gdb" is a legacy command, and > the more modern "M-x gdb" doesn't have that problem. I didn't like it when I tried it the last time; don't remember what specifically was the problem. But if we're still shipping gud-gdb, it should work properly, I think. > There's also: > > 4. Fix this locally in your GDB init files (using GDB scripting > facilities). But then it'll annoy others. >> Also, it looks like gdb checks EMACS in a few more places, and I haven't >> looked at those yet. > > Maybe I'm missing something, but I don't see any additional places > except the one pointed out by Andreas. You're right. I was looking at the readline in their tree, but that's unrelated. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 29 23:43:40 2015 Received: (at 21777) by debbugs.gnu.org; 30 Oct 2015 03:43:40 +0000 Received: from localhost ([127.0.0.1]:45060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zs0bL-0006ar-I3 for submit@debbugs.gnu.org; Thu, 29 Oct 2015 23:43:39 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:54840) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zs0bJ-0006ah-4h for 21777@debbugs.gnu.org; Thu, 29 Oct 2015 23:43:38 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id AD002200E0 for <21777@debbugs.gnu.org>; Thu, 29 Oct 2015 23:43:36 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Thu, 29 Oct 2015 23:43:36 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=KH45j 2bxgEhxPPoZcco1NX4UVbA=; b=Gn6OQzLpmYjRKy5bu1HgC6WjuDQvk0ioEKx8x 0+hnGgOrZNdaSURmRrFT06eJTA6r2S8QP7NQItdmPxZjJuttmGxqVvuR8r8VEqUV 8LVXWIlmWB5Bvur+CuK3GUnW6nZkwwEpVGmVKKazb+PvuId4RoPiXpnT2w0lalH8 je1lgM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=KH45j2bxgEhxPPoZcco1NX4UVbA=; b=Cew1f HyvJgSktZ1uVYJgzmUJH27GrT1lay8Xki9APG/hDYQS/lCF32+qISmsrPiqGuMY1 /P2pj6TfPr2Fc+6wtYNDq34/OllQo3aSy+QMB7KCW5JjSJWgmpLikS2fB+L367qH axNUcEgI2/zUgZPydJ/NFe7WJWkSHE4U59SkdE= X-Sasl-enc: U2lwsfpBpgfaQfKRerax1eqDLblvNgeTwsz/wLnPvnJH 1446176616 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 560F1C00012; Thu, 29 Oct 2015 23:43:36 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1Zs0bH-0001wT-2c; Thu, 29 Oct 2015 20:43:35 -0700 References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> From: Dima Kogan To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs In-reply-to: <87pozxgu3d.fsf@secretsauce.net> Date: Thu, 29 Oct 2015 20:43:35 -0700 Message-ID: <87mvv1ggwo.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org 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 (/) Dima Kogan writes: > Eli Zaretskii writes: > >>> From: Dima Kogan >>> >>> 3. handle this inside emacs, not relying on gdb behavior >> >> 3 is okay in principle, but you didn't show any specific suggestions. >> What did you have in mind? > > gud-gdb.el can send a "set height unlimited" command when it starts the > gdb process. I'm happy to give you a patch, if you want. Something like this: --------------------------------------------------------------------------- diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 9ab0667..61ae85c 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -785,6 +785,8 @@ directory and source-file directory for your debugger." (setq gdb-first-prompt t) (setq gud-running nil) (setq gud-filter-pending-text nil) + + (gud-basic-call "set height unlimited") (run-hooks 'gud-gdb-mode-hook)) ;; The completion process filter indicates when it is finished. --------------------------------------------------------------------------- This works. The main issue is that it creates an extra "(gdb)" prompt we'd want to suppress. You get the idea, however. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 30 03:54:57 2015 Received: (at 21777) by debbugs.gnu.org; 30 Oct 2015 07:54:57 +0000 Received: from localhost ([127.0.0.1]:45220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zs4WX-0004Ta-Eu for submit@debbugs.gnu.org; Fri, 30 Oct 2015 03:54:57 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:38293) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zs4WV-0004TR-Jv for 21777@debbugs.gnu.org; Fri, 30 Oct 2015 03:54:56 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NX000O00W34IS00@mtaout24.012.net.il> for 21777@debbugs.gnu.org; Fri, 30 Oct 2015 09:48:25 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NX000N7KWCPCQ20@mtaout24.012.net.il>; Fri, 30 Oct 2015 09:48:25 +0200 (IST) Date: Fri, 30 Oct 2015 09:54:57 +0200 From: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs In-reply-to: <87pozxgu3d.fsf@secretsauce.net> X-012-Sender: halo1@inter.net.il To: Dima Kogan Message-id: <83io5o23la.fsf@gnu.org> References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) > From: Dima Kogan > Cc: schwab@linux-m68k.org, 21777@debbugs.gnu.org > Date: Thu, 29 Oct 2015 15:58:46 -0700 > > >> 2. patch gdb to look at INSIDE_EMACS not EMACS > > > > That should be done regardless, I will submit a patch to GDB. > > Thanks for doing that! The patch is already in the GDB repository. > >> 3. handle this inside emacs, not relying on gdb behavior > >> > >> I like 3. Emacs should be responsible for things emacs wants, not > >> external applications, even if they're GNU applications. > > > > 3 is okay in principle, but you didn't show any specific suggestions. > > What did you have in mind? > > gud-gdb.el can send a "set height unlimited" command when it starts the > gdb process. I'm happy to give you a patch, if you want. Please do, but this should be done so as not to disable any "set height" commands in the init files that GDB reads when it starts. Otherwise users who do want to set that option for some reason will crucify us. If this becomes tricky, the only reasonable way out might be a user option which defaults to off. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 30 04:17:10 2015 Received: (at 21777) by debbugs.gnu.org; 30 Oct 2015 08:17:10 +0000 Received: from localhost ([127.0.0.1]:45246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zs4s1-00052w-Jk for submit@debbugs.gnu.org; Fri, 30 Oct 2015 04:17:09 -0400 Received: from mtaout27.012.net.il ([80.179.55.183]:33201) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zs4rz-00052n-PR for 21777@debbugs.gnu.org; Fri, 30 Oct 2015 04:17:08 -0400 Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NX000K00XDE0600@mtaout27.012.net.il> for 21777@debbugs.gnu.org; Fri, 30 Oct 2015 10:12:40 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NX000DYIXH45860@mtaout27.012.net.il>; Fri, 30 Oct 2015 10:12:40 +0200 (IST) Date: Fri, 30 Oct 2015 10:17:10 +0200 From: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs In-reply-to: <87mvv1ggwo.fsf@secretsauce.net> X-012-Sender: halo1@inter.net.il To: Dima Kogan Message-id: <83a8r022k9.fsf@gnu.org> References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) > From: Dima Kogan > Cc: schwab@linux-m68k.org, 21777@debbugs.gnu.org > Date: Thu, 29 Oct 2015 20:43:35 -0700 > > --------------------------------------------------------------------------- > diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el > index 9ab0667..61ae85c 100644 > --- a/lisp/progmodes/gud.el > +++ b/lisp/progmodes/gud.el > @@ -785,6 +785,8 @@ directory and source-file directory for your debugger." > (setq gdb-first-prompt t) > (setq gud-running nil) > (setq gud-filter-pending-text nil) > + > + (gud-basic-call "set height unlimited") > (run-hooks 'gud-gdb-mode-hook)) > > ;; The completion process filter indicates when it is finished. > --------------------------------------------------------------------------- > > > This works. The main issue is that it creates an extra "(gdb)" prompt > we'd want to suppress. You get the idea, however. What if the user has "set height 100" in their ~/.gdbinit, or in the system-wide gdbinit file? Will those settings be overridden? If so, we cannot fix the problem this way, not by default anyway. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 30 05:13:28 2015 Received: (at 21777) by debbugs.gnu.org; 30 Oct 2015 09:13:28 +0000 Received: from localhost ([127.0.0.1]:45258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zs5kW-0006NW-6x for submit@debbugs.gnu.org; Fri, 30 Oct 2015 05:13:28 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41399) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zs5kB-0006N5-9r for 21777@debbugs.gnu.org; Fri, 30 Oct 2015 05:13:26 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C6FCC201FC for <21777@debbugs.gnu.org>; Fri, 30 Oct 2015 05:13:06 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Fri, 30 Oct 2015 05:13:06 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=d5X4z 9RP0eE8IOkMZ1eAuNpEF0A=; b=gBgjnveCm9t5Wvmj882a41NIeDPvFQKHoh14L gxpIlOHxCX10IIESFjMQs75dOsTDQOh38hGneRGBYyDIumBQQazN4J3GdUlekS9h sR0ivaUg2bFs9lbqLIGQPGEZVVdmPVX/v7tJvCYxc7tQSb5So3AxA9/m/7dPepYJ hO5nYA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=d5X4z9RP0eE8IOkMZ1eAuNpEF0A=; b=ewjol qzCIeGLQrPnH1yaqAC5n01dHAz7EkYHIwYQX1/Nv2x/nDB4VJk/3u2/e2CHogPCe vb3O+YVMkY1bk8f74oteSDJFMyJQ8y47tUoofJ2Dz+90X9OYS0FXj4HuqonWI6LE tkpoibJ9S2oOqdjJxChYB9gPvBahUjxzZ1OPxI= X-Sasl-enc: Ojrt96J6hLgCEHdB1VqLG1TGBzO7F8+/0LEQolCYIegA 1446196386 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 46E0FC00013; Fri, 30 Oct 2015 05:13:06 -0400 (EDT) Received: from localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1Zs5k6-0003fL-4Q; Fri, 30 Oct 2015 02:13:02 -0700 References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> From: Dima Kogan To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs In-reply-to: <83a8r022k9.fsf@gnu.org> Date: Fri, 30 Oct 2015 02:13:02 -0700 Message-ID: <87lhakhg81.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org 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 (/) Eli Zaretskii writes: > What if the user has "set height 100" in their ~/.gdbinit, or in the > system-wide gdbinit file? Will those settings be overridden? If so, we > cannot fix the problem this way, not by default anyway. Yes. This overrides any user settings. I really can't imagine why somebody would want a pager inside emacs, but maybe I just need more imagination. What is more likely I think is that somebody would have a "set height N" in their .gdbinit, intending it to be picked up during console gdb use, and that this somebody would be annoyed that this setting persists when using gdb through gud. That somebody would want a different setting for the two use cases, which is not easily done, currently. So I'm in favor of overriding the user defaults here. Otherwise, how about this: - we have a variable 'gud-gdb-set-height-unlimited', which has 3 states: uninitialized, yes, no - when gud starts up, if it's 'uninitialized', we ask the user if they want to override, and whether to do so in the future; if they say yes, we update their .emacs.d/init.el. narrow-to-region has this type of user querying. We override only if it's 'yes' This would take care of it, but a desire to have a pager inside gud sounds so crazy to me, that I'd rather just force it. What do we do for vc-mode interaction with git? It has a similar situation where a user can configure git to use a pager. But in that case we completely override that setting, don't we? If so, that would be a precedent to handle gdb in the same way. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 30 05:32:48 2015 Received: (at 21777) by debbugs.gnu.org; 30 Oct 2015 09:32:48 +0000 Received: from localhost ([127.0.0.1]:45287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zs63D-0006qI-HZ for submit@debbugs.gnu.org; Fri, 30 Oct 2015 05:32:47 -0400 Received: from mtaout27.012.net.il ([80.179.55.183]:50474) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zs63A-0006q8-HC for 21777@debbugs.gnu.org; Fri, 30 Oct 2015 05:32:45 -0400 Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NX100B000V84X00@mtaout27.012.net.il> for 21777@debbugs.gnu.org; Fri, 30 Oct 2015 11:28:16 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NX1000LR0Z48TA0@mtaout27.012.net.il>; Fri, 30 Oct 2015 11:28:16 +0200 (IST) Date: Fri, 30 Oct 2015 11:32:47 +0200 From: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs In-reply-to: <87lhakhg81.fsf@secretsauce.net> X-012-Sender: halo1@inter.net.il To: Dima Kogan Message-id: <838u6k1z28.fsf@gnu.org> References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) > From: Dima Kogan > Cc: schwab@linux-m68k.org, 21777@debbugs.gnu.org > Date: Fri, 30 Oct 2015 02:13:02 -0700 > > Eli Zaretskii writes: > > > What if the user has "set height 100" in their ~/.gdbinit, or in the > > system-wide gdbinit file? Will those settings be overridden? If so, we > > cannot fix the problem this way, not by default anyway. > > Yes. This overrides any user settings. I really can't imagine why > somebody would want a pager inside emacs, but maybe I just need more > imagination. IME, users sometimes have some use cases that look really weird to me, but are somehow very important to them. So I'm trying to avoid stepping on their toes as much as possible, even if I cannot imagine those use cases in advance. > So I'm in favor of overriding the user defaults here. Otherwise, how > about this: > > - we have a variable 'gud-gdb-set-height-unlimited', > which has 3 states: uninitialized, yes, no > > - when gud starts up, if it's 'uninitialized', we ask the user if they > want to override, and whether to do so in the future; if they say yes, > we update their .emacs.d/init.el. narrow-to-region has this type of > user querying. We override only if it's 'yes' Why not a simpler boolean, off by default? This problem will go away soon enough, so maybe solutions that are too complicated would be over-engineering it? Btw, does gud.el know the version of GDB it runs? If so, this option should be a no-op for GDB 7.11 and later. > What do we do for vc-mode interaction with git? It has a similar > situation where a user can configure git to use a pager. But in that > case we completely override that setting, don't we? If so, that would be > a precedent to handle gdb in the same way. In vc-git.el, we don't present a CLI-like interface to Git, we just consume all the Git output and then process it. So the situation there is slightly different, I think. But I will let other chime in and express their opinions. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 30 10:01:18 2015 Received: (at 21777) by debbugs.gnu.org; 30 Oct 2015 14:01:19 +0000 Received: from localhost ([127.0.0.1]:46298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZsAF4-0006TE-Lk for submit@debbugs.gnu.org; Fri, 30 Oct 2015 10:01:18 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:57234) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZsAEj-0006SN-M9 for 21777@debbugs.gnu.org; Fri, 30 Oct 2015 10:01:16 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NX100J00DKWHV00@a-mtaout22.012.net.il> for 21777@debbugs.gnu.org; Fri, 30 Oct 2015 16:00:56 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NX100JU2DLJ5U60@a-mtaout22.012.net.il>; Fri, 30 Oct 2015 16:00:56 +0200 (IST) Date: Fri, 30 Oct 2015 16:01:01 +0200 From: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs In-reply-to: <838u6k1z28.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: dima@secretsauce.net Message-id: <83y4ekzc9u.fsf@gnu.org> References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) > Date: Fri, 30 Oct 2015 11:32:47 +0200 > From: Eli Zaretskii > Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org > > > - we have a variable 'gud-gdb-set-height-unlimited', > > which has 3 states: uninitialized, yes, no > > > > - when gud starts up, if it's 'uninitialized', we ask the user if they > > want to override, and whether to do so in the future; if they say yes, > > we update their .emacs.d/init.el. narrow-to-region has this type of > > user querying. We override only if it's 'yes' > > Why not a simpler boolean, off by default? This problem will go away > soon enough, so maybe solutions that are too complicated would be > over-engineering it? I think if we have such an option, and it's by default off, we might consider not bothering about gdbinit commands that contradict the effect of that option. The option gives users enough power to decide what they want more. WDYT? From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 30 15:06:19 2015 Received: (at 21777) by debbugs.gnu.org; 30 Oct 2015 19:06:19 +0000 Received: from localhost ([127.0.0.1]:46507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZsF0F-0000Gg-Ba for submit@debbugs.gnu.org; Fri, 30 Oct 2015 15:06:19 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:38478) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZsEzu-0000Fu-Cz for 21777@debbugs.gnu.org; Fri, 30 Oct 2015 15:06:17 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4B0E72043E for <21777@debbugs.gnu.org>; Fri, 30 Oct 2015 15:05:56 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Fri, 30 Oct 2015 15:05:56 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=hvDY2 V6ucLIG1G9P9Q0G9D33tTY=; b=I3hbsjiQBf0J/cON6IBD3sdRTl98h6hlvKzuu 3WNwsgbIyLJ9hCKN8DX+U6nUa9DiM+og1BZ75cmP7pl8kexpm31xCPZwMoISdPC/ HLxQDsy7cw52ECnkAE0RkJy7mQf8LHf0bfuoKq4vi+fYKn0OYYh79oS0kbcWVTii 8kpsVk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=hvDY2V6ucLIG1G9P9Q0G9D33tTY=; b=bgR0B aW45O9OV+OLXNiqGV6E7w/nfbeo6WZPUQRcwU4dbn7AzDxSlnCWRjD0V0NZuxlZX n3sCDFuMHh4kigC6tDxGJZBY+Sada0eaRGQbDxV1YxhzhTOYPSJBuJ9m1sQvB7W9 JcqILEEL9arnpMA/sk4BY20Kotzlx8kTnsAySk= X-Sasl-enc: A1Lx24Z5J21gI/+SJGDuOlALHCENQ286zUDMOO8qknUD 1446231955 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id AF2B268012F; Fri, 30 Oct 2015 15:05:55 -0400 (EDT) Received: from localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1ZsEzq-0004qO-HQ; Fri, 30 Oct 2015 12:05:54 -0700 References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <83y4ekzc9u.fsf@gnu.org> From: Dima Kogan To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs In-reply-to: <83y4ekzc9u.fsf@gnu.org> Date: Fri, 30 Oct 2015 12:05:54 -0700 Message-ID: <87k2q4gorx.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org 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 (/) Eli Zaretskii writes: >> Date: Fri, 30 Oct 2015 11:32:47 +0200 >> From: Eli Zaretskii >> Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org >> >> > - we have a variable 'gud-gdb-set-height-unlimited', >> > which has 3 states: uninitialized, yes, no >> > >> > - when gud starts up, if it's 'uninitialized', we ask the user if they >> > want to override, and whether to do so in the future; if they say yes, >> > we update their .emacs.d/init.el. narrow-to-region has this type of >> > user querying. We override only if it's 'yes' >> >> Why not a simpler boolean, off by default? This problem will go away >> soon enough, so maybe solutions that are too complicated would be >> over-engineering it? You need a third state to know whether to pester the user or not > I think if we have such an option, and it's by default off, we might > consider not bothering about gdbinit commands that contradict the > effect of that option. The option gives users enough power to decide > what they want more. Right. This was the idea. I'll send a patch at some point. Not today. Thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 30 16:34:24 2015 Received: (at 21777) by debbugs.gnu.org; 30 Oct 2015 20:34:24 +0000 Received: from localhost ([127.0.0.1]:46549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZsGNT-0002V1-Iw for submit@debbugs.gnu.org; Fri, 30 Oct 2015 16:34:23 -0400 Received: from mtaout28.012.net.il ([80.179.55.184]:33533) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZsGNR-0002Ur-53 for 21777@debbugs.gnu.org; Fri, 30 Oct 2015 16:34:21 -0400 Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NX100J00VEWMW00@mtaout28.012.net.il> for 21777@debbugs.gnu.org; Fri, 30 Oct 2015 22:33:21 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NX100CV3VRLNK70@mtaout28.012.net.il>; Fri, 30 Oct 2015 22:33:21 +0200 (IST) Date: Fri, 30 Oct 2015 22:34:25 +0200 From: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs In-reply-to: <87k2q4gorx.fsf@secretsauce.net> X-012-Sender: halo1@inter.net.il To: Dima Kogan Message-id: <83io5oyu26.fsf@gnu.org> References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <83y4ekzc9u.fsf@gnu.org> <87k2q4gorx.fsf@secretsauce.net> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) > From: Dima Kogan > Cc: 21777@debbugs.gnu.org > Date: Fri, 30 Oct 2015 12:05:54 -0700 > > >> > - when gud starts up, if it's 'uninitialized', we ask the user if they > >> > want to override, and whether to do so in the future; if they say yes, > >> > we update their .emacs.d/init.el. narrow-to-region has this type of > >> > user querying. We override only if it's 'yes' > >> > >> Why not a simpler boolean, off by default? This problem will go away > >> soon enough, so maybe solutions that are too complicated would be > >> over-engineering it? > > You need a third state to know whether to pester the user or not Why pester them? Let's rely on them to know what to do, or ask. > > I think if we have such an option, and it's by default off, we might > > consider not bothering about gdbinit commands that contradict the > > effect of that option. The option gives users enough power to decide > > what they want more. > > Right. This was the idea. I'll send a patch at some point. Not today. There's no rush. Thanks in advance. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 29 17:49:27 2019 Received: (at 21777) by debbugs.gnu.org; 29 Sep 2019 21:49:27 +0000 Received: from localhost ([127.0.0.1]:55981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEh4J-0005gc-0v for submit@debbugs.gnu.org; Sun, 29 Sep 2019 17:49:27 -0400 Received: from mail-pl1-f177.google.com ([209.85.214.177]:38661) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEh4H-0005gL-Js for 21777@debbugs.gnu.org; Sun, 29 Sep 2019 17:49:26 -0400 Received: by mail-pl1-f177.google.com with SMTP id w8so2637857plq.5 for <21777@debbugs.gnu.org>; Sun, 29 Sep 2019 14:49:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=XUuv7mKORP+YG3SAVng2R2TygOn9bygbVWziQXHlk5w=; b=eZaX4mqxprMp16px4vfiwoX88xZYKvHcvdUIHCbIKf4onIi6aM+w+dLbIxnNNDbD10 w75SBBUQg8eVVOZ604pY5rcqChKvXKQm1wV+bMZ8TDC/ft5Jk3nH1sxcDw30DaekFEEL GTYnnPIFkyAyfFli0dRrl6X0QD5u2aP7AltNsHHxCzgiNQs0IfxVzP5dew5uu8Dc90Mw nVewg7AYVd6GoNIIf9iXUihBnxGSViZTVgaABGLcV5UDgC7htNeXfK92S4q+JGqNbU18 GBL3RNN+W3nlDQ/8PMLqu7o5hFYOFVlnnQbO7+MFJf+J6ev8hjbRF10Nj8fSoU5lHcFs 3Mcg== X-Gm-Message-State: APjAAAX/I8N4DJEA9eWuANy/FhTJPtqLDMOJpeQsIVKEipoikmy9WvdP YbTXccr+HpYRQr9IxJdBpO5RfKGJZgOieYOGJ7g= X-Google-Smtp-Source: APXvYqw7QQqI2knej/ZLSf5MPs+meCE9JVm9RI73lda/1hq9tldeERepQiUmFB+Mejz6TBDu7gnPLKDqgG2MGaJ7Y48= X-Received: by 2002:a17:902:d88f:: with SMTP id b15mr16106320plz.251.1569793759824; Sun, 29 Sep 2019 14:49:19 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Sun, 29 Sep 2019 23:49:08 +0200 Message-ID: Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, Dima Kogan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Dima Kogan writes: >> I think if we have such an option, and it's by default off, we might >> consider not bothering about gdbinit commands that contradict the >> effect of that option. The option gives users enough power to decide >> what they want more. > > Right. This was the idea. I'll send a patch at some point. Not today. Hi Dima, That was almost 4 years ago. Did you ever get around to writing that patch? Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 20 17:18:49 2020 Received: (at 21777) by debbugs.gnu.org; 20 Sep 2020 21:18:49 +0000 Received: from localhost ([127.0.0.1]:52834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kK6jR-0006Lg-Bq for submit@debbugs.gnu.org; Sun, 20 Sep 2020 17:18:49 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kK6jN-0006LR-Qo for 21777@debbugs.gnu.org; Sun, 20 Sep 2020 17:18:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rtulFcTJZilzml0CPDGr1nQsUJpqltgNPL+Ow8fcaqM=; b=GKJYGvHLw1Z830TeBOif4s7JL+ hI1VUrTPjHtnnIyhhU0CbDScF4Wbazc0XfWsGDl3P0krTY1MtJPP6hxnvWVmxObsR/r7E/Nvmm+0D MiWB3p3j+KjWaGeOp4lfKS40roTdN3p1IebF7NLyUpqwullwOxq7/n566sot0aVno/Nk=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kK6jC-00024N-4N; Sun, 20 Sep 2020 23:18:38 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> X-Now-Playing: Vinicius =?utf-8?Q?Cantu=C3=A1ria's_=5FTucum=C3=A3=5F=3A?= "Pra Gil" Date: Sun, 20 Sep 2020 23:18:32 +0200 In-Reply-To: <838u6k1z28.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 30 Oct 2015 11:32:47 +0200") Message-ID: <878sd4jgev.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > IME, users sometimes have some use cases that look really weird to me, > but are somehow very important to them. So I'm trying to avoid > stepping on their toes as much as possible, even if I cannot [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, Dima Kogan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Eli Zaretskii writes: > IME, users sometimes have some use cases that look really weird to me, > but are somehow very important to them. So I'm trying to avoid > stepping on their toes as much as possible, even if I cannot imagine > those use cases in advance. I worked up a patch for this, but in testing, there's a number of problems. 1) When resizing a frame, the height in gdb is overwritten. Where does that come from? I tried grepping, but couldn't find anything. 2) Sending a command this way to gdb gives us an extra prompt, which isn't nice. 3) If you start gdb with M-x gdb instead of M-x gud-gdb, the height variable in gdb is always switched off: (gdb-input "-gdb-set height 0" 'ignore) So why shouldn't gud-gdb do the same thing? diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index 7074bd45d7..ac54c570cd 100644 --- a/doc/emacs/building.texi +++ b/doc/emacs/building.texi @@ -1040,6 +1040,15 @@ GDB User Interface Layout need to check that the breakpoints in recently edited source files are still in the right places. +@vindex gud-pager-height + GDB normally uses a pager when displaying output (like backtraces). +This can be inconvenient when running inside Emacs, so the default +value of @code{gud-pager-height} is @code{unlimited}, meaning that the +pager is disabled. This variable can also be a number (which is used +as the number of lines by the pager), or @code{nil}, meaning that the +pager setting shouldn't be changed from the gdb defaults (or +@file{.gdbinit} settings). + @node Source Buffers @subsubsection Source Buffers @cindex fringes, for debugging diff --git a/etc/NEWS b/etc/NEWS index 1f52341ae4..3014eddbdd 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1034,6 +1034,10 @@ window after starting). This variable defaults to nil. ** Miscellaneous +*** New user option 'gud-pager-height' +This variable is used to set up the gdb pager, and defaults to +`unlimited', meaning that a pager won't be used. + +++ *** Interactive regular expression search now uses faces for sub-groups. E.g., 'C-M-s foo-\([0-9]+\)' will now use the 'isearch-group-1' face diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 84c473ddb7..7acc540b01 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -67,6 +67,19 @@ gud-key-prefix :type 'key-sequence :group 'gud) +(defcustom gud-pager-height 'unlimited + "The size of a page when gdb displays output. +gdb normally uses a pager when displaying things like +backtraces (or other things that take a lot of room). This +variable allows customizing the pager when gdb is run from Emacs. + +This can be a number (the number of lines), `unlimited' (don't +use the pager at all), or nil (don't change the defaults)." + :type '(choice (const :tag "No paging" unlimited) + integer + (const :tag "Don't set" nil)) + :version "28.1") + (global-set-key (vconcat gud-key-prefix "\C-l") 'gud-refresh) ;; (define-key ctl-x-map " " 'gud-break); backward compatibility hack @@ -796,6 +809,9 @@ gud-gdb (setq gdb-first-prompt t) (setq gud-running nil) (setq gud-filter-pending-text nil) + + (when gud-pager-height + (gud-basic-call (format "set height %s" gud-pager-height))) (run-hooks 'gud-gdb-mode-hook)) ;; The completion process filter indicates when it is finished. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 21 10:04:04 2020 Received: (at 21777) by debbugs.gnu.org; 21 Sep 2020 14:04:04 +0000 Received: from localhost ([127.0.0.1]:55488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKMQF-0003wh-P0 for submit@debbugs.gnu.org; Mon, 21 Sep 2020 10:04:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKMQD-0003wD-EH for 21777@debbugs.gnu.org; Mon, 21 Sep 2020 10:04:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57490) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKMQ6-00085r-8X; Mon, 21 Sep 2020 10:03:54 -0400 Received: from [176.228.60.248] (port=2326 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kKMQ3-0002bO-R4; Mon, 21 Sep 2020 10:03:52 -0400 Date: Mon, 21 Sep 2020 17:03:53 +0300 Message-Id: <831rivz0om.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <878sd4jgev.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 20 Sep 2020 23:18:32 +0200) Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Lars Ingebrigtsen > Cc: Dima Kogan , 21777@debbugs.gnu.org, > schwab@linux-m68k.org > Date: Sun, 20 Sep 2020 23:18:32 +0200 > > Eli Zaretskii writes: > > > IME, users sometimes have some use cases that look really weird to me, > > but are somehow very important to them. So I'm trying to avoid > > stepping on their toes as much as possible, even if I cannot imagine > > those use cases in advance. > > I worked up a patch for this, but in testing, there's a number of > problems. Do you see the original problem with a recent version of GDB? In the discussion, I mentioned that the change to follow that of Emacs was installed in GDB back then, so it's reasonable to expect that we no longer have a problem described in this bug report. From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 21 10:07:35 2020 Received: (at 21777) by debbugs.gnu.org; 21 Sep 2020 14:07:35 +0000 Received: from localhost ([127.0.0.1]:55500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKMTd-000428-3E for submit@debbugs.gnu.org; Mon, 21 Sep 2020 10:07:34 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKMTN-00041h-BI for 21777@debbugs.gnu.org; Mon, 21 Sep 2020 10:07:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Bn0kpwav3NedEGirbKDgd9cVqulQxWgJPdhbygLMBG4=; b=pbjPsEgJWIWK+lWsUsG4pzJ7iD dtXucRyX2V0KyI+ZUFYDDDXOkkt1A1wzPRDMAA9c4xO2i6kQDeaovTnN8WugX1qA/TqazR9ZKvxrC 1oV7+Hl3bIinxJKSdVA7sUhrEGtf4tH6RcPHaFHLl4qIABEoxXR+9eMZFJ5H/dFC2rY8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKMTD-00051I-Hg; Mon, 21 Sep 2020 16:07:10 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEVbW190gpQqKivQ 0tb7+/yYmZ/////rhg9bAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+QJFQ4DL6G0dXgAAAG3SURBVDjL jZNBcusgDIYFrvcmHfYyfdmnBQ7QgeyhNve/ypMMxK7TzlSZTGJ9QvqRJQAQqpkxZojdYAf5BB4H zkAJpelTdFZ4GYJzITjbgKoAUL6GSCBW0Exzqn97qu4uORF4O9bYCquSs5QSVkdVNmCQUGHjVAZd P8EPm2KQDMz1AL7br8D9BcBPqajkLA9+7OBicDISjZEnwM8AkxGlkvmoCtRlLotNT/eYCxRLlp4u qMfFNvIA85ag+hcr9xrXdy46Whus9emgiiSZSlzQ8gg2k2YI8TYDyDmeeoVL5JyIZ2Cw1J+1q8og cbs0toihq0owhqKg1eJGuA3cEqClQQo30xSadQOpRi3xDv3FvzB4+2qpxZLLTUyyVYG5umnqMesP kWUbuyYXafDAiwSitx56PCTQyzRRi+QOkNfnE4TzpIRyXvurZQATwOppFejv8EiFdePGe+aQCrAD Ht9XT+cEbBfkPrUDk9BeqaR121qUWPeN14dtaUDRV6u2JMFz3+o6U8Hka2wN7quWSKmr/rJ+W05Q g/MVuAMoOg0+hmJ5GOMO9PKex3t8MiguWB9/AKwjuGfwH7KCwskKcAy4AAAAJXRFWHRkYXRlOmNy ZWF0ZQAyMDIwLTA5LTIxVDE0OjAzOjQ3KzAwOjAwX+f67gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAy MC0wOS0yMVQxNDowMzo0NyswMDowMC66QlIAAAAASUVORK5CYII= X-Now-Playing: LCD Soundsystem's _This Is Happening_: "Drunk Girls" Date: Mon, 21 Sep 2020 16:07:06 +0200 In-Reply-To: <831rivz0om.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 21 Sep 2020 17:03:53 +0300") Message-ID: <87d02fnrzp.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> I worked up a patch for this, but in testing, there's a number of >> problems. > > Do you see the original problem with a recent version of GDB? In the > discussion, I mentioned that the change to [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Eli Zaretskii writes: >> I worked up a patch for this, but in testing, there's a number of >> problems. > > Do you see the original problem with a recent version of GDB? In the > discussion, I mentioned that the change to follow that of Emacs was > installed in GDB back then, so it's reasonable to expect that we no > longer have a problem described in this bug report. No, the problem is still there -- If you say `M-x gud-gdb' and then issue a backtrace, then the gdb pager kicks in. (This problem is not present in `M-x gdb', which tells gdb to switch the pager off when it starts gdb.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 22 11:46:31 2020 Received: (at 21777) by debbugs.gnu.org; 22 Sep 2020 15:46:31 +0000 Received: from localhost ([127.0.0.1]:32989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKkUx-0001IR-2T for submit@debbugs.gnu.org; Tue, 22 Sep 2020 11:46:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKkUv-0001D5-Fm for 21777@debbugs.gnu.org; Tue, 22 Sep 2020 11:46:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52032) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKkUh-0001XP-VZ; Tue, 22 Sep 2020 11:46:17 -0400 Received: from [176.228.60.248] (port=1460 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kKkUh-00058Z-8y; Tue, 22 Sep 2020 11:46:15 -0400 Date: Tue, 22 Sep 2020 18:46:19 +0300 Message-Id: <83lfh1x19w.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87d02fnrzp.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 21 Sep 2020 16:07:06 +0200) Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Lars Ingebrigtsen > Cc: dima@secretsauce.net, 21777@debbugs.gnu.org, schwab@linux-m68k.org > Date: Mon, 21 Sep 2020 16:07:06 +0200 > > Eli Zaretskii writes: > > >> I worked up a patch for this, but in testing, there's a number of > >> problems. > > > > Do you see the original problem with a recent version of GDB? In the > > discussion, I mentioned that the change to follow that of Emacs was > > installed in GDB back then, so it's reasonable to expect that we no > > longer have a problem described in this bug report. > > No, the problem is still there -- If you say `M-x gud-gdb' and then > issue a backtrace, then the gdb pager kicks in. This is very strange. I clearly see in GDB the code to set unlimited page height. Any GDB version later than 7.10 should have this. If you invoke "M-x gud-gdb", then type "show height" at the "(gdb)" prompt in the interaction buffer, what do you see? And if you then type "show environment INSIDE_EMACS" at the "(gdb)" prompt, what do you see? From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 22 11:51:33 2020 Received: (at 21777) by debbugs.gnu.org; 22 Sep 2020 15:51:33 +0000 Received: from localhost ([127.0.0.1]:33030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKkZo-0002Fi-PW for submit@debbugs.gnu.org; Tue, 22 Sep 2020 11:51:32 -0400 Received: from quimby.gnus.org ([95.216.78.240]:33492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKkZn-0002FK-Bc for 21777@debbugs.gnu.org; Tue, 22 Sep 2020 11:51:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=t3ehTgTqa8KWHG0t3aBgPPFfbxUS3QDOLejKob86V/A=; b=U8zfKaR6fqcXbceQwvYqzaOmV4 YDxAk3gI+9eyxr3V6gBwW4rBAmVNQOMY52/W/54ELrsra8FNZoYsUb35p7rP7DI7J+jnTsO7jVIvP 1JsZDrNrl6/JKZWIMbo2Mfo+MOlZ9vBlEPCaRbQvtMOVLYtLy1JqKCqUl1EBdNIbBi0U=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKkZe-0004Ma-30; Tue, 22 Sep 2020 17:51:24 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAKlBMVEX+/v399a788ZX9 5Sr82wb+4wf73Rj9++X+4xf63iL9+dD862/750r///8GKdodAAAAAWJLR0QN9rRh9QAAAAd0SU1F B+QJFg8xKMHXcXMAAAGLSURBVDjLY2DABRiVsAIGBmYXCHANBQMoz62AgTktLa0DHXQ2QyTS2tBl YBJpGbgkOoiV6CSoI4MOErgsz8AhgSEO14FVIhOLWfDQhcq0oupIyYRKtDabQsVnACWKqorSN6pk Votv0YpZXmi1tUv1uEbQCpBE5YYDu0SSuRcsVTeQOLBdtV1UoDiwAiRRrWUAklhUo7XB1NhctUuD uxoiwVgFlli9S0vhdPl21S4dZimIREmC+i4RT+5F7Qs3HDHYrhquxFVgVBoB0rHggBbjau4iJ64o JoXdTMsPbD6gxLVoAQP3Jp3s00o6m/cE7+7YKG2xUdnaonuPkjbQHy5uKWkuHh6hHUAIRBGtzRYd HUCjeDKnoQZWc4cxEMCDBCUcm5ElUIKxGRGI6DJIEh1ESXTikeDJxCuBJV2BJDDSAkRiGg6JtEzs yQdoFJIFbVBFIInOmTOQlELd0QmWgAlmtMEdCJaYATMEFmhAnAmUaJ45E1UCJJMMDJKIttQQF3QA LDKYdmMFOAslBgASROnlzv3xNwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0wOS0yMlQxNTo0OToz OSswMDowMFa4BpYAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDktMjJUMTU6NDk6MzkrMDA6MDAn 5b4qAAAAAElFTkSuQmCC X-Now-Playing: Pet Shop Boys's _Bilingual_: "A red letter day" Date: Tue, 22 Sep 2020 17:51:20 +0200 In-Reply-To: <83lfh1x19w.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 22 Sep 2020 18:46:19 +0300") Message-ID: <87r1qternr.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> No, the problem is still there -- If you say `M-x gud-gdb' and then >> issue a backtrace, then the gdb pager kicks in. > > This is very strange. I clearly see in GDB the code to set unlimited > pag [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Eli Zaretskii writes: >> No, the problem is still there -- If you say `M-x gud-gdb' and then >> issue a backtrace, then the gdb pager kicks in. > > This is very strange. I clearly see in GDB the code to set unlimited > page height. Any GDB version later than 7.10 should have this. > > If you invoke "M-x gud-gdb", then type "show height" at the "(gdb)" > prompt in the interaction buffer, what do you see? > > And if you then type "show environment INSIDE_EMACS" at the "(gdb)" > prompt, what do you see? Aha! (gdb) show height Number of lines gdb thinks are in a page is unlimited. (gdb) show environment INSIDE_EMACS INSIDE_EMACS = 28.0.50,comint It is indeed unlimited... but if I change the size of the frame: (gdb) show height Number of lines gdb thinks are in a page is 35. So Emacs is somehow telling gdb to set the height when the frame size changes. I tried grepping for that yesterday, but I was unable to see what triggers that. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 22 11:57:24 2020 Received: (at 21777) by debbugs.gnu.org; 22 Sep 2020 15:57:24 +0000 Received: from localhost ([127.0.0.1]:33045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKkfT-0002PK-W9 for submit@debbugs.gnu.org; Tue, 22 Sep 2020 11:57:24 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:49049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKkfR-0002PA-H0 for 21777@debbugs.gnu.org; Tue, 22 Sep 2020 11:57:23 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4BwmCh16KJz1rtyj; Tue, 22 Sep 2020 17:57:19 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4BwmCg5pr9z1r56W; Tue, 22 Sep 2020 17:57:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id h0zaxy9p1O9h; Tue, 22 Sep 2020 17:57:19 +0200 (CEST) X-Auth-Info: RH4PDTbGyFHhWIPfsvTpYqlEcRUzoOw2QzXWdzCLRvmKExzSKDK8F7s4gdiXJk/C Received: from igel.home (ppp-46-244-171-76.dynamic.mnet-online.de [46.244.171.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 22 Sep 2020 17:57:18 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 824962C28E9; Tue, 22 Sep 2020 17:57:18 +0200 (CEST) From: Andreas Schwab To: Lars Ingebrigtsen Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> X-Yow: It's hard being an ARTIST!! Date: Tue, 22 Sep 2020 17:57:18 +0200 In-Reply-To: <87r1qternr.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 22 Sep 2020 17:51:20 +0200") Message-ID: <87wo0lpzxd.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 21777 Cc: Eli Zaretskii , 21777@debbugs.gnu.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.4 (-) On Sep 22 2020, Lars Ingebrigtsen wrote: > So Emacs is somehow telling gdb to set the height when the frame size > changes. I tried grepping for that yesterday, but I was unable to see > what triggers that. It's the normal SIGWINCH handling. Works the same in any resizable terminal. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 22 12:09:07 2020 Received: (at 21777) by debbugs.gnu.org; 22 Sep 2020 16:09:07 +0000 Received: from localhost ([127.0.0.1]:33070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKkqp-0004qv-AJ for submit@debbugs.gnu.org; Tue, 22 Sep 2020 12:09:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKkqn-0004qS-S4 for 21777@debbugs.gnu.org; Tue, 22 Sep 2020 12:09:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52508) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKkqh-0006Zd-Mc; Tue, 22 Sep 2020 12:08:59 -0400 Received: from [176.228.60.248] (port=3156 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kKkqg-0000dT-Qo; Tue, 22 Sep 2020 12:08:59 -0400 Date: Tue, 22 Sep 2020 19:09:02 +0300 Message-Id: <83imc5x081.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87r1qternr.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 22 Sep 2020 17:51:20 +0200) Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Lars Ingebrigtsen > Cc: dima@secretsauce.net, 21777@debbugs.gnu.org, schwab@linux-m68k.org > Date: Tue, 22 Sep 2020 17:51:20 +0200 > > (gdb) show height > Number of lines gdb thinks are in a page is unlimited. > (gdb) show environment INSIDE_EMACS > INSIDE_EMACS = 28.0.50,comint > > It is indeed unlimited... but if I change the size of the frame: > > (gdb) show height > Number of lines gdb thinks are in a page is 35. > > So Emacs is somehow telling gdb to set the height when the frame size > changes. I tried grepping for that yesterday, but I was unable to see > what triggers that. That's a different problem, then. I think it is related to window-adjust-process-window-size-function and set-process-window-size, introduced in Emacs 25. I guess gud-gdb should disable that feature. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 22 12:20:00 2020 Received: (at 21777) by debbugs.gnu.org; 22 Sep 2020 16:20:00 +0000 Received: from localhost ([127.0.0.1]:33088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKl1M-000589-9u for submit@debbugs.gnu.org; Tue, 22 Sep 2020 12:20:00 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:49878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKl1J-00057z-NZ for 21777@debbugs.gnu.org; Tue, 22 Sep 2020 12:19:58 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Bwmjm27XRz1qrfP; Tue, 22 Sep 2020 18:19:56 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Bwmjm0NhRz1r56j; Tue, 22 Sep 2020 18:19:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id DXOfQ_46rvni; Tue, 22 Sep 2020 18:19:55 +0200 (CEST) X-Auth-Info: h5qYTQ92lUbOkXHf6ZgmCsYAsKO7g2UxTp5v4DyfwT6Dh71YKRFEd98O/ILyDqx6 Received: from igel.home (ppp-46-244-171-76.dynamic.mnet-online.de [46.244.171.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 22 Sep 2020 18:19:55 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id CAB292C28E9; Tue, 22 Sep 2020 18:19:54 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.org> X-Yow: RELATIVES!! Date: Tue, 22 Sep 2020 18:19:54 +0200 In-Reply-To: <83imc5x081.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 22 Sep 2020 19:09:02 +0300") Message-ID: <87sgb9pyvp.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 21777 Cc: Lars Ingebrigtsen , 21777@debbugs.gnu.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.4 (-) On Sep 22 2020, Eli Zaretskii wrote: > That's a different problem, then. I think it is related to > window-adjust-process-window-size-function and > set-process-window-size, introduced in Emacs 25. I guess gud-gdb > should disable that feature. It's really a bug in gdb, as just sending SIGWINCH to gdb will trigger this. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 22 12:51:56 2020 Received: (at 21777) by debbugs.gnu.org; 22 Sep 2020 16:51:56 +0000 Received: from localhost ([127.0.0.1]:33154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKlWF-0005xk-II for submit@debbugs.gnu.org; Tue, 22 Sep 2020 12:51:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKlVz-0005xF-2U for 21777@debbugs.gnu.org; Tue, 22 Sep 2020 12:51:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53684) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKlVs-0005RD-Ul; Tue, 22 Sep 2020 12:51:32 -0400 Received: from [176.228.60.248] (port=1799 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kKlVs-0006Kw-9W; Tue, 22 Sep 2020 12:51:32 -0400 Date: Tue, 22 Sep 2020 19:51:37 +0300 Message-Id: <83a6xhwy92.fsf@gnu.org> From: Eli Zaretskii To: Andreas Schwab In-Reply-To: <87sgb9pyvp.fsf@igel.home> (message from Andreas Schwab on Tue, 22 Sep 2020 18:19:54 +0200) Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.org> <87sgb9pyvp.fsf@igel.home> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21777 Cc: larsi@gnus.org, 21777@debbugs.gnu.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Andreas Schwab > Cc: Lars Ingebrigtsen , dima@secretsauce.net, > 21777@debbugs.gnu.org > Date: Tue, 22 Sep 2020 18:19:54 +0200 > > On Sep 22 2020, Eli Zaretskii wrote: > > > That's a different problem, then. I think it is related to > > window-adjust-process-window-size-function and > > set-process-window-size, introduced in Emacs 25. I guess gud-gdb > > should disable that feature. > > It's really a bug in gdb, as just sending SIGWINCH to gdb will trigger > this. So you are saying that when INSIDE_EMACS is set, GDB should disable the Readline's SIGWINCH handler? From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 22 13:19:01 2020 Received: (at 21777) by debbugs.gnu.org; 22 Sep 2020 17:19:01 +0000 Received: from localhost ([127.0.0.1]:33228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKlwT-0006dn-5T for submit@debbugs.gnu.org; Tue, 22 Sep 2020 13:19:01 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:45996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKlwO-0006da-Jj for 21777@debbugs.gnu.org; Tue, 22 Sep 2020 13:18:59 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Bwp1q34bsz1qrfD; Tue, 22 Sep 2020 19:18:55 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Bwp1q2WSsz1r56l; Tue, 22 Sep 2020 19:18:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id f_KeP6VKTPnR; Tue, 22 Sep 2020 19:18:54 +0200 (CEST) X-Auth-Info: YzUw+Hmt8D4xw8dqAEO/N/4in/s37cuRUP+KpfOy2WMtH5y8/IkEXwpANjbJ82/E Received: from igel.home (ppp-46-244-171-76.dynamic.mnet-online.de [46.244.171.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 22 Sep 2020 19:18:54 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 1D0CD2C2857; Tue, 22 Sep 2020 19:18:54 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.org> <87sgb9pyvp.fsf@igel.home> <83a6xhwy92.fsf@gnu.org> X-Yow: I smell like a wet reducing clinic on Columbus Day! Date: Tue, 22 Sep 2020 19:18:54 +0200 In-Reply-To: <83a6xhwy92.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 22 Sep 2020 19:51:37 +0300") Message-ID: <87o8lxpw5d.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 21777 Cc: larsi@gnus.org, 21777@debbugs.gnu.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.4 (-) On Sep 22 2020, Eli Zaretskii wrote: > So you are saying that when INSIDE_EMACS is set, GDB should disable > the Readline's SIGWINCH handler? No, it should never override an unlimited height setting via SIGWINCH. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 22 13:40:03 2020 Received: (at 21777) by debbugs.gnu.org; 22 Sep 2020 17:40:03 +0000 Received: from localhost ([127.0.0.1]:33248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKmGp-0000q2-1N for submit@debbugs.gnu.org; Tue, 22 Sep 2020 13:40:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKmGm-0000pW-Ti for 21777@debbugs.gnu.org; Tue, 22 Sep 2020 13:40:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54480) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKmGg-0003KU-O6; Tue, 22 Sep 2020 13:39:54 -0400 Received: from [176.228.60.248] (port=4755 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kKmGg-0006t2-7M; Tue, 22 Sep 2020 13:39:54 -0400 Date: Tue, 22 Sep 2020 20:39:58 +0300 Message-Id: <835z85ww0h.fsf@gnu.org> From: Eli Zaretskii To: Andreas Schwab In-Reply-To: <87o8lxpw5d.fsf@igel.home> (message from Andreas Schwab on Tue, 22 Sep 2020 19:18:54 +0200) Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.org> <87sgb9pyvp.fsf@igel.home> <83a6xhwy92.fsf@gnu.org> <87o8lxpw5d.fsf@igel.home> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 21777 Cc: larsi@gnus.org, 21777@debbugs.gnu.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Andreas Schwab > Cc: larsi@gnus.org, dima@secretsauce.net, 21777@debbugs.gnu.org > Date: Tue, 22 Sep 2020 19:18:54 +0200 > > On Sep 22 2020, Eli Zaretskii wrote: > > > So you are saying that when INSIDE_EMACS is set, GDB should disable > > the Readline's SIGWINCH handler? > > No, it should never override an unlimited height setting via SIGWINCH. I'm not sure I agree: how is an unlimited setting different from any other setting? Any setting can be overridden to replace it with a different setting. Anyway, this discussion belongs on the GDB mailing list, not here. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 22 13:46:35 2020 Received: (at 21777) by debbugs.gnu.org; 22 Sep 2020 17:46:35 +0000 Received: from localhost ([127.0.0.1]:33262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKmN6-0000zu-4s for submit@debbugs.gnu.org; Tue, 22 Sep 2020 13:46:35 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:59699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKmN4-0000zl-Rd for 21777@debbugs.gnu.org; Tue, 22 Sep 2020 13:46:31 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Bwpdd4YjVz1qs0J; Tue, 22 Sep 2020 19:46:29 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Bwpdd48pwz1r56p; Tue, 22 Sep 2020 19:46:29 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id nwfpyFpLFFMR; Tue, 22 Sep 2020 19:46:28 +0200 (CEST) X-Auth-Info: wIqDrTusosPD2wRZjruq2ragAHniQh4xvoYDbhXl1kVGBmLkXnOKp8Pg37KdSjvb Received: from igel.home (ppp-46-244-171-76.dynamic.mnet-online.de [46.244.171.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 22 Sep 2020 19:46:28 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 43C242C2857; Tue, 22 Sep 2020 19:46:28 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.org> <87sgb9pyvp.fsf@igel.home> <83a6xhwy92.fsf@gnu.org> <87o8lxpw5d.fsf@igel.home> <835z85ww0h.fsf@gnu.org> X-Yow: So this is what it feels like to be potato salad Date: Tue, 22 Sep 2020 19:46:28 +0200 In-Reply-To: <835z85ww0h.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 22 Sep 2020 20:39:58 +0300") Message-ID: <87k0wlpuvf.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 21777 Cc: larsi@gnus.org, 21777@debbugs.gnu.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.4 (-) On Sep 22 2020, Eli Zaretskii wrote: >> From: Andreas Schwab >> Cc: larsi@gnus.org, dima@secretsauce.net, 21777@debbugs.gnu.org >> Date: Tue, 22 Sep 2020 19:18:54 +0200 >> >> On Sep 22 2020, Eli Zaretskii wrote: >> >> > So you are saying that when INSIDE_EMACS is set, GDB should disable >> > the Readline's SIGWINCH handler? >> >> No, it should never override an unlimited height setting via SIGWINCH. > > I'm not sure I agree: how is an unlimited setting different from any > other setting? It is special, as it never matches any real terminal size. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 23 08:54:11 2020 Received: (at 21777) by debbugs.gnu.org; 23 Sep 2020 12:54:11 +0000 Received: from localhost ([127.0.0.1]:34770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL4Hi-0001vw-Uh for submit@debbugs.gnu.org; Wed, 23 Sep 2020 08:54:11 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL4Hf-0001vL-PH for 21777@debbugs.gnu.org; Wed, 23 Sep 2020 08:54:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cdCQqE8AGJgdRsbcztw3aCsye8fD4gX5WRqX5noFzIU=; b=Bf7Llch5F3/cCJgk3wuJ7ThfrZ ST3ciApwi6IwC0EtOp2JcAVqEoiuQU3BTF0mHtDbOMmteSUEb5TjoMoI2KdJqfvyMA3jY9Q6Cgi6E 7SQcEp9uIk7H+sydmgz+CQKoaypuUb9t1SBVFj1aRw5SxbZhW20w8hMsd+k0FN6KsnPo=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kL4HS-0007bQ-U8; Wed, 23 Sep 2020 14:54:00 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUpKCYfHRxIRjxR UEhAPjpqaWKEgnn///8ghV9sAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+QJFwwgNtL7tjwAAAGISURB VDjLnZO/csMgDMaFCZlxfN4pNDuHTpm7dM+Z4wl66fs/QiXiJPhPlmoAW79In/hwAJpQvQT0FsDC BthVsgan9wFYxWkFe2Qv3TkAHZdEBsEUe4dfIbYNOgCTUrT8C90WUClXE1JaC9jJewaIa9UhJR8N pQraViYFboXbCgY4GY/oYOmS8azxzcuHvEUI2jbgiBhU1MjgKWNugThFSV5cO0Apctwhir/s/lNG 0VWex+vGvlJTl5dLh/vkNEkryv5h6UN78ucSeV0fkKdNIRf2Ki3yKjDw4YdBWMgr9D5MHQrIrSGQ vKeb0WkD+Dbo93zikpBfNw1wqhU0YGD3WzByRXA4iFRpO41c4RWNxPsCGAGAI66AOnoBWVotwUWA yiOtgSQ+gYZd4MBY2akF5Q4gr0G+gyg7tpbkOpW+duxytM1NVeAAxUzXHlBOLCUgaxu6FD40P3QM VM9/XWUfUphnoDQZIsL5JlWvJ9lZIhByPj4/JEUzmFs1Flc1eBPdO3CAf0bV/gPFW0REvhNm3gAA ACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0wOS0yM1QxMjozMjo1NCswMDowMPPAF2wAAAAldEVYdGRh dGU6bW9kaWZ5ADIwMjAtMDktMjNUMTI6MzI6NTQrMDA6MDCCna/QAAAAAElFTkSuQmCC X-Now-Playing: Herbert's _Bodily Functions_: "Suddenly" Date: Wed, 23 Sep 2020 14:53:53 +0200 In-Reply-To: <83imc5x081.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 22 Sep 2020 19:09:02 +0300") Message-ID: <87y2l0d57i.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > That's a different problem, then. I think it is related to > window-adjust-process-window-size-function and > set-process-window-size, introduced in Emacs 25. I guess gud-gdb > should disable that f [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Eli Zaretskii writes: > That's a different problem, then. I think it is related to > window-adjust-process-window-size-function and > set-process-window-size, introduced in Emacs 25. I guess gud-gdb > should disable that feature. But if the user has the pager enabled, then Emacs should notify gdb about the size change... Andreas Schwab writes: >> I'm not sure I agree: how is an unlimited setting different from any >> other setting? > > It is special, as it never matches any real terminal size. Indeed. If gdb has disabled the pager, then Emacs telling gdb about the changed size shouldn't enable the pager. But I'm still not sure this is actually what is going on, because I'm just not finding exactly where this happens. For instance, `window--adjust-process-windows' is never called in buffers started with `M-x gud-gdb'... and adjusting the frame size in a buffer started with `M-x gdb' does not make gdb switch the pager on. And debug-on-entry on set-process-window-size isn't triggered, either. Grepping for SIGWINCH doesn't immediately give me any clues, either. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 23 10:41:11 2020 Received: (at 21777) by debbugs.gnu.org; 23 Sep 2020 14:41:11 +0000 Received: from localhost ([127.0.0.1]:37433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL5xG-0006PT-Qn for submit@debbugs.gnu.org; Wed, 23 Sep 2020 10:41:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL5xE-0006PE-5Z for 21777@debbugs.gnu.org; Wed, 23 Sep 2020 10:41:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45636) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kL5x6-0006ak-WD; Wed, 23 Sep 2020 10:41:01 -0400 Received: from [176.228.60.248] (port=2166 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kL5x6-0006r1-Bk; Wed, 23 Sep 2020 10:41:00 -0400 Date: Wed, 23 Sep 2020 17:41:06 +0300 Message-Id: <83mu1gv9ml.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87y2l0d57i.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 23 Sep 2020 14:53:53 +0200) Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.org> <87y2l0d57i.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Lars Ingebrigtsen > Cc: dima@secretsauce.net, 21777@debbugs.gnu.org, schwab@linux-m68k.org > Date: Wed, 23 Sep 2020 14:53:53 +0200 > > But I'm still not sure this is actually what is going on, because I'm > just not finding exactly where this happens. For instance, > `window--adjust-process-windows' is never called in buffers started with > `M-x gud-gdb'... and adjusting the frame size in a buffer started with > `M-x gdb' does not make gdb switch the pager on. The value of window-adjust-process-window-size-function in the GUD buffer is window-adjust-process-window-size-smallest. Did you try to trace that function? > Grepping for SIGWINCH doesn't immediately give me any clues, either. We don't send SIGWINCH, we use IOCTL, AFAIR. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 24 10:15:42 2020 Received: (at 21777) by debbugs.gnu.org; 24 Sep 2020 14:15:42 +0000 Received: from localhost ([127.0.0.1]:41125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLS2A-0001iz-4m for submit@debbugs.gnu.org; Thu, 24 Sep 2020 10:15:42 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLS28-0001im-BM for 21777@debbugs.gnu.org; Thu, 24 Sep 2020 10:15:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=n6fTz08BaPeW51RLYaeRBVKSnBJ1voOdL7pyR9rX018=; b=k8F3jnVq1WoBbEMAf3yOyIZDeO 8aKjr9MOiqsdvrhAAvcT5sNHmfnDcj0rCDEKJjMORv14siUXQDgXV/IKV8YqFJ+dqS3Me4Sz5vmdH pWOOFGxgfjr4RhBkVGTLwhuDEvJT8B24EuQseE82vleW4E9O7+opD/DmlWkEJZgmw5+0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLS1y-00079x-Np; Thu, 24 Sep 2020 16:15:33 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.org> <87y2l0d57i.fsf@gnus.org> <83mu1gv9ml.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEX59fDgy9/QtdS4 jsObYa7////LZt21AAAAAWJLR0QF+G/pxwAAAAd0SU1FB+QJGA0gMow3CEQAAAGpSURBVDjLfVSL kYQgDCVuAyQ2YGAbEGlAof+aLiSA3u3OZWZdzPPlT5xDFWJiRkKvb4zOQTDhgIHk2WVzi+io6UWL 3I5kAIT5GWMQK08GE6KZk9MAhOjdLaBPMob7kD/AzZTQnwDiNgDUqG5gcIgU6K/gp60ebjcAUo9+ CuzdejMk836K/E+4dAOAN+CfwJOB8uMR7SiIU+XNkPJF/60krXkPHxPABsE3gJLY6plbHmYYYNrS zJffjTLhZorVFBAjJuwcEgZ1oBbMeaeDrewz81etfMX9XZM1qvngDuyx7rlegzGBpEAqVoRt1OpV j/Ndz3xco7UdWGrhXMWHAsvNgPeOsTAlmo2iUXaZKz8mUZRkKYFEuCYkK8OiPvQIR0KJeK2nAswD eJ2ZajlD1HAXSbD7eF051XLlXPqIKasBaT0llePoCXoNuQEl7g9AGMAWVc0c67bma/jopmQqWz/g 8KOIMOfqOXDSKKAvk7jIxZEOIkK7yLYV/GgU2YUPQfaFjGz714+kLLYA2gJpElh3iY6PEdQaygYg Qut52yJsa4b0a9Hw56wN+QHLNkp6R8zzFQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0wOS0yNFQx MzozMjo0OSswMDowMH7SV8IAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDktMjRUMTM6MzI6NDkr MDA6MDAPj+9+AAAAAElFTkSuQmCC X-Now-Playing: Fairport Convention's _Liege & Lief_: "Crazy Man Michael" Date: Thu, 24 Sep 2020 16:15:29 +0200 In-Reply-To: <83mu1gv9ml.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 23 Sep 2020 17:41:06 +0300") Message-ID: <87a6xfb6ri.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > The value of window-adjust-process-window-size-function in the GUD > buffer is window-adjust-process-window-size-smallest. Did you try to > trace that function? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Eli Zaretskii writes: > The value of window-adjust-process-window-size-function in the GUD > buffer is window-adjust-process-window-size-smallest. Did you try to > trace that function? I tried that now, and debug-on-entry-ing that function does not result in that function giving a backtrace... AAARGH! It's, once again, the problem of the debugger not being allowed to be called when inhibit-redisplay is bound, which is seems to be here. I wish we could fix that, or at least have `debug' say "Not entering the debugger because inhibit-redisplay is set"... Anyway, set-process-window-size is indeed called in M-x gud-gdb buffers. So does M-x gdb buffers... but in that case, gdb just seems to ignore it, as it should. So M-x gdb sets up gdb in a way that gud-gdb doesn't. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 24 10:16:59 2020 Received: (at 21777) by debbugs.gnu.org; 24 Sep 2020 14:17:00 +0000 Received: from localhost ([127.0.0.1]:41132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLS3L-0001lP-Pe for submit@debbugs.gnu.org; Thu, 24 Sep 2020 10:16:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLS3J-0001lC-Sj for 21777@debbugs.gnu.org; Thu, 24 Sep 2020 10:16:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33703) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLS3D-0002JF-6E; Thu, 24 Sep 2020 10:16:47 -0400 Received: from [176.228.60.248] (port=1328 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLS3C-0000lT-IC; Thu, 24 Sep 2020 10:16:47 -0400 Date: Thu, 24 Sep 2020 17:16:54 +0300 Message-Id: <835z83uund.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87y2l0d57i.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 23 Sep 2020 14:53:53 +0200) Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.org> <87y2l0d57i.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) > From: Lars Ingebrigtsen > Cc: dima@secretsauce.net, 21777@debbugs.gnu.org, schwab@linux-m68k.org > Date: Wed, 23 Sep 2020 14:53:53 +0200 > > Andreas Schwab writes: > > >> I'm not sure I agree: how is an unlimited setting different from any > >> other setting? > > > > It is special, as it never matches any real terminal size. > > Indeed. If gdb has disabled the pager, then Emacs telling gdb about the > changed size shouldn't enable the pager. Such a change is already being considered for inclusion in GDB, see https://sourceware.org/pipermail/gdb-patches/2020-September/172031.html From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 24 10:29:20 2020 Received: (at 21777) by debbugs.gnu.org; 24 Sep 2020 14:29:20 +0000 Received: from localhost ([127.0.0.1]:41168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLSFM-000269-AM for submit@debbugs.gnu.org; Thu, 24 Sep 2020 10:29:20 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLSFK-00025w-M9 for 21777@debbugs.gnu.org; Thu, 24 Sep 2020 10:29:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=EYeeoVBYvH8jgfyjnyiH4Vy6zlWDhkRQFdaw6ZiocWk=; b=Y7BMQhyO7KgK4EDIOdspCrt6f1 pxzinWTf/z9755HQGnKH7aQXzG5K6ABdpxuJWyFH7K6YykttJYB/+0eW2YWhYDmSGnMhGVFl3rmRD S6FdQ/uZ/1cMk2rcHbSDihlG/y7HswYbAVl23381SR88bXddPdIUltrfXlokuCLjf/Oc=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLSF9-0007GK-La; Thu, 24 Sep 2020 16:29:12 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.org> <87y2l0d57i.fsf@gnus.org> <835z83uund.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEVTODshICCsnFCv HzP///9TMJGcAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+QJGA4cBUU/au0AAAFQSURBVDjLjZQLjsQg CIZBL4DjBRq8AFPvf7cFfFTdZrMk03T4Cj8oCoDghoCpG12IH3eGhibgWAOMf2n6HdwP6E57QPkN kjloS9UCYv2mlBE+Bwhcqr+8gPIHIOwgygLuB1CtvQkKhReNDdw3PhoTADDfi3iWARKzLIBopEqh 4FbuTBX5eutD1z6coGUjDHKA2nPSrqGFdR1KO6ign47iFpAFwLRnfQNEBaRLo3G7Rq1Koj5pj9Bv 1Wm/Q8OB2wHyBLiDOPzf9E8wMx3iph3fNBRIfgfaeXwHtQEep6QDbVqkAThBs8sBPCOqPvByww7a GtrqFvFpQoLZn0Q7pkV7Jx2WMbsGSDMEi0hAySNy2wzTpdgiwIFvkXaCNu5LKqrY1BVg6OtrETpS ee7eGAID0nfQO4AFmAk50INz4QagnSqAi/t4+L1D/WoyY778QvoBM55fG1JyVN0AAAAldEVYdGRh dGU6Y3JlYXRlADIwMjAtMDktMjRUMTQ6Mjg6MDQrMDA6MDAwkHGpAAAAJXRFWHRkYXRlOm1vZGlm eQAyMDIwLTA5LTI0VDE0OjI4OjA0KzAwOjAwQc3JFQAAAABJRU5ErkJggg== X-Now-Playing: =?utf-8?Q?V=C3=A9ronique?= Vincent & Aksak Maboul's _Ex-Futur Album_: "Afflux de Luxe" Date: Thu, 24 Sep 2020 16:29:06 +0200 In-Reply-To: <835z83uund.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 24 Sep 2020 17:16:54 +0300") Message-ID: <875z83b64t.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > Such a change is already being considered for inclusion in GDB, see > > https://sourceware.org/pipermail/gdb-patches/2020-September/172031.html Great. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Eli Zaretskii writes: > Such a change is already being considered for inclusion in GDB, see > > https://sourceware.org/pipermail/gdb-patches/2020-September/172031.html Great. And I'm guessing that the pager doesn't get switched on in the M-x gdb case because the communication is over a separate socket (-i=mi), and gdb just ignores the notification in that case? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 24 11:07:01 2020 Received: (at 21777) by debbugs.gnu.org; 24 Sep 2020 15:07:02 +0000 Received: from localhost ([127.0.0.1]:41253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLSpp-0005BF-Eh for submit@debbugs.gnu.org; Thu, 24 Sep 2020 11:07:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLSpn-0005B3-2e for 21777@debbugs.gnu.org; Thu, 24 Sep 2020 11:06:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34581) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLSph-00023v-8e; Thu, 24 Sep 2020 11:06:53 -0400 Received: from [176.228.60.248] (port=4374 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLSpX-0002ln-6d; Thu, 24 Sep 2020 11:06:43 -0400 Date: Thu, 24 Sep 2020 18:06:52 +0300 Message-Id: <83pn6btdrn.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87a6xfb6ri.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 24 Sep 2020 16:15:29 +0200) Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.org> <87y2l0d57i.fsf@gnus.org> <83mu1gv9ml.fsf@gnu.org> <87a6xfb6ri.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Lars Ingebrigtsen > Cc: dima@secretsauce.net, 21777@debbugs.gnu.org, schwab@linux-m68k.org > Date: Thu, 24 Sep 2020 16:15:29 +0200 > > Anyway, set-process-window-size is indeed called in M-x gud-gdb > buffers. So does M-x gdb buffers... but in that case, gdb just seems > to ignore it, as it should. So M-x gdb sets up gdb in a way that > gud-gdb doesn't. Yes, "M-x gdb" doesn't start Readline in GDB, and so GDB doesn't think it runs with output to a terminal device. "M-x gud-gdb", OTOH, invokes GDB as an interactive program via PTY. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 24 11:08:18 2020 Received: (at 21777) by debbugs.gnu.org; 24 Sep 2020 15:08:18 +0000 Received: from localhost ([127.0.0.1]:41257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLSr3-0005DO-Ty for submit@debbugs.gnu.org; Thu, 24 Sep 2020 11:08:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLSr2-0005DC-O6 for 21777@debbugs.gnu.org; Thu, 24 Sep 2020 11:08:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34606) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLSqx-0002Fb-Gc; Thu, 24 Sep 2020 11:08:11 -0400 Received: from [176.228.60.248] (port=4463 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLSqw-0002rS-2k; Thu, 24 Sep 2020 11:08:10 -0400 Date: Thu, 24 Sep 2020 18:08:19 +0300 Message-Id: <83o8lvtdp8.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <875z83b64t.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 24 Sep 2020 16:29:06 +0200) Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.org> <87y2l0d57i.fsf@gnus.org> <835z83uund.fsf@gnu.org> <875z83b64t.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Lars Ingebrigtsen > Cc: dima@secretsauce.net, 21777@debbugs.gnu.org, schwab@linux-m68k.org > Date: Thu, 24 Sep 2020 16:29:06 +0200 > > And I'm guessing that the pager doesn't get switched on in the M-x gdb > case because the communication is over a separate socket (-i=mi), and > gdb just ignores the notification in that case? In the -i=mi case, GDB doesn't behave as if its output is a terminal device. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 25 05:55:42 2020 Received: (at 21777) by debbugs.gnu.org; 25 Sep 2020 09:55:42 +0000 Received: from localhost ([127.0.0.1]:42694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLkS6-0007MT-4S for submit@debbugs.gnu.org; Fri, 25 Sep 2020 05:55:42 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLkS4-0007MC-FP for 21777@debbugs.gnu.org; Fri, 25 Sep 2020 05:55:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uPd14kEde2lO9IzlH7xC4qrA2i4WRjX7P3hlKs67GWs=; b=iZ8BEryGQYWGkIuud6lmRfCjaJ J08KsJsYIOEUyqaCAbE/ZoMyr+oUzluxYO3f/jnVN8D18aXKxh8E60xagLlKEdNn3yxlIqubPwrrY I7MVd3s+bZjvI/tSImiAluywX6LwCIFhqciy7abvkLbhv4opAJCfVyWCCujKjk30dUx0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLkRn-0000qk-Vz; Fri, 25 Sep 2020 11:55:33 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> <87pozxgu3d.fsf@secretsauce.net> <87mvv1ggwo.fsf@secretsauce.net> <83a8r022k9.fsf@gnu.org> <87lhakhg81.fsf@secretsauce.net> <838u6k1z28.fsf@gnu.org> <878sd4jgev.fsf@gnus.org> <831rivz0om.fsf@gnu.org> <87d02fnrzp.fsf@gnus.org> <83lfh1x19w.fsf@gnu.org> <87r1qternr.fsf@gnus.org> <83imc5x081.fsf@gnu.org> <87y2l0d57i.fsf@gnus.org> <83mu1gv9ml.fsf@gnu.org> <87a6xfb6ri.fsf@gnus.org> <83pn6btdrn.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEXXnlrDt7BaLSqw RzEvJCgNCAx8eIRdVFX////3Dm9OAAAAAWJLR0QIht6VegAAAAd0SU1FB+QJGQklNdCRphsAAAG2 SURBVDjLldRLj5swEADgSSJlr8yqYs+1odzDqr22xGTuxJNcy6oL1w1y4r9f2xCFEPawI4Gl+TR+ YgAWQshEy7RGxEVUMhe5D4C1EPlrIVO8wn4AcO+NHEE1wCpAzohRDzzAUnrY6BtshwoPQlQBwMP+ NoYbP7tV6AGEL+ihDhU8gEu7pbzSBbH+O4ZVEMNMuGgCyB6WQjk4uwSdonEFmEKIzAPrjzGsUxLi R+ozfBzB2vBOCBsyQ2wDmFLv3rJulA8LAVClpuf2DnwJPGnWytCZJyXw5JqSuLwD3q9g6dtK8ySk r/A1U9j3wDOwmQc5wDSqHGI6UNvaQ2GtstYaIttl9gMAT39e6IAnZU2RiM4UJAx1tHIQO4hjpVQx PC5KCWjtpWldP9fo57EFnB3czSqehxy+zcPuy3CBd7+HD/ljDf6Efqcz4Jvv5yloDB9r+7C5HL7i 6t/j4Jnv6qA+gf5g76emgD+JWXBdaHicqSpsojW0ibbnu7zKOpkk7mr+xPeQIlKK/M1SJVnr7+wv EwBPtqkxbOqxacLVTK5wqfFFCMVUI4gJRP4fkgUodb9yDBFBH/8BdU85s9N4aKgAAAAldEVYdGRh dGU6Y3JlYXRlADIwMjAtMDktMjVUMDk6Mzc6NTMrMDA6MDD5GdWXAAAAJXRFWHRkYXRlOm1vZGlm eQAyMDIwLTA5LTI1VDA5OjM3OjUzKzAwOjAwiERtKwAAAABJRU5ErkJggg== X-Now-Playing: Thievery Corporation's _The Mirror Conspiracy_: "The Mirror Conspiracy" Date: Fri, 25 Sep 2020 11:55:22 +0200 In-Reply-To: <83pn6btdrn.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 24 Sep 2020 18:06:52 +0300") Message-ID: <87lfgyrxit.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > Yes, "M-x gdb" doesn't start Readline in GDB, and so GDB doesn't think > it runs with output to a terminal device. "M-x gud-gdb", OTOH, > invokes GDB as an interactive program via PTY. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21777 Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org, dima@secretsauce.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Eli Zaretskii writes: > Yes, "M-x gdb" doesn't start Readline in GDB, and so GDB doesn't think > it runs with output to a terminal device. "M-x gud-gdb", OTOH, > invokes GDB as an interactive program via PTY. Yup. Then I guess there's nothing here to be done on the Emacs side of things, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 25 05:55:51 2020 Received: (at control) by debbugs.gnu.org; 25 Sep 2020 09:55:51 +0000 Received: from localhost ([127.0.0.1]:42697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLkSF-0007Ms-Aw for submit@debbugs.gnu.org; Fri, 25 Sep 2020 05:55:51 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLkSD-0007Me-L3 for control@debbugs.gnu.org; Fri, 25 Sep 2020 05:55:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pH7V5C8oBZK8a24veMZzQVH72Lp9VYVTRjsDUShuVhY=; b=sMjGBN/+0PzT+07tqfbzD9rdck yRdJneHXz+jab6Hu2mxSU9jr+xDdWYAbJlUmPtZ7wYn3Tz8aKA2j84tZ6sp1B9Rg31ksZhEL7s8aE +E1HTF+yBtZ1Y/tfV2HkXTAMuFPSmvLr0HYSDETkafK0ZBsV02UlXHT9qhUpv4nJGAVE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLkS5-0000r0-TQ for control@debbugs.gnu.org; Fri, 25 Sep 2020 11:55:44 +0200 Date: Fri, 25 Sep 2020 11:55:40 +0200 Message-Id: <87k0wirxib.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #21777 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 21777 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) close 21777 quit From unknown Fri Aug 15 03:37:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 23 Oct 2020 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator