From: Stefan Monnier via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Setting numecir values according to symbol
Date: Sun, 30 Oct 2022 08:54:28 -0400 [thread overview]
Message-ID: <jwvcza95v89.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: YqikhHwn-AwdK8RoCxkDmWxpFl0swZxeHy-4RzL5L0m5dU5jbdtxgGiwPE0zZcIEbSznF8124UvOwas0qyxhze5RDr-DkXOgk5GhA7TwRdg=@protonmail.com
Heime [2022-10-30 04:31:34] wrote:
> 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)))
Without giving more info about how you're using those two vars, it's hard
to tell, but my crystal ball tells that you're probably better off
getting rid of `mbcomplt` and using `armg` instead.
Stefan
next prev parent reply other threads:[~2022-10-30 12:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2022-10-30 13:01 ` Emanuel Berg
2022-10-30 22:12 ` Heime
2022-10-31 11:25 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvcza95v89.fsf-monnier+emacs@gnu.org \
--to=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.