GNU bug report logs - #44911
28.0.50; defcustom with :local t doesn't set the variable

Previous Next

Package: emacs;

Reported by: Yuan Fu <casouri <at> gmail.com>

Date: Fri, 27 Nov 2020 21:55:02 UTC

Severity: normal

Tags: fixed

Found in version 28.0.50

Fixed in version 27.2

Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Bug is archived. No further changes may be made.

Full log


Message #12 received at 44911-done <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 44911-done <at> debbugs.gnu.org
Subject: Re: bug#44911: 28.0.50; defcustom with :local t doesn't set the
 variable
Date: Sat, 28 Nov 2020 00:27:13 +0000
tags 44911 fixed
close 44911 27.2
quit

Yuan Fu <casouri <at> gmail.com> 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




This bug report was last modified 4 years and 232 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.