Subject: Re: bug#73098: setopt float warning unexpected
From: Eli Zaretskii <[email-masked]>
To: Ship Mints <[email-masked]>
Cc: [email-masked], [email-masked], [email-masked], [email-masked]
Date: Sat, 14 Sep 2024 12:35:27 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Ship Mints <[email-masked]>
> Date: Fri, 13 Sep 2024 13:14:59 -0400
> Cc: [email-masked], [email-masked], [email-masked], 
> 	[email-masked]
> 
> Revised language:
> 
> "Set VARIABLE/VALUE pairs with type warnings, and return the final VALUE.
> 
> This is like setq, but is meant for user options instead of
> plain variables.  This means that setopt will execute any
> custom-set form associated with VARIABLE, and will emit a
> warning if VALUE is not of the type expected by the user option.
> 
> Example: If the user option is declared to accept a `float', 
> set the option to 2.0 rather than 2, which is considered an `integer'.
> 
> Despite the warning, the user option will still be set to VALUE."

Thanks.  Since there seems to be a consensus that 'setopt' should
continue emitting the warning, I added to the doc string a note about
the warning (on the emacs-30 branch), and I'm now closing this bug.