From: Drew Adams <drew.adams@oracle.com>
To: 35133@debbugs.gnu.org
Subject: bug#35133: 26.1; 1) `:tag' for `restricted-sexp' (not in a choice, set, etc.), 2) Remove `Value Menu' if a no-op
Date: Wed, 3 Apr 2019 20:05:32 -0700 (PDT) [thread overview]
Message-ID: <4bd9e603-0d75-4de4-9bd3-6fa94a96e8a4@default> (raw)
1. Use `M-x customize-option' for each of these:
(defcustom foo 42
"Foo..."
:type '(restricted-sexp
:tag "Positive integer"
:match-alternatives ((lambda (x) (and (natnump x) (not (zerop x)))))
:value ignore))
(defcustom bar 42
"Bar..."
:type '(choice (restricted-sexp
:tag "Positive integer"
:match-alternatives ((lambda (x) (and (natnump x) (not (zerop x)))))
:value ignore)))
The `:tag' has no effect for `foo' - there is no label. I think that
according to the doc it should have the same effect as for `bar'.
2. In addition, a reasonable and helpful enhancement for `choice' would
be to not show `Value Menu' at all if there is only one choice
available (i.e., when that button/menu is a no-op).
In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
of 2018-05-30
Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea
Windowing system distributor `Microsoft Corp.', version 10.0.17134
Configured using:
`configure --without-dbus --host=x86_64-w64-mingw32
--without-compress-install 'CFLAGS=-O2 -static -g3''
next reply other threads:[~2019-04-04 3:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-04 3:05 Drew Adams [this message]
2020-12-09 14:51 ` bug#35133: 26.1; 1) `:tag' for `restricted-sexp' (not in a choice, set, etc.), 2) Remove `Value Menu' if a no-op Lars Ingebrigtsen
2020-12-09 22:27 ` Mauro Aranda
2020-12-09 23:30 ` Drew Adams
2020-12-11 14:05 ` Mauro Aranda
2020-12-11 17:26 ` Drew Adams
2020-12-11 14:31 ` Lars Ingebrigtsen
2020-12-11 17:06 ` Mauro Aranda
2020-12-12 10:59 ` Lars Ingebrigtsen
2020-12-13 13:50 ` Mauro Aranda
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=4bd9e603-0d75-4de4-9bd3-6fa94a96e8a4@default \
--to=drew.adams@oracle.com \
--cc=35133@debbugs.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).