unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Utf8 symbols in completing-read completion item
@ 2022-10-20 11:40 Heime via Users list for the GNU Emacs text editor
  2022-10-20 21:02 ` Jean Louis
  2022-10-21  0:11 ` Michael Heerdegen
  0 siblings, 2 replies; 9+ messages in thread
From: Heime via Users list for the GNU Emacs text editor @ 2022-10-20 11:40 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

Am using "completing-read" to input greek letters. To introduce the corresponding utf8
symbol I just copy it in the completion item, then match with a pcase that includes the
utf8 symbol. Is this the correct way of doing so?

(defun nuket-greek (actm)
"TODO"

(interactive
(list
(let ( (cseq '("alpha α" "beta β" "gamma" "delta" "epsilon" "zeta" "eta")) )
(completing-read "Nuke: " cseq nil t "eta"))))

(pcase actm

("alpha α" (insert "\\alpha"))

("beta β" (insert "\\beta"))

("eta" (insert "\\eta"))) )

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

end of thread, other threads:[~2022-10-21  6:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-20 11:40 Utf8 symbols in completing-read completion item Heime via Users list for the GNU Emacs text editor
2022-10-20 21:02 ` Jean Louis
2022-10-20 22:00   ` Heime
2022-10-21  2:54     ` Jean Louis
2022-10-21  3:33       ` Heime
2022-10-21  3:43         ` Michael Heerdegen
2022-10-21  4:16           ` Heime
2022-10-21  6:18     ` Eli Zaretskii
2022-10-21  0:11 ` Michael Heerdegen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).