GNU logs - #7461, boring messages


Message sent to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#7461: 23.2; Gdb only does tab completion inside Emacs when prompt is (gdb)
Resent-From: Rolando Pereira <finalyugi@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 21 Nov 2010 19:23:01 +0000
Resent-Message-ID: <handler.7461.B.129036733214225 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 7461
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 7461 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.129036733214225
          (code B ref -1); Sun, 21 Nov 2010 19:23:01 +0000
Received: (at submit) by debbugs.gnu.org; 21 Nov 2010 19:22:12 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PKFUJ-0003hL-Bk
	for submit <at> debbugs.gnu.org; Sun, 21 Nov 2010 14:22:12 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <finalyugi@HIDDEN>) id 1PKDth-0002JV-DK
	for submit <at> debbugs.gnu.org; Sun, 21 Nov 2010 12:40:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <finalyugi@HIDDEN>) id 1PKDyj-0004Wi-V4
	for submit <at> debbugs.gnu.org; Sun, 21 Nov 2010 12:45:30 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:53033)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <finalyugi@HIDDEN>) id 1PKDyj-0004We-N5
	for submit <at> debbugs.gnu.org; Sun, 21 Nov 2010 12:45:29 -0500
Received: from [140.186.70.92] (port=38823 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PKDyh-0003Ko-K5
	for bug-gnu-emacs@HIDDEN; Sun, 21 Nov 2010 12:45:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <finalyugi@HIDDEN>) id 1PKDyf-0004WE-Ro
	for bug-gnu-emacs@HIDDEN; Sun, 21 Nov 2010 12:45:26 -0500
Received: from smtp.fe.up.pt ([193.136.28.30]:31816)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <finalyugi@HIDDEN>) id 1PKDyf-0004Vw-JE
	for bug-gnu-emacs@HIDDEN; Sun, 21 Nov 2010 12:45:25 -0500
Received: from localhost (localhost [127.0.0.1])
	by smtp.fe.up.pt (Postfix) with ESMTP id A3D4013F75C
	for <bug-gnu-emacs@HIDDEN>; Sun, 21 Nov 2010 17:45:24 +0000 (WET)
Received: from smtp.fe.up.pt ([127.0.0.1])
	by localhost (smtp2.fe.up.pt [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id HXn5qIiQbERZ for <bug-gnu-emacs@HIDDEN>;
	Sun, 21 Nov 2010 17:45:24 +0000 (WET)
Received: from rolando-laptop (unknown [192.168.56.20])
	by smtp.fe.up.pt (Postfix) with ESMTPA id BCC8713F714
	for <bug-gnu-emacs@HIDDEN>; Sun, 21 Nov 2010 17:45:22 +0000 (WET)
Date: Sun, 21 Nov 2010 17:45:14 +0000
From: Rolando Pereira <finalyugi@HIDDEN>
Message-ID: <20101121174502.GA14674@rolando-laptop>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.18 (2008-05-17)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Spam-Score: -5.9 (-----)
X-Mailman-Approved-At: Sun, 21 Nov 2010 14:22:08 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.9 (-----)

When running gdb inside emacs, either by doing M-x gdb or M-x gud-gdb,
if the prompt is set to something that isn't "(gdb)" (or similar, see
the examples below), pressing TAB doesn't do the completion of
commands, functions or variables.

Use the following steps to reproduce the error using emacs -Q:

1) Create a new C file, for example code.c, with the following
contents:

#include <stdio.h>

int main(void) {
	printf("Hello World\n");
	return 0;
}

2) Compile code using gcc -g code.c -o code

3) Open emacs -Q

4) Start debugging the file using M-x gdb

5) Prompt should be "(gdb) ". Try to type "b ma" and press TAB. It
should expand to "b main".

6) Change gdb's prompt to something else using "set prompt". I changed
it to "gdb> ".

7) Try to type "b ma" and press TAB. It should display on the
minibuffer the message "No completions of ma".


Prompts I've tried where TAB completion still worked:

* "(gdb)"
* "        (gdb)        " (the prefix whitespace is discarded by gdb,
  so this is the same as "(gdb)        ")
* "( gdb) "
* "(gdb)_______________________"
* "(GDB) "
* "( GDB) "

Prompts I've tried where TAB completion DIDN'T work:

* "(gdb )"
* "_(gdb)"
* "(gdb "
* "gdb) "
* "( gdb )"
* "" (removed prompt by typing "set prompt" in gdb)
* "gdb> "
* "gdb>"
* "gdb "
* "gdb"
* "<gdb "
* "<gdb"

Emacs version is: GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version
2.16.1)

GDB version is: GNU gdb (GDB) 7.2




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Rolando Pereira <finalyugi@HIDDEN>
Subject: bug#7461: Acknowledgement (23.2; Gdb only does tab completion
 inside Emacs when prompt is (gdb))
Message-ID: <handler.7461.B.129036733214225.ack <at> debbugs.gnu.org>
References: <20101121174502.GA14674@rolando-laptop>
X-Gnu-PR-Message: ack 7461
X-Gnu-PR-Package: emacs
Reply-To: 7461 <at> debbugs.gnu.org
Date: Sun, 21 Nov 2010 19:23:01 +0000

Thank you for filing a new bug report with GNU.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 7461 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
7461: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7461
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#7461: 23.2; Gdb only does tab completion inside Emacs when prompt is (gdb)
Resent-From: Glenn Morris <rgm@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 23 Nov 2010 01:57:01 +0000
Resent-Message-ID: <handler.7461.B7461.129047736510842 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 7461
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Rolando Pereira <finalyugi@HIDDEN>
Cc: 7461 <at> debbugs.gnu.org
Received: via spool by 7461-submit <at> debbugs.gnu.org id=B7461.129047736510842
          (code B ref 7461); Tue, 23 Nov 2010 01:57:01 +0000
Received: (at 7461) by debbugs.gnu.org; 23 Nov 2010 01:56:05 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PKi72-0002op-GX
	for submit <at> debbugs.gnu.org; Mon, 22 Nov 2010 20:56:04 -0500
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1PKi70-0002oN-2V
	for 7461 <at> debbugs.gnu.org; Mon, 22 Nov 2010 20:56:02 -0500
Received: from localhost ([127.0.0.1]:59168)
	by fencepost.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>)
	id 1PKiC3-00031t-Aa; Mon, 22 Nov 2010 21:01:15 -0500
References: <20101121174502.GA14674@rolando-laptop>
From: Glenn Morris <rgm@HIDDEN>
X-Spook: DRM Mafia ANDVT pink noise Agfa Iran afsatcom Security
X-Ran: /|K{7wC\P"yVt\riGgZfK`hgR3\`63c+b|W/Dp-FC-CQ,``y^a\9_.cL.(G*>BVC4KtpnC
X-Hue: cyan
X-Attribution: GM
Date: Mon, 22 Nov 2010 21:01:14 -0500
In-Reply-To: <20101121174502.GA14674@rolando-laptop> (Rolando Pereira's
	message of "Sun\, 21 Nov 2010 17\:45\:14 +0000")
Message-ID: <bwmxp06bo5.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.2 (------)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

Rolando Pereira wrote:

> When running gdb inside emacs, either by doing M-x gdb or M-x gud-gdb,
> if the prompt is set to something that isn't "(gdb)" (or similar, see
> the examples below), pressing TAB doesn't do the completion of
> commands, functions or variables.

Thank you for the complete example.

It looks like, after you have changed the prompt, you can set the
local value of comint-prompt-regexp to match it.

More generally, when comint-use-prompt-regexp is nil (which it is by
default), gud.el probably ought not to try and use comint-prompt-regexp.
Instead it should use whatever field properties comint adds.

> Emacs version is: GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version
> 2.16.1)
>
> GDB version is: GNU gdb (GDB) 7.2




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 4 Dec 2010 22:40:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 04 17:40:27 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PP0mJ-0008HH-Bc
	for submit <at> debbugs.gnu.org; Sat, 04 Dec 2010 17:40:27 -0500
Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <cyd@HIDDEN>) id 1PP0mI-0008H6-KK
	for control <at> debbugs.gnu.org; Sat, 04 Dec 2010 17:40:26 -0500
Received: from furball (dhcp128036014248.central.yale.edu [128.36.14.248])
	(authenticated bits=0)
	by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id
	oB4MkE1g018149
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <control <at> debbugs.gnu.org>; Sat, 4 Dec 2010 17:46:14 -0500
Received: by furball (Postfix, from userid 1000)
	id 2B82516059F; Sat,  4 Dec 2010 17:46:14 -0500 (EST)
From: Chong Yidong <cyd@HIDDEN>
To: control <at> debbugs.gnu.org
Subject: tags 7461
Date: Sat, 04 Dec 2010 17:46:14 -0500
Message-ID: <87bp51jgw9.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.7 (--)

tags 7461 notabug
thanks




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 7 Oct 2019 05:39:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 07 01:39:41 2019
Received: from localhost ([127.0.0.1]:47280 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iHLkD-0008Sv-6A
	for submit <at> debbugs.gnu.org; Mon, 07 Oct 2019 01:39:41 -0400
Received: from quimby.gnus.org ([80.91.231.51]:57444)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1iHLkB-0008Sm-Gk
 for control <at> debbugs.gnu.org; Mon, 07 Oct 2019 01:39:39 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>) id 1iHLk8-0006jc-Ne
 for control <at> debbugs.gnu.org; Mon, 07 Oct 2019 07:39:38 +0200
Date: Mon, 07 Oct 2019 07:39:36 +0200
Message-Id: <87sgo56rmv.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: control message for bug #7461
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:  tags 7461 - notabug 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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

tags 7461 - notabug
quit





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#7461: 23.2; gud.el always uses comint-prompt-regexp; things can break if prompt is changed
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 26 Aug 2021 17:49:02 +0000
Resent-Message-ID: <handler.7461.B7461.163000008714438 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 7461
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Glenn Morris <rgm@HIDDEN>
Cc: Rolando Pereira <finalyugi@HIDDEN>, 7461 <at> debbugs.gnu.org
Received: via spool by 7461-submit <at> debbugs.gnu.org id=B7461.163000008714438
          (code B ref 7461); Thu, 26 Aug 2021 17:49:02 +0000
Received: (at 7461) by debbugs.gnu.org; 26 Aug 2021 17:48:07 +0000
Received: from localhost ([127.0.0.1]:50376 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mJJTy-0003ko-S5
	for submit <at> debbugs.gnu.org; Thu, 26 Aug 2021 13:48:07 -0400
Received: from quimby.gnus.org ([95.216.78.240]:49684)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mJJTx-0003kG-IO
 for 7461 <at> debbugs.gnu.org; Thu, 26 Aug 2021 13:48:06 -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=4SoWH6etJn76CorsBXljQrWanc7nZYJa+o8D1MOlwZo=; b=aCovNC7K0p16RNLNzm4fUwyhs0
 vHUWkcE6H/mzvgry3zT+7+DuaIJI6Otp3CzoZptvjFVN0lrkf8R8C9z65F3MPRlgSGEkNShG/JZ00
 DqHP22qXctcdURS4NtbSS4YdFn1PaRnuT2dzit/sx+N/Ap83ZPIHVFR4d50DUcBGsjVI=;
Received: from [84.212.220.105] (helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1mJJTm-0003dJ-OA; Thu, 26 Aug 2021 19:47:59 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
References: <20101121174502.GA14674@rolando-laptop>
 <bwmxp06bo5.fsf@HIDDEN>
Date: Thu, 26 Aug 2021 19:47:54 +0200
In-Reply-To: <bwmxp06bo5.fsf@HIDDEN> (Glenn Morris's message of
 "Mon, 22 Nov 2010 21:01:14 -0500")
Message-ID: <8735qwxflh.fsf_-_@HIDDEN>
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: Glenn Morris <rgm@HIDDEN> writes: >> When running gdb inside
 emacs, either by doing M-x gdb or M-x gud-gdb, >> if the prompt is set to
 something that isn't "(gdb)" (or similar, see >> the examples below), pressing
 TAB doesn't do the c [...] 
 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: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Glenn Morris <rgm@HIDDEN> writes:

>> When running gdb inside emacs, either by doing M-x gdb or M-x gud-gdb,
>> if the prompt is set to something that isn't "(gdb)" (or similar, see
>> the examples below), pressing TAB doesn't do the completion of
>> commands, functions or variables.
>
> Thank you for the complete example.
>
> It looks like, after you have changed the prompt, you can set the
> local value of comint-prompt-regexp to match it.
>
> More generally, when comint-use-prompt-regexp is nil (which it is by
> default), gud.el probably ought not to try and use comint-prompt-regexp.
> Instead it should use whatever field properties comint adds.

(I'm going through old bug reports that unfortunately weren't
resolved at the time.)

Looking at the gud code, that sounds like a good idea --- but
unfortunately comint doesn't put any specific field property on the
prompt.  Instead it seems like it marks all the data output, including
the prompt, as `output'.  Which makes sense, but doesn't help us with
distinguishing whether the line we're at is a prompt.

I think.

And I don't think we can change the fields here, because I'm guessing a
lot of stuff depends on all the output being the same field.

But comint does indeed know that it's a prompt...  so we could add
another property here -- like `comint-prompt' on the prompts, and then
use that.

Anybody have any other ideas here?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 26 Aug 2021 17:48:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 26 13:48:16 2021
Received: from localhost ([127.0.0.1]:50379 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mJJU8-0003lE-4M
	for submit <at> debbugs.gnu.org; Thu, 26 Aug 2021 13:48:16 -0400
Received: from quimby.gnus.org ([95.216.78.240]:49702)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mJJU6-0003kx-4V
 for control <at> debbugs.gnu.org; Thu, 26 Aug 2021 13:48:14 -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=UQFij5pho3zOOzQ2+EC8EQj6ULC5oW8gt4UqtQka0+s=; b=jkwaBWX2Sfgo5bOUOVQDyu3Mwo
 kwCkzhrZu7YkknawEyxnQj4zi7hM3KY1VKT+inTX8zt0yJRa6sKOhq5H3A6Ghx7w5E7Wn/snmYr3N
 qy/wzMJdM1/SNNkJc/XUCGl4e4Ncm/XKtbAffzM6ts7/oHbgZvtp3DxmVEbnITElfbUA=;
Received: from [84.212.220.105] (helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1mJJTy-0003de-1u
 for control <at> debbugs.gnu.org; Thu, 26 Aug 2021 19:48:08 +0200
Date: Thu, 26 Aug 2021 19:48:01 +0200
Message-Id: <871r6gxfla.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: control message for bug #7461
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:  tags 7461 + moreinfo 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: -2.3 (--)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 7461 + moreinfo
quit





Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 25 Sep 2021 02:38:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 24 22:38:16 2021
Received: from localhost ([127.0.0.1]:59899 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mTxZw-00007C-H8
	for submit <at> debbugs.gnu.org; Fri, 24 Sep 2021 22:38:16 -0400
Received: from quimby.gnus.org ([95.216.78.240]:34538)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mTxZv-00006w-Cs
 for control <at> debbugs.gnu.org; Fri, 24 Sep 2021 22:38:15 -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=Hfv9gC7BiYqKL6IqiP/gsGxXpdhLLceZ1DLUIZbCCjA=; b=lmQ+iOvKAJXR9LX+p5Q1/lmYu6
 eE6GMiJ1B2E6DtCVuDPSP2t6B6lpcZl2VKxRO13eC1ZbED/0UPmHTwDKW9gFVD9rzqEM/pJerWBBV
 /aHX0xp/1umaRSJ9Ld4NQYLHHEpSTI4JQ9Iy6ah7c8fWQbWpRuWm6xFIDxaKxPC0DjJk=;
Received: from [84.212.220.105] (helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1mTxZn-0000Ec-3n
 for control <at> debbugs.gnu.org; Sat, 25 Sep 2021 04:38:09 +0200
Date: Sat, 25 Sep 2021 04:38:06 +0200
Message-Id: <87sfxtnzw1.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: control message for bug #7461
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:  tags 7461 - moreinfo 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: -2.3 (--)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 7461 - moreinfo
quit






Last modified: Sat, 25 Sep 2021 02:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.