unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Setting numecir values according to symbol
@ 2022-10-30  4:31 Heime
  2022-10-30 12:54 ` Stefan Monnier via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 5+ messages in thread
From: Heime @ 2022-10-30  4:31 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

Am currently implementing a system that sets the minibuffer completion framework for emacs.
I set the numeric value of "mbcomplt" according the value of a variable "armg" which is a symbol.

Perhaps I can implement the setting of "mbcomplt" in a much more straightforward manner than
using the following implementation.

  (defvar mbcomplt 0)

  (cond
   ((eq armg 'auto) (setq mbcomplt 0)
   ((eq armg 'icomplt-horz) (setq mbcomplt 1)
   ((eq armg 'icomplt-vert) (setq mbcomplt 2)
   ((eq armg 'ivy) (setq mbcomplt 3)
   ((eq armg 'vertico) (setq mbcomplt 4)
   ((eq armg 'helm) (setq mbcomplt 5)))





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

end of thread, other threads:[~2022-10-31 11:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-30  4:31 Setting numecir values according to symbol Heime
2022-10-30 12:54 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-10-30 13:01   ` Emanuel Berg
2022-10-30 22:12     ` Heime
2022-10-31 11:25       ` Emanuel Berg

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).