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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44911 in the body.
You can then email your comments to 44911 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#44911; Package emacs. (Fri, 27 Nov 2020 21:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Yuan Fu <casouri <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 27 Nov 2020 21:55:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Bug Report Emacs <bug-gnu-emacs <at> gnu.org>
Subject: 28.0.50; defcustom with :local t doesn't set the variable
Date: Fri, 27 Nov 2020 16:54:08 -0500
(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
Windowing system distributor 'Apple', version 10.3.2022
System Description:  macOS 11.0.1

Configured using:
'configure --with-modules --with-pdumper=yes --with-ns
'CFLAGS=-I/opt/local/include/gcc10 -I/opt/local/include/libxml2'
'LDFLAGS=-L/opt/local/lib/gcc10 -I/opt/local/include/gcc10'
PKG_CONFIG_PATH=/usr/local/Cellar/zlib/1.2.8/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig'

Configured features:
PNG RSVG DBUS GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS XIM NS MODULES THREADS JSON PDUMPER LCMS2

Important settings:
  value of $LC_CTYPE: UTF-8
  value of $LANG: en_CN.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail
rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map text-property-search seq byte-opt
gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils time-date subr-x help-fns
radix-tree cl-print debug backtrace help-mode easymenu find-func
cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button
loaddefs faces cus-face macroexp files window text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads dbusbind kqueue cocoa ns
lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 55557 8683)
(symbols 48 7073 1)
(strings 32 19239 2275)
(string-bytes 1 631084)
(vectors 16 12287)
(vector-slots 8 170512 11180)
(floats 8 24 40)
(intervals 56 300 0)
(buffers 992 12))




Added tag(s) fixed. Request was from "Basil L. Contovounesios" <contovob <at> tcd.ie> to control <at> debbugs.gnu.org. (Sat, 28 Nov 2020 00:28:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.2, send any further explanations to 44911 <at> debbugs.gnu.org and Yuan Fu <casouri <at> gmail.com> Request was from "Basil L. Contovounesios" <contovob <at> tcd.ie> to control <at> debbugs.gnu.org. (Sat, 28 Nov 2020 00:28:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44911; Package emacs. (Sat, 28 Nov 2020 00:28:02 GMT) Full text and rfc822 format available.

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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 26 Dec 2020 12:24:04 GMT) Full text and rfc822 format available.

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.