[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Useful function `completing-read-multiple'
From: |
Jean Louis |
Subject: |
Useful function `completing-read-multiple' |
Date: |
Sat, 12 Jun 2021 20:05:31 +0300 |
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'.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Useful function `completing-read-multiple',
Jean Louis <=