From: Oleh Krehel <oleh@oremacs.com>
To: egarrulo <egarrulo@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: `completing-read` without RET
Date: Mon, 11 Apr 2016 11:01:55 +0200 [thread overview]
Message-ID: <87lh4k1pto.fsf@oremacs.com> (raw)
In-Reply-To: <dkfou2Ffu55U1@mid.individual.net> (egarrulo@gmail.com's message of "Fri, 11 Mar 2016 12:36:33 +0100")
egarrulo <egarrulo@gmail.com> writes:
> Is there a function with the same behaviour of `completing-read`,
> except that it doesn't need RET when only one completion exists?
I've made an implementation for my bookmarks a long time ago:
https://github.com/abo-abo/headlong
I still use it and it works fine. As soon as there is only one match,
the completion will exit. Example:
(headlong-with
(completing-read "Test: " '("a" "b" "c") nil t))
Hopefully it's still useful, I was going through this mailing list just
now.
Oleh
prev parent reply other threads:[~2016-04-11 9:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-11 11:36 `completing-read` without RET egarrulo
2016-03-11 13:22 ` Stefan Monnier
2016-03-11 13:36 ` Stefan Monnier
2016-03-11 16:08 ` Drew Adams
2016-03-11 16:50 ` Stefan Monnier
2016-03-11 17:07 ` Drew Adams
2016-03-11 22:45 ` Stefan Monnier
2016-03-11 23:49 ` Drew Adams
[not found] ` <mailman.7363.1457740186.843.help-gnu-emacs@gnu.org>
2016-03-12 12:01 ` egarrulo
2016-04-11 9:01 ` Oleh Krehel [this message]
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=87lh4k1pto.fsf@oremacs.com \
--to=oleh@oremacs.com \
--cc=egarrulo@gmail.com \
--cc=help-gnu-emacs@gnu.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.