From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#18282: 24.3.93; Tab completion in gud-gdb at the start of a line overwrites the prompt. Date: Tue, 19 Aug 2014 15:45:10 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1408477585 27276 80.91.229.3 (19 Aug 2014 19:46:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Aug 2014 19:46:25 +0000 (UTC) Cc: Mat Smiglarski , 18282@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 19 21:46:17 2014 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 1XJpM8-00073f-KC for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Aug 2014 21:46:08 +0200 Original-Received: from localhost ([::1]:52759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJpM6-0006vh-4f for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Aug 2014 15:46:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJpM3-0006va-BM for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2014 15:46:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJpM2-0000lW-He for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2014 15:46:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJpM2-0000lS-F0 for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2014 15:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XJpM2-0002wc-5m for bug-gnu-emacs@gnu.org; Tue, 19 Aug 2014 15:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Aug 2014 19:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18282 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18282-submit@debbugs.gnu.org id=B18282.140847751611260 (code B ref 18282); Tue, 19 Aug 2014 19:46:02 +0000 Original-Received: (at 18282) by debbugs.gnu.org; 19 Aug 2014 19:45:16 +0000 Original-Received: from localhost ([127.0.0.1]:47827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XJpLH-0002vY-T0 for submit@debbugs.gnu.org; Tue, 19 Aug 2014 15:45:16 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:46907 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XJpLE-0002vO-QP for 18282@debbugs.gnu.org; Tue, 19 Aug 2014 15:45:13 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XJpLD-0006jF-9P; Tue, 19 Aug 2014 15:45:11 -0400 X-Spook: global Peking Sundevil SHA terrorist government weapons X-Ran: U"Q(.*8Q'MY`n|1!}c3w]vMu#(]^z-ar02Bb-u#/1a}<|%V@N*]pFETNiTP`:.]V!|LIV= X-Hue: black X-Attribution: GM In-Reply-To: (Stefan Monnier's message of "Mon, 18 Aug 2014 14:28:57 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) 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: 140.186.70.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:92534 Archived-At: I wonder if the problem is this note from gud-gdb-completions: ;; `gud-gdb-run-command-fetch-lines' has some nasty side-effects on the ;; buffer (via `gud-delete-prompt-marker'): it removes the prompt and then ;; re-adds it later, thus messing up markers and overlays along the way. ;; This is a problem for completion-in-region which uses an overlay to ;; create a field. ;; So we restore completion-in-region's field if needed. completion-in-region doesn't use an overlay any more (so the comment and workaround are in any case outdated), it uses a marker, which presumably gets moved behind its back. Dunno how you fix things up to make the marker point back where it should. python.el seems to have a similar need, and to solve it using python-shell-send-string-no-output (use comint-preoutput-filter-functions to prevent completion output getting inserted into the buffer).