[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: customize type spec not being followed?
From: |
Philipp Stephani |
Subject: |
Re: customize type spec not being followed? |
Date: |
Sun, 24 Dec 2017 12:34:41 +0000 |
Rusi <rustompmody@gmail.com> schrieb am So., 24. Dez. 2017 um 13:10 Uhr:
> On Sunday, December 24, 2017 at 5:31:55 PM UTC+5:30, Philipp Stephani
> wrote:
> > Rusi schrieb am So., 24. Dez. 2017 um 12:50 Uhr:
> >
> > >
> > > So my question: When the type says character why does it show as
> integer?
> > >
> >
> > Because characters are integers. See
> >
> https://www.gnu.org/software/emacs/manual/html_node/elisp/Character-Type.html
> > .
>
> In (info "(elisp)simple types")
> we find
>
> ‘character’
> The value must be a character code. A character code is actually
> an integer, but this type shows the value by inserting the
> character in the buffer, rather than by showing the number.
>
Ah, that only describes the behavior of the Customize widget, the help
screen is unrelated. `describe-variable' uses `prin1-to-string', which
doesn't know about customization types.