From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs Date: Fri, 30 Oct 2015 09:54:57 +0200 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1446191723 21349 80.91.229.3 (30 Oct 2015 07:55:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2015 07:55:23 +0000 (UTC) Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 30 08:55:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zs4Wn-00074V-47 for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Oct 2015 08:55:13 +0100 Original-Received: from localhost ([::1]:49017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs4Wm-0007It-Ck for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Oct 2015 03:55:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs4Wi-0007H3-4A for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2015 03:55:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zs4Wc-0008N8-UA for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2015 03:55:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs4Wc-0008Mq-QR for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2015 03:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zs4Wc-0004Tv-Dl for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2015 03:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Oct 2015 07:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21777 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21777-submit@debbugs.gnu.org id=B21777.144619169717214 (code B ref 21777); Fri, 30 Oct 2015 07:55:02 +0000 Original-Received: (at 21777) by debbugs.gnu.org; 30 Oct 2015 07:54:57 +0000 Original-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 Original-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 Original-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) Original-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) In-reply-to: <87pozxgu3d.fsf@secretsauce.net> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108169 Archived-At: > 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.