[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56400: Make setopt warn on type mismatch
From: |
Juri Linkov |
Subject: |
bug#56400: Make setopt warn on type mismatch |
Date: |
Tue, 05 Jul 2022 21:51:01 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
> 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 is exactly what `set-variable' does.
bug#56400: Make setopt warn on type mismatch,
Juri Linkov <=