all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* completing-read a list of keywords
@ 2020-04-15 17:30 Daniele Nicolodi
  2020-04-15 17:33 ` Noam Postavsky
  0 siblings, 1 reply; 15+ messages in thread
From: Daniele Nicolodi @ 2020-04-15 17:30 UTC (permalink / raw)
  To: emacs-devel

Hello,

I am trying to come up with a solution to be able to use completing-read
to prompt the user for a comma (or space) separated list of words.
Unfortunately the completion framework is still rather impenetrable to
me. Does anyone have pointers to relevant examples and documentation?

org-mode has something similar for the completion of tags. But I haven't
been able to understand what the code does.

Thank you!

Best,
Dan



^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: completing-read a list of keywords
@ 2020-04-15 22:06 Roland Winkler
  2020-04-15 22:44 ` Stefan Monnier
  0 siblings, 1 reply; 15+ messages in thread
From: Roland Winkler @ 2020-04-15 22:06 UTC (permalink / raw)
  To: monnier; +Cc: daniele, emacs-devel

> > 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.

SPC is mapped to crm-complete-word, which is not always needed with
crm (depending on your needs).

BBDB defines a bbdb-crm-local-completion-map that makes SPC
self-inserting.  Then it binds crm-local-completion-map to
bbdb-crm-local-completion-map.

Stefan, I believe you suggested this to me when you helped me a few
years ago to extend crm to handle regexps as crm-separator.



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-04-19  2:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- 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

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.