[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Symbols in interactive user input
From: |
Heime |
Subject: |
Symbols in interactive user input |
Date: |
Thu, 28 Nov 2024 12:13:53 +0000 |
Do user input commands allow using symbols rather than strings?
For instance using 'extended, 'disable, 'tabtrail, which are then
used in a pcase or cond conditionals.
(interactive
(let* ( (colw (read-number "Line Column: " 72))
(cseq '("extended" "disable" "tabtrail"))
(rsel (completing-read "Selector: " cseq nil t "tabtrail"))
(scope (completing-read "Scope: "
'("global" "local") nil t "local")) )
;; Pass a single list as argument
(list (list colw rsel scope))) )
- Symbols in interactive user input,
Heime <=