unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56400: Make setopt warn on type mismatch
@ 2022-07-05 15:32 Stefan Kangas
  2022-07-05 16:57 ` Lars Ingebrigtsen
  2022-07-05 18:51 ` Juri Linkov
  0 siblings, 2 replies; 7+ messages in thread
From: Stefan Kangas @ 2022-07-05 15:32 UTC (permalink / raw)
  To: 56400

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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-05 18:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-05 15:32 bug#56400: Make setopt warn on type mismatch Stefan Kangas
2022-07-05 16:57 ` Lars Ingebrigtsen
2022-07-05 17:08   ` Stefan Kangas
2022-07-05 17:32     ` Lars Ingebrigtsen
2022-07-05 17:42       ` Stefan Kangas
2022-07-05 18:07         ` Lars Ingebrigtsen
2022-07-05 18:51 ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).