From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Mat Smiglarski <penthief@sdf.org>, 18282@debbugs.gnu.org
Subject: bug#18282: 24.3.93; Tab completion in gud-gdb at the start of a line overwrites the prompt.
Date: Wed, 27 Aug 2014 02:53:05 -0400 [thread overview]
Message-ID: <htzjeqa0fi.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <xn1tsci7ih.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 19 Aug 2014 15:50:14 -0400")
Her's an awful kludge that seems to work somewhat, maybe.
But it can't be the right solution.
But it can't be worse than it is now (?).
*** lisp/progmodes/gud.el 2014-02-10 01:34:22 +0000
--- lisp/progmodes/gud.el 2014-08-27 06:48:45 +0000
***************
*** 778,784 ****
(add-hook 'completion-at-point-functions #'gud-gdb-completion-at-point
nil 'local)
(set (make-local-variable 'gud-gdb-completion-function) 'gud-gdb-completions)
!
(local-set-key "\C-i" 'completion-at-point)
(setq comint-prompt-regexp "^(.*gdb[+]?) *")
(setq paragraph-start comint-prompt-regexp)
--- 778,784 ----
(add-hook 'completion-at-point-functions #'gud-gdb-completion-at-point
nil 'local)
(set (make-local-variable 'gud-gdb-completion-function) 'gud-gdb-completions)
! (setq-local completion-in-region-function 'gud--completion-in-region)
(local-set-key "\C-i" 'completion-at-point)
(setq comint-prompt-regexp "^(.*gdb[+]?) *")
(setq paragraph-start comint-prompt-regexp)
***************
*** 787,792 ****
--- 787,795 ----
(setq gud-filter-pending-text nil)
(run-hooks 'gud-gdb-mode-hook))
+ (defun gud--completion-in-region (start end collection &optional predicate)
+ (completion--in-region (copy-marker start t) end collection predicate))
+
;; The completion process filter indicates when it is finished.
(defvar gud-gdb-fetch-lines-in-progress)
next prev parent reply other threads:[~2014-08-27 6:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-17 10:07 bug#18282: 24.3.93; Tab completion in gud-gdb at the start of a line overwrites the prompt Mat Smiglarski
2014-08-18 17:45 ` Glenn Morris
2014-08-18 18:28 ` Stefan Monnier
2014-08-19 19:45 ` Glenn Morris
2014-08-19 19:50 ` Glenn Morris
2014-08-27 6:53 ` Glenn Morris [this message]
2014-08-28 3:14 ` Stefan Monnier
2014-09-02 18:17 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=htzjeqa0fi.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=18282@debbugs.gnu.org \
--cc=monnier@IRO.UMontreal.CA \
--cc=penthief@sdf.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.