From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#21777: 25.0.50; gud-gdb uses a pager, which is harmful inside emacs Date: Thu, 29 Oct 2015 15:58:46 -0700 Message-ID: <87pozxgu3d.fsf@secretsauce.net> References: <87ziz2x0j6.fsf@secretsauce.net> <87fv0uaas1.fsf@igel.home> <87twpaha8u.fsf@secretsauce.net> <837fm53b25.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446159563 22967 80.91.229.3 (29 Oct 2015 22:59:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Oct 2015 22:59:23 +0000 (UTC) Cc: 21777@debbugs.gnu.org, schwab@linux-m68k.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 29 23:59:10 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 1ZrwA1-0002tu-Jt for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Oct 2015 23:59:09 +0100 Original-Received: from localhost ([::1]:47384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrwA1-0007ZF-0M for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Oct 2015 18:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zrw9x-0007Z9-KB for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2015 18:59:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zrw9u-0005Oa-Dc for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2015 18:59:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zrw9u-0005OF-AL for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2015 18:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zrw9u-0006Ex-1i for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2015 18:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Oct 2015 22:59:01 +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.144615953123972 (code B ref 21777); Thu, 29 Oct 2015 22:59:01 +0000 Original-Received: (at 21777) by debbugs.gnu.org; 29 Oct 2015 22:58:51 +0000 Original-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 Original-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 Original-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) Original-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 Original-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) Original-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 In-reply-to: <837fm53b25.fsf@gnu.org> 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:108157 Archived-At: 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.