From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#4755: 23.1; case where `C-M-x' on defcustom doesn't seem to work Date: Tue, 05 Jul 2016 00:14:55 -0400 Message-ID: <87poqsd8lc.fsf@users.sourceforge.net> References: <340F1FE0FD29493A984C1582F2B10756@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467692127 14638 80.91.229.3 (5 Jul 2016 04:15:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jul 2016 04:15:27 +0000 (UTC) Cc: 4755@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 05 06:15:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bKHlU-0003yK-39 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jul 2016 06:15:16 +0200 Original-Received: from localhost ([::1]:51779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKHlP-0005J3-V5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jul 2016 00:15:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKHlJ-0005G3-L0 for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 00:15:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKHlG-0001Et-Dx for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 00:15:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKHlG-0001Eo-AM for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 00:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bKHlG-0007om-6U for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 00:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Jul 2016 04:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4755 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 4755-submit@debbugs.gnu.org id=B4755.146769209630028 (code B ref 4755); Tue, 05 Jul 2016 04:15:02 +0000 Original-Received: (at 4755) by debbugs.gnu.org; 5 Jul 2016 04:14:56 +0000 Original-Received: from localhost ([127.0.0.1]:37611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKHl9-0007oD-N7 for submit@debbugs.gnu.org; Tue, 05 Jul 2016 00:14:55 -0400 Original-Received: from mail-it0-f43.google.com ([209.85.214.43]:33544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKHl7-0007ns-OL; Tue, 05 Jul 2016 00:14:53 -0400 Original-Received: by mail-it0-f43.google.com with SMTP id f6so18908067ith.0; Mon, 04 Jul 2016 21:14:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=G3kQx5nhaDfVO6t8iZI8Px90uS9PnkU1pWoSIV62OQI=; b=dtg7qvkChGz5sAJVRxb6MMng0d1+oSLej8Ei4Y9HxG4ABLvrbE75jM/e7fhQQxGTTz veQ6d24Z4al8gO+KHKLLof++1jX17LwkoQM3Xh7aHqCx1iEaHRsGVv+0eCxEkM+No4pv 3I1cGAPwz4mmTqBT34SMuPcARITxdSCDtRpfL8fP2L6LS1kSlC8GxaGNLAHL6R69bZ7r C7YuEvof0i03LJU3i+KQlE9r4lLqjeCKrcDjhj8NbKac3viUocrq98TugqhcYV2A3Xhw qtZAttPcLRyQStNPrOuA3auin2yE3cxTy7DIRLXX7c8OCjhDJ3JJwLfvixMgYybu8y+K q84Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=G3kQx5nhaDfVO6t8iZI8Px90uS9PnkU1pWoSIV62OQI=; b=JciD2arcTEH0bswy9uepW2nDKffq63Axzi9cPde6Uh7GUzH7RBG5cZFO56ksQPFaWH YVC5A+/jFaCqf6pySS2ZtM3XP/kQ2LEE8MCTQJfiTQ1yh+RdeAPWyLgsIOQzauYtlSln NTknLdJx92H2NjoQtQek4wCwBRK3ngkaK5PFpzbWil61uZlmItXXOLq9H9l7pD62spAz ydFY2cUmIajRXmqzWA91d1wu7wgdeUvQ5UxtW6i5HUh0WeAdcylfA15maRh9BswKW0ac C72gDmHfqoM9fvpHGmBM2DWNW4X1+nx7YBeNY046XWU0GKm12vVIZCuvqOeFJbEhpd9U 5FZQ== X-Gm-Message-State: ALyK8tLoA78bsQ0Lnj1yP0eJ3B3bsKciyp5PGTCFzlsPawithURnIj34GGu2DwXqoBXBjA== X-Received: by 10.36.111.81 with SMTP id x78mr11642069itb.6.1467692088286; Mon, 04 Jul 2016 21:14:48 -0700 (PDT) Original-Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44]) by smtp.googlemail.com with ESMTPSA id m133sm819656ioa.23.2016.07.04.21.14.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jul 2016 21:14:47 -0700 (PDT) In-Reply-To: <340F1FE0FD29493A984C1582F2B10756@us.oracle.com> (Drew Adams's message of "Sun, 18 Oct 2009 17:21:48 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120424 Archived-At: tags 4755 unreproducible quit "Drew Adams" writes: > 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)' > Can't reproduce on Emacs 23.4, perhaps it was fixed?