This one bit me yesterday on Emacs 29.3 as I was revising my init file (for
the thousandth time this week).
As setopt becomes more widely recommended, people will likely encounter
situations like the below where they expect constant numeric types to be
coerced.
(defcustom temp-float "Float"
"Fl
wrote:
> > From: Ship Mints
> > Date: Sat, 7 Sep 2024 09:14:54 -0400
> >
> > This one bit me yesterday on Emacs 29.3 as I was revising my init file
> (for the thousandth time this week).
> >
> > As setopt becomes more widely recommended, people will likely enco
ivalent of #'= for these simple cases.
On Sun, Sep 8, 2024 at 7:09 AM Eli Zaretskii wrote:
> > From: Ship Mints
> > Date: Sun, 8 Sep 2024 06:59:31 -0400
> > Cc: 73...@debbugs.gnu.org
> >
> > Yessir. I was talking about users' likely expectations for type
many in my circles with their resulting heisenbugs.
On Sun, Sep 8, 2024 at 7:39 AM Andreas Schwab wrote:
> On Sep 08 2024, Ship Mints wrote:
>
> > There are cases in elisp where numeric type coercion is the default,
> > e.g., (= 2.0 2) is t. I expected it to be so here, too.
>
this group
must know this all too well).
On Mon, Sep 9, 2024 at 11:28 AM Eli Zaretskii wrote:
> > From: Michael Heerdegen
> > Cc: Eli Zaretskii , 73...@debbugs.gnu.org
> > Date: Mon, 09 Sep 2024 17:11:40 +0200
> >
> > Ship Mints writes:
> >
> > > I
Happy for the thoughtful feedback.
Perhaps, some expanded advice in the docstring for setopt?
"Set VARIABLE/VALUE pairs with enforced types, 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-se
Eli Zaretskii wrote:
> > From: Ship Mints
> > Date: Fri, 13 Sep 2024 11:11:18 -0400
> > Cc: Stefan Monnier , Eli Zaretskii <
> e...@gnu.org>,
> > Michael Heerdegen ,
> 73...@debbugs.gnu.org
> >
> > Perhaps, some expanded advice in the docstring fo
It was removed in a later proposed edit. I read the setopt code more deeply
and ran some tests.
On Fri, Sep 13, 2024 at 3:09 PM Stefan Monnier
wrote:
> > If you encounter a discrepancy that cannot be addressed by amending
> > the type specified by a setopt call, and you can deem the desired
> >
-format-tabs-groups
(lambda () " ") ; tab-bar-separator
))
■ Warning (emacs): Value '(nil tab-bar-format-tabs-groups (lambda nil "
"))' does not match type hook
On Fri, Sep 13, 2024 at 3:26 PM Ship Mints wrote:
> It was removed in a later prop