unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ergus <spacibba@aol.com>
To: help-gnu-emacs@gnu.org
Subject: Customization list
Date: Fri, 12 Jul 2024 12:59:01 +0200	[thread overview]
Message-ID: <gf5p25utbjtl7yg4cvdjzzawaklttpsjeydijzqlrrj47nekxn@ovebfpzoimrd> (raw)
In-Reply-To: gf5p25utbjtl7yg4cvdjzzawaklttpsjeydijzqlrrj47nekxn.ref@ovebfpzoimrd


Hi:

After some years in emacs I still have issues when creating
customization variables:

The examples in the documentation are very simple, but getting some
typical simple behaviors is a bit hard to get from them.

Suppose I have a variable:

(defcustom my-features '(feature1 feature2 feature3)
   :type ???)

This is a variable that may have a list of possible determined values,
so I was expecting to get something like this in the customization menu:

[x] feature1
[x] feature2
[x] feature3
[ ] feature4
[ ] feature5

So, when the user adds or removes one of the choices, the variable gets
a final value associated.

I was trying to use different combination of choice, radio, set, repeat
and const, but there were some issues with each.

Is this very simple "custom menu" approach possible?

Is so, please, could you share some example (either inlined here or a
variable name existent in vanilla) with such behavior.

Thanks in advance,
Ergus










       reply	other threads:[~2024-07-12 10:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gf5p25utbjtl7yg4cvdjzzawaklttpsjeydijzqlrrj47nekxn.ref@ovebfpzoimrd>
2024-07-12 10:59 ` Ergus [this message]
2024-07-12 11:47   ` Customization list Tassilo Horn
2024-07-12 19:15     ` Ergus
2024-07-15  6:37       ` Joost Kremers

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gf5p25utbjtl7yg4cvdjzzawaklttpsjeydijzqlrrj47nekxn@ovebfpzoimrd \
    --to=spacibba@aol.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).