unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Daniele Nicolodi <daniele@grinta.net>
Cc: emacs-devel@gnu.org
Subject: Re: completing-read a list of keywords
Date: Wed, 15 Apr 2020 18:42:52 -0400	[thread overview]
Message-ID: <jwvsgh4fk5a.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <a15ddf3a-4e7e-dc31-283e-2e5d49a5eaf0@grinta.net> (Daniele Nicolodi's message of "Wed, 15 Apr 2020 14:15:52 -0600")

>>> Thanks Noam! I didn't know about completing-read-multiple. It comes very
>>> close to do what I want. However, I am unable to make it work for
>>> elements separated by ", " as SPC is mapped to the complete action.
>>> Is there a way to customize this behavior?
>> Not really, no, it's a known limitation.
> What do you think of the proposed temporary keymap modification
> solution? It seems that it solved the problem nicely, doesn't it?

I'm surprised to hear that it works.  IIRC the code will try to
complete " b" rather than "b" if you type `a , SPC b TAB`, so unless
your completion table is happy with spurious leading spaces I think you
won't like the result.

But maybe it's been improved.  This is based on a vague recollection
from many years ago.


        Stefan




  reply	other threads:[~2020-04-15 22:42 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-15 17:30 completing-read a list of keywords Daniele Nicolodi
2020-04-15 17:33 ` Noam Postavsky
2020-04-15 18:21   ` Daniele Nicolodi
2020-04-15 18:26     ` Noam Postavsky
2020-04-15 18:41       ` Joost Kremers
2020-04-15 19:32         ` Daniele Nicolodi
2020-04-15 22:13           ` Daniele Nicolodi
2020-04-15 19:13       ` Daniele Nicolodi
2020-04-15 18:55     ` Stefan Monnier
2020-04-15 20:15       ` Daniele Nicolodi
2020-04-15 22:42         ` Stefan Monnier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-04-15 22:06 Roland Winkler
2020-04-15 22:44 ` Stefan Monnier
2020-04-18 22:07   ` Roland Winkler
2020-04-19  2:30     ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvsgh4fk5a.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=daniele@grinta.net \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).