Subject: Re: bug#44911: 28.0.50; defcustom with :local t doesn't set the variable

From: "Basil L. Contovounesios" <[email-masked]>
Date: Sat, 28 Nov 2020 00:27:13 +0000

tags 44911 fixed
close 44911 27.2
quit

Yuan Fu <[email-masked]> writes:

> (progn (defcustom myvar 1
>          "Disc."
>          :local t)
>        myvar)
>
> returns nil, but I expect it to return 1.
>
> (progn (defcustom myvar2 1
>          "Disc.")
>        myvar2)
>
> returns 1.
>
> In GNU Emacs 28.0.50 (build 5, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H2))
> of 2020-10-28 built on Brown
> Repository revision: 8c96c720fa5ee67b902778199ee35991779300dc
> Repository branch: master

This should already be fixed on emacs-27 and more recent master.
If it isn't, please reopen.

Fix handling of defcustom :local tag
dea3d6aa18 2020-11-24 16:50:37 +0000
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=dea3d6aa18e54f0d8d75cd219b511bac5b3c87b1

Thanks,

-- 
Basil