GNU bug report logs - #79455
"Value ‘1’ does not match type boolean" should mention which variable

Previous Next

Package: emacs;

Reported by: "R. Diez" <rdiez-2006 <at> rd10.de>

Date: Tue, 16 Sep 2025 06:32:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#79455: closed ("Value ‘1’ does
 not match type boolean" should mention which variable)
Date: Tue, 16 Sep 2025 12:14:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 16 Sep 2025 15:13:26 +0300
with message-id <86v7limw7t.fsf <at> gnu.org>
and subject line Re: bug#79455: "Value ‘1’ does not match type boolean" should mention which variable
has caused the debbugs.gnu.org bug report #79455,
regarding "Value ‘1’ does not match type boolean" should mention which variable
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
79455: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79455
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "R. Diez" <rdiez-2006 <at> rd10.de>
To: bug-gnu-emacs <at> gnu.org
Subject: "Value ‘1’ does not match type boolean" should mention which variable
Date: Tue, 16 Sep 2025 08:30:22 +0200
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
[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: "R. Diez" <rdiez-2006 <at> rd10.de>
Cc: 79455-done <at> debbugs.gnu.org
Subject: Re: bug#79455: "Value ‘1’ does not match type
 boolean" should mention which variable
Date: Tue, 16 Sep 2025 15:13:26 +0300
> 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.


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.