all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lluís <xscript@gmx.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Completion bug in gud or comint
Date: Sun, 18 Dec 2011 20:07:30 +0100	[thread overview]
Message-ID: <87bor5k8b1.fsf@ginnungagap.bsc.es> (raw)
In-Reply-To: <jwvobv89fwc.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 16 Dec 2011 19:55:44 -0500")

Stefan Monnier writes:

>> I didn't find any related bug report, but I'm not sure if this has
>> been reported before in this list.

>> Steps to reproduce it:

>> M-x gdb
>> gdb -i=mi<RET>
>>>> (gdb) _
>> s<TAB>
>>>> (gdb) s_
>>>> <completion buffer output>
>> o<TAB>
>>>> source_
>> <TAB>
>>>> (gdb) _source

>> As you can see, the comint prompt ('(gdb)') "disappears" (already
>> strange enough) and the point moves accordingly when there is a common
>> completion prefix available, but performing a new completion makes the
>> prompt "reappear".

> I can't reproduce it with Emacs's trunk, starting as "emacs -Q".
> Have you tried your recipe with "emacs -Q"?

Yes.

I've also tried to `eval-buffer' comint, gud and gdb-mi from the latest trunk,
and the later (gdb-mi) hangs forever.

Just in case, I also tried to build a complete emacs from trunk and this is the
backtrace on quit when completing in the gud buffer:

Debugger entered--Lisp error: (quit)
  accept-process-output(#<process gud>)
  gud-gdb-run-command-fetch-lines("complete s" #<buffer *gud*> 0)
  gud-gdb-completions("" "s")
  apply(gud-gdb-completions "" "s")
  (closure (t) (&rest args) (apply (quote gud-gdb-completions) (quote "") args))("s")
  #[771 "\211\242\301=\206\n\211\302=?\205+r\303 \304!\203\0\305!\202\0p\262q\210\306\300!\x05$)\207" [(closure (t) (&rest args) (apply (quote gud-gdb-completions) (quote "") args)) boundaries metadata minibuffer-selected-window window-live-p window-buffer complete-with-action] 8 "\n\n(fn STRING PRED ACTION)"]("s" nil lambda)
  test-completion("s" #[771 "\211\242\301=\206\n\211\302=?\205+r\303 \304!\203\0\305!\202\0p\262q\210\306\300!\x05$)\207" [(closure (t) (&rest args) (apply (quote gud-gdb-completions) (quote "") args)) boundaries metadata minibuffer-selected-window window-live-p window-buffer complete-with-action] 8 "\n\n(fn STRING PRED ACTION)"] nil)
  completion--do-completion()
  minibuffer-complete()
  call-interactively(minibuffer-complete)
  #[1028 "\x01\304\x06\x06\305\211\306%\x18\305\262\x02\305\262\307\310\311#\210\n\203,\312\313!\210p\a\a\aF\314\315\316\317\320\321\x06!\322\"\323\324%DC\216\325\326!+\207" [minibuffer-completion-predicate minibuffer-completion-table completion-in-region-mode-predicate completion-in-region--data make-overlay nil t overlay-put field completion completion-in-region-mode 1 funcall make-byte-code 0 "\301\300!\207" vconcat vector [delete-overlay] 2 "\n\n(fn)" call-interactively minibuffer-complete] 14 "\n\n(fn START END COLLECTION PREDICATE)"](506 507 #[771 "\211\242\301=\206\n\211\302=?\205+r\303 \304!\203\0\305!\202\0p\262q\210\306\300!\x05$)\207" [(closure (t) (&rest args) (apply (quote gud-gdb-completions) (quote "") args)) boundaries metadata minibuffer-selected-window window-live-p window-buffer complete-with-action] 8 "\n\n(fn STRING PRED ACTION)"] nil)
  apply(#[1028 "\x01\304\x06\x06\305\211\306%\x18\305\262\x02\305\262\307\310\311#\210\n\203,\312\313!\210p\a\a\aF\314\315\316\317\320\321\x06!\322\"\323\324%DC\216\325\326!+\207" [minibuffer-completion-predicate minibuffer-completion-table completion-in-region-mode-predicate completion-in-region--data make-overlay nil t overlay-put field completion completion-in-region-mode 1 funcall make-byte-code 0 "\301\300!\207" vconcat vector [delete-overlay] 2 "\n\n(fn)" call-interactively minibuffer-complete] 14 "\n\n(fn START END COLLECTION PREDICATE)"] (506 507 #[771 "\211\242\301=\206\n\211\302=?\205+r\303 \304!\203\0\305!\202\0p\262q\210\306\300!\x05$)\207" [(closure (t) (&rest args) (apply (quote gud-gdb-completions) (quote "") args)) boundaries metadata minibuffer-selected-window window-live-p window-buffer complete-with-action] 8 "\n\n(fn STRING PRED ACTION)"] nil))
  #[771 ":\2030\x02@\301=\203\0\300@\302\x05A\"\303#\207\304@\305\306\307\310\311\312\300!\313\"\314\315%\x06A\x06##\207\304\316\"\207" [(#0) t append nil apply apply-partially make-byte-code 642 "\300@\x03#\207" vconcat vector [] 7 "\n\n(fn FUNS GLOBAL &rest ARGS)" #[1028 "\x01\304\x06\x06\305\211\306%\x18\305\262\x02\305\262\307\310\311#\210\n\203,\312\313!\210p\a\a\aF\314\315\316\317\320\321\x06!\322\"\323\324%DC\216\325\326!+\207" [minibuffer-completion-predicate minibuffer-completion-table completion-in-region-mode-predicate completion-in-region--data make-overlay nil t overlay-put field completion completion-in-region-mode 1 funcall make-byte-code 0 "\301\300!\207" vconcat vector [delete-overlay] 2 "\n\n(fn)" call-interactively minibuffer-complete] 14 "\n\n(fn START END COLLECTION PREDICATE)"]] 12 "\n\n(fn FUNS GLOBAL ARGS)"](nil nil (506 507 #[771 "\211\242\301=\206\n\211\302=?\205+r\303 \304!\203\0\305!\202\0p\262q\210\306\300!\x05$)\207" [(closure (t) (&rest args) (apply (quote gud-gdb-completions) (quote "") args)) boundaries metadata minibuffer-selected-window window-live-p window-buffer complete-with-action] 8 "\n\n(fn STRING PRED ACTION)"] nil))
  completion-in-region(506 507 #[771 "\211\242\301=\206\n\211\302=?\205+r\303 \304!\203\0\305!\202\0p\262q\210\306\300!\x05$)\207" [(closure (t) (&rest args) (apply (quote gud-gdb-completions) (quote "") args)) boundaries metadata minibuffer-selected-window window-live-p window-buffer complete-with-action] 8 "\n\n(fn STRING PRED ACTION)"] nil)
  completion-at-point()
  call-interactively(completion-at-point nil nil)


Evaluating the expression '(gud-gdb-completions "" "s")' does work correctly.


Lluis

-- 
 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
 Tollbooth



  reply	other threads:[~2011-12-18 19:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-16 15:14 Completion bug in gud or comint Lluís
2011-12-17  0:55 ` Stefan Monnier
2011-12-18 19:07   ` Lluís [this message]
2011-12-21 14:40     ` Lluís Vilanova
2011-12-25  7:54       ` Chong Yidong
2011-12-25 10:48         ` Chong Yidong
2012-01-02 12:22           ` Lluís
2011-12-21 15:03     ` Lluís Vilanova

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=87bor5k8b1.fsf@ginnungagap.bsc.es \
    --to=xscript@gmx.net \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.