GNU bug report logs - #7461
23.2; gud.el always uses comint-prompt-regexp; things can break if prompt is changed

Previous Next

Package: emacs;

Reported by: Rolando Pereira <finalyugi <at> sapo.pt>

Date: Sun, 21 Nov 2010 19:23:01 UTC

Severity: normal

Found in version 23.2

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Rolando Pereira <finalyugi <at> sapo.pt>
Cc: 7461 <at> debbugs.gnu.org
Subject: bug#7461: 23.2; Gdb only does tab completion inside Emacs when prompt is (gdb)
Date: Mon, 22 Nov 2010 21:01:14 -0500
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




This bug report was last modified 3 years and 263 days ago.

Previous Next


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