[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Iinteractive function allowing multiple inputs
From: |
Heime |
Subject: |
Re: Iinteractive function allowing multiple inputs |
Date: |
Mon, 09 Dec 2024 23:47:31 +0000 |
Sent with Proton Mail secure email.
On Tuesday, December 10th, 2024 at 11:05 AM, Jean Louis <bugs@gnu.support>
wrote:
> * Heime heimeborgia@protonmail.com [2024-12-10 00:46]:
>
> > Could you assist me with completing-read-multiple for use with
> > company-backends?
>
>
> (setq my-table '("one" "two"))
> (completing-read-multiple "Choose: " my-table)
>
> one,two
>
> That is all I know. I use it to find elementary objects by multiple tags. -
> Jean Louis
Consider the following. The value of company-backends should
be a list. Would (list (mapcar #'intern backends-seltr))
give a list to the function argument?
(defun cbackends (actm-seqr)
"Set value for `company-backends' for `company-mode'.
Allowing multiple selectors using comma-separated."
(interactive
(let* ( (cseq '("company-dabbrev" "company-dabbrev-code" "company-keywords"
"company-capf" "company-yasnippet" "company-files"))
(backends-seltr
(completing-read-multiple
"Backends Multi-Seltr (comma-separated): "
cseq nil t)))
(list (mapcar #'intern backends-seltr))))
;; Convert selected backends to symbols and set them
(setq company-backends actm-seqr) )
- Re: Iinteractive function allowing multiple inputs, (continued)
- Re: Iinteractive function allowing multiple inputs, Jean Louis, 2024/12/09
- Re: Iinteractive function allowing multiple inputs, Heime, 2024/12/09
- Re: Iinteractive function allowing multiple inputs, Jean Louis, 2024/12/09
- Re: Iinteractive function allowing multiple inputs, Heime, 2024/12/09
- Re: Iinteractive function allowing multiple inputs, Jean Louis, 2024/12/09
- Re: Iinteractive function allowing multiple inputs, Heime, 2024/12/09
- Re: Iinteractive function allowing multiple inputs, Heime, 2024/12/09
- Re: Iinteractive function allowing multiple inputs, Jean Louis, 2024/12/09
- Re: Iinteractive function allowing multiple inputs,
Heime <=
- Re: Iinteractive function allowing multiple inputs, Jean Louis, 2024/12/10
Re: Iinteractive function allowing multiple inputs, Stefan Monnier, 2024/12/09