GNU bug report logs -
#79455
"Value ‘1’ does not match type boolean" should mention which variable
Previous Next
To reply to this bug, email your comments to 79455 AT debbugs.gnu.org.
There is no need to reopen the bug first.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#79455
; Package
emacs
.
(Tue, 16 Sep 2025 06:32:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"R. Diez" <rdiez-2006 <at> rd10.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 16 Sep 2025 06:32:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi all:
I recently upgraded from Emacs 29 to 30, and I got the following warning in the *Warnings* buffer:
Warning (emacs): Value ‘1’ does not match type boolean
I am no Lisp expert, but I still have accumulated a biggish configuration over the years, so it took me a while to find the culprit:
(setopt inhibit-startup-screen 1)
I then changed '1' to 't', and the problem went away.
The trouble is, I lost quite a lot of time to this trivial matter. I am thinking that other people could encounter the same issue and lose time too.
Could you mention the variable name in the error message? Like this:
Warning (emacs): When setting variable ‘whatever-variable’: Value ‘1’ does not match type boolean
In my software, I normally do a try/catch to add such a prefix, so no matter what error is raised, the culprit is always mentioned.
Regards,
rdiez
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Tue, 16 Sep 2025 12:14:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
"R. Diez" <rdiez-2006 <at> rd10.de>
:
bug acknowledged by developer.
(Tue, 16 Sep 2025 12:14:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 79455-done <at> debbugs.gnu.org (full text, mbox):
> Date: Tue, 16 Sep 2025 08:30:22 +0200
> From: "R. Diez" via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> Hi all:
>
> I recently upgraded from Emacs 29 to 30, and I got the following warning in the *Warnings* buffer:
>
> Warning (emacs): Value ‘1’ does not match type boolean
>
> I am no Lisp expert, but I still have accumulated a biggish configuration over the years, so it took me a while to find the culprit:
>
> (setopt inhibit-startup-screen 1)
>
> I then changed '1' to 't', and the problem went away.
>
> The trouble is, I lost quite a lot of time to this trivial matter. I am thinking that other people could encounter the same issue and lose time too.
>
> Could you mention the variable name in the error message? Like this:
>
> Warning (emacs): When setting variable ‘whatever-variable’: Value ‘1’ does not match type boolean
Thanks, this is bug#73084, which is already fixed on the master branch
(which will eventually become Emacs 31). On the master branch, Emacs
says this instead:
Warning (emacs): Value ‘1’ for variable ‘inhibit-startup-screen’ does not match its type "boolean"
So I'm closing this bug.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#79455
; Package
emacs
.
(Tue, 16 Sep 2025 12:17:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 79455 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Tue, 16 Sep 2025 08:30:22 +0200, "R. Diez" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org> said:
rdiez> Hi all:
rdiez> I recently upgraded from Emacs 29 to 30, and I got the following warning in the *Warnings* buffer:
rdiez> Warning (emacs): Value ‘1’ does not match type boolean
rdiez> I am no Lisp expert, but I still have accumulated a biggish configuration over the years, so it took me a while to find the culprit:
rdiez> (setopt inhibit-startup-screen 1)
rdiez> I then changed '1' to 't', and the problem went away.
rdiez> The trouble is, I lost quite a lot of time to this trivial matter. I
rdiez> am thinking that other people could encounter the same issue and lose
rdiez> time too.
rdiez> Could you mention the variable name in the error message? Like this:
rdiez> Warning (emacs): When setting variable ‘whatever-variable’: Value ‘1’ does not match type boolean
Emacs 31 has changed it to this:
(warn "Value `%S' for variable `%s' does not match its type \"%s\""
value variable type)
Robert
--
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#79455
; Package
emacs
.
(Tue, 16 Sep 2025 12:18:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#79455
; Package
emacs
.
(Tue, 16 Sep 2025 14:19:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 79455-done <at> debbugs.gnu.org (full text, mbox):
[..]
> Thanks, this is bug#73084, which is already fixed on the master branch
> (which will eventually become Emacs 31).
First of all, thanks for the info.
That improvement was done over a year ago, and I hit this shortcoming the other day, after upgrading to the newest Emacs.
It is a trivial change. Therefore, I wouldn't wait until Emacs 31, and then let many users switching to Emacs 30.x (perhaps over a Linux distribution package) unnecessarily scratch their heads.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#79455
; Package
emacs
.
(Tue, 16 Sep 2025 14:46:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 79455 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Tue, 16 Sep 2025 16:18:21 +0200, "R. Diez" <rdiez-2006 <at> rd10.de> said:
R> [..]
>> Thanks, this is bug#73084, which is already fixed on the master branch
>> (which will eventually become Emacs 31).
R> First of all, thanks for the info.
R> That improvement was done over a year ago, and I hit this shortcoming the other day, after upgrading to the newest Emacs.
R> It is a trivial change. Therefore, I wouldn't wait until Emacs 31, and
R> then let many users switching to Emacs 30.x (perhaps over a Linux
R> distribution package) unnecessarily scratch their heads.
Iʼm not sure there will ever be another release of Emacs 30.
Eli, I can backport 2ce0d397b12c to emacs-30 if you think it makes
sense.
Robert
--
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#79455
; Package
emacs
.
(Tue, 16 Sep 2025 15:45:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 79455 <at> debbugs.gnu.org (full text, mbox):
> X-Spam-Status: No, score=-2.901 required=6.31 tests=[ALL_TRUSTED=-1,
> BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
> Date: Tue, 16 Sep 2025 16:18:21 +0200
> Cc: 79455-done <at> debbugs.gnu.org, Robert Pluim <rpluim <at> gmail.com>
> From: "R. Diez" <rdiez-2006 <at> rd10.de>
>
> [..]
> > Thanks, this is bug#73084, which is already fixed on the master branch
> > (which will eventually become Emacs 31).
>
> First of all, thanks for the info.
>
> That improvement was done over a year ago, and I hit this shortcoming the other day, after upgrading to the newest Emacs.
>
> It is a trivial change. Therefore, I wouldn't wait until Emacs 31, and then let many users switching to Emacs 30.x (perhaps over a Linux distribution package) unnecessarily scratch their heads.
Sorry, our rule is no enhancements on the release branch. We paid
with sweat, blood, and tears to learn that simple truth.
You can always apply that change locally and rebuild Emacs 30 for your
needs.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#79455
; Package
emacs
.
(Tue, 16 Sep 2025 15:47:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 79455 <at> debbugs.gnu.org (full text, mbox):
> From: Robert Pluim <rpluim <at> gmail.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 79455 <at> debbugs.gnu.org
> Date: Tue, 16 Sep 2025 16:45:15 +0200
>
> >>>>> On Tue, 16 Sep 2025 16:18:21 +0200, "R. Diez" <rdiez-2006 <at> rd10.de> said:
>
> R> [..]
> >> Thanks, this is bug#73084, which is already fixed on the master branch
> >> (which will eventually become Emacs 31).
>
> R> First of all, thanks for the info.
>
> R> That improvement was done over a year ago, and I hit this shortcoming the other day, after upgrading to the newest Emacs.
>
> R> It is a trivial change. Therefore, I wouldn't wait until Emacs 31, and
> R> then let many users switching to Emacs 30.x (perhaps over a Linux
> R> distribution package) unnecessarily scratch their heads.
>
> Iʼm not sure there will ever be another release of Emacs 30.
>
> Eli, I can backport 2ce0d397b12c to emacs-30 if you think it makes
> sense.
It doesn't make much sense, since we don't plan any more releases from
the emacs-30 branch. And even if we do need to release from that
branch for some reason, this is not a bugfix, it's an enhancement.
Which is why it was done on the master branch to begin with.
This bug report was last modified 3 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.