GNU bug report logs - #56400
Make setopt warn on type mismatch

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Tue, 5 Jul 2022 15:33:02 UTC

Severity: wishlist

Tags: moreinfo

Fixed in version 29.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: 56400 <at> debbugs.gnu.org
Subject: bug#56400: Make setopt warn on type mismatch
Date: Tue, 5 Jul 2022 08:32:29 -0700
Severity: wishlist

Why not make `setopt' warn in case there is a type mismatch?
For example, in:

    (setopt tetris-buffer-width "hello")

But the type of `tetris-buffer-width' is natnum.

I think this would save users from shooting themselves in the foot.
If they are sure they want to do that, they can use `setq' or
`customize-set-variable' directly.




This bug report was last modified 2 years and 359 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.