* Useful function `completing-read-multiple'
@ 2021-06-12 17:05 Jean Louis
0 siblings, 0 replies; only message in thread
From: Jean Louis @ 2021-06-12 17:05 UTC (permalink / raw)
To: Help GNU Emacs
Here is one good way to make multiple selections, very handy to
select for example multiple tags, so to tag objects, files, etc.
(let* ((collection '("emacs" "emacs-lisp" "visual"))
(crm-separator "[ ]*,[ ]*" )
(tags (completing-read-multiple "Tags: " collection nil t)))
tags) ⇒ ("emacs" "visual")
The `completing-read-multiple' allows user to write multiple tags
or multiple selections separated in this case by comma. Beware,
there is invisible tab in the variable `crm-separator'.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-12 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-12 17:05 Useful function `completing-read-multiple' Jean Louis
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.