help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `completing-read` without RET


From: Stefan Monnier
Subject: Re: `completing-read` without RET
Date: Fri, 11 Mar 2016 11:50:40 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>> >> Is there a function with the same behaviour of `completing-read`, except
>> >> that it doesn't need RET when only one completion exists?
>> > Of course, it's called `completing-read'.
>> > You just have to configure its TAB key accordingly.
>> > I.e. rebind TAB in minibuffer-local-completion-map from
>> > `minibuffer-complete' to a new command which does what you want.
>> Oh, actually, I think I misunderstood your question and there's an even
>> closer answer: just provide a neither-nil neither-t value for the
>> `require-match' argument or `completing-read'.
> No, I don't think so.

You're right, it's when require-match is t.

> Choose: a TAB
> Nothing happens.

Don't use TAB, use RET.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]