From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#4755: 23.1; case where `C-M-x' on defcustom doesn't seem to work Date: Sun, 18 Oct 2009 17:21:48 -0700 Message-ID: <340F1FE0FD29493A984C1582F2B10756@us.oracle.com> Reply-To: Drew Adams , 4755@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1255913258 753 80.91.229.12 (19 Oct 2009 00:47:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2009 00:47:38 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 19 02:47:28 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MzgPG-0000dg-Ox for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Oct 2009 02:47:27 +0200 Original-Received: from localhost ([127.0.0.1]:59696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzgPF-0007Xc-Q5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Oct 2009 20:47:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzgPA-0007XN-Jb for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 20:47:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzgP5-0007UR-4V for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 20:47:19 -0400 Original-Received: from [199.232.76.173] (port=39376 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzgP4-0007UA-RR for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 20:47:14 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49797) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MzgP4-0001Ss-5n for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 20:47:14 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9J0lC4F025064; Sun, 18 Oct 2009 17:47:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9J0U8m1022728; Sun, 18 Oct 2009 17:30:08 -0700 Resent-Date: Sun, 18 Oct 2009 17:30:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 19 Oct 2009 00:30:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4755 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125591183721815 (code B ref -1); Mon, 19 Oct 2009 00:30:07 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 19 Oct 2009 00:23:57 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9J0NtT9021812 for ; Sun, 18 Oct 2009 17:23:56 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mzg2V-0003kF-4I for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 20:23:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mzg2Q-0003eq-Ff for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 20:23:54 -0400 Original-Received: from [199.232.76.173] (port=42789 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mzg2P-0003ei-TX for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 20:23:49 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:57207) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mzg2P-0006m4-Ap for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 20:23:49 -0400 Original-Received: from rgminet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9J0Nejl017950 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 19 Oct 2009 00:23:42 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9IG3Hk2017794 for ; Mon, 19 Oct 2009 00:24:21 GMT Original-Received: from abhmt012.oracle.com by acsmt358.oracle.com with ESMTP id 20468813231255911710; Sun, 18 Oct 2009 19:21:50 -0500 Original-Received: from dradamslap1 (/24.5.184.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 18 Oct 2009 17:21:50 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpQUiXacdwSOA40RoyC9zxShZWtvA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4ADBB191.0034:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 18 Oct 2009 20:47:19 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32081 Archived-At: emacs -Q (defcustom foo '(("foo" (f1 f2) f3) ("bar" (b1 b2) b3)) "..." :type '(repeat (cons (choice :tag "a" string symbol) (choice (const :tag "b" nil) (function :tag "c") (list :tag "d" (repeat (function :tag "e")) (choice (const :tag "f" nil) (function :tag "g"))))))) (defcustom toto (copy-sequence foo) "..." :type '(repeat (cons (choice :tag "r" string symbol) (choice (const :tag "s" nil) (function :tag "t") (list :tag "u" (repeat (function :tag "v")) (choice (const :tag "w" nil) (function :tag "x"))))))) (defun f1 ()) (defun f2 ()) (defun f3 ()) (defun b1 ()) (defun b2 ()) (defun b3 ()) Then M-x customize-option foo Insert another alist element, then set the value for the session, so foo's value now has 3 alist elements. Option toto's value is like foo's, but it is missing the first alist element (the new one). Put point on toto's defcustom and do `C-M-x'. The value is not updated to be a copy of foo's current value. The value looks like it hasn't changed. AFAIK, there are no side effects going on here. And if you explicitly do (setq toto (copy-sequence foo)), then it of course does get updated to reflect the latest foo value. Seems like a bug. There's no doubt a simpler test case, but I have this ready-to-hand and don't feel like paring it down. In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-29 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)'