unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Yuan Fu <casouri@gmail.com>
Cc: 44911-done@debbugs.gnu.org
Subject: bug#44911: 28.0.50; defcustom with :local t doesn't set the variable
Date: Sat, 28 Nov 2020 00:27:13 +0000	[thread overview]
Message-ID: <87o8jipbq6.fsf@tcd.ie> (raw)
In-Reply-To: <C461B92A-DCDE-4E6A-B376-03A693AA1DC9@gmail.com> (Yuan Fu's message of "Fri, 27 Nov 2020 16:54:08 -0500")

tags 44911 fixed
close 44911 27.2
quit

Yuan Fu <casouri@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





      reply	other threads:[~2020-11-28  0:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-27 21:54 bug#44911: 28.0.50; defcustom with :local t doesn't set the variable Yuan Fu
2020-11-28  0:27 ` Basil L. Contovounesios [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o8jipbq6.fsf@tcd.ie \
    --to=contovob@tcd.ie \
    --cc=44911-done@debbugs.gnu.org \
    --cc=casouri@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).