From: "Drew Adams" <drew.adams@oracle.com>
Subject: set-variable could use some of defcustom's typing to provide completion
Date: Mon, 20 Feb 2006 01:36:21 -0800 [thread overview]
Message-ID: <MEEKKIABFKKDFJMPIOEBKEEICPAA.drew.adams@oracle.com> (raw)
I don't propose we try to take this too far, but in the case of some simple
defcustom :type specs, `set-variable' could use the type info to provide
completion.
For instance, if a `choice' of `const' values is used, the string
representations of those values could be made available as completions for
input to `set-variable'.
E.g. (choice (const :tag "Yes" 'some-long-option-meaning-yes)
(const :tag "No" 'some-long-option-meaning-ask)
(const :tag "Ask" 'some-long-option-meaning-ask))
You would be able to complete your input to the only valid inputs.
Completion could be lax or strict, depending on the type. In the case of a
choice of (only) `const's, it could be strict. For some other types, it
would be completely lax, letting you input anything you like.
Yes, I realize that the primary recommended UI for setting options is
Customize, but `set-variable' exists and is quite handy. With completion, it
would be even handier.
next reply other threads:[~2006-02-20 9:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 9:36 Drew Adams [this message]
2006-02-20 19:34 ` set-variable could use some of defcustom's typing to provide completion Juri Linkov
2006-02-20 22:05 ` Richard M. Stallman
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=MEEKKIABFKKDFJMPIOEBKEEICPAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
/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).