From: Protesilaos Stavrou <info@protesilaos.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [elpa] externals/denote 9f692cbbef: Revert "Make 'denote-{title, signature}-prompt' complete from its history"
Date: Fri, 27 Oct 2023 08:22:07 +0300 [thread overview]
Message-ID: <87zg041vy8.fsf@protesilaos.com> (raw)
In-Reply-To: <jwvil6uk4jh.fsf-monnier+emacs@gnu.org>
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Wed, 25 Oct 2023 13:21:44 -0400
>
>> The idea to have completion is good, though this way it breaks with
>> the default minibuffer setup because SPC tries to complete the
>> inputted text. Thus the user cannot type freely. This does not happen
>> with packages that enhance the minibuffer User Interface, such as
>> 'vertico'.
>
> Yes, it's a common problem, but for historical reasons there's
> a reluctance to change the SPC binding in the default completion UI.
> You can work around it with something like
>
> (minibuffer-with-setup-hook
> (lambda ()
> (use-local-map (let ((map (make-composed-keymap
> nil (current-local-map))))
> (define-key map (kbd "SPC") nil)
> map)))
> ...)
Thank you, Stefan! Are there any other cases like this one? Or am I safe
to proceed that way?
> We've had discussions around this in the past but no resolution yet.
> Another bug report requesting an easier way to do that may help.
What do you think is the solution here? Perhaps a function that wraps
completing-read in what you shared above? With a name like
'read-string-completion'?
In my case, I want to have something that starts out practically the
same as read-string but then completes against the given minibuffer
history while also accepting new strings.
--
Protesilaos Stavrou
https://protesilaos.com
next prev parent reply other threads:[~2023-10-27 5:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <169825307506.11873.2953281488302419157@vcs2.savannah.gnu.org>
[not found] ` <20231025165755.64291C09BE7@vcs2.savannah.gnu.org>
2023-10-25 17:21 ` [elpa] externals/denote 9f692cbbef: Revert "Make 'denote-{title, signature}-prompt' complete from its history" Stefan Monnier
2023-10-27 5:22 ` Protesilaos Stavrou [this message]
2023-10-27 13:04 ` 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=87zg041vy8.fsf@protesilaos.com \
--to=info@protesilaos.com \
--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.