From: Eli Zaretskii <eliz@gnu.org>
To: Philip Kaludercic <philipk@posteo.net>
Cc: mattias.engdegard@gmail.com, rpluim@gmail.com, emacs-devel@gnu.org
Subject: Re: bind print-integers-as-characters to t in `describe-variable'?
Date: Thu, 16 May 2024 14:58:36 +0300 [thread overview]
Message-ID: <86seyihssz.fsf@gnu.org> (raw)
In-Reply-To: <871q626s9t.fsf@posteo.net> (message from Philip Kaludercic on Thu, 16 May 2024 09:05:34 +0000)
> From: Philip Kaludercic <philipk@posteo.net>
> Cc: mattias.engdegard@gmail.com, rpluim@gmail.com, emacs-devel@gnu.org
> Date: Thu, 16 May 2024 09:05:34 +0000
>
> >> Why not bind it depending on the type of the user option?
> >
> > How do you tell "the type of the user option"?
>
> E.g. using (get 'fill-column 'custom-type) ;=> integer
You took the easy case. In a more general case, we'd need a parser to
understand what's TRT:
(get 'electric-quote-chars 'custom-type)
=> (list character character character character)
And we definitely could have defcustoms which say 'integer', but can
accept both numbers and characters.
And then there are variables, not user options ("C-h v" is not only
for defcustom's).
next prev parent reply other threads:[~2024-05-16 11:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-15 9:33 bind print-integers-as-characters to t in `describe-variable'? Robert Pluim
2024-05-15 10:13 ` Mattias Engdegård
2024-05-15 11:56 ` Eli Zaretskii
2024-05-16 5:46 ` Philip Kaludercic
2024-05-16 8:45 ` Eli Zaretskii
2024-05-16 9:05 ` Philip Kaludercic
2024-05-16 11:58 ` Eli Zaretskii [this message]
2024-05-16 9:08 ` Robert Pluim
2024-05-15 12:32 ` Robert Pluim
2024-05-15 11:55 ` Eli Zaretskii
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=86seyihssz.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=mattias.engdegard@gmail.com \
--cc=philipk@posteo.net \
--cc=rpluim@gmail.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 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.