From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#4755: 23.1; case where `C-M-x' on defcustom doesn't seem to work Date: Tue, 5 Jul 2016 13:56:36 -0400 Message-ID: References: <340F1FE0FD29493A984C1582F2B10756@us.oracle.com> <87poqsd8lc.fsf@users.sourceforge.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1467744155 20413 80.91.229.3 (5 Jul 2016 18:42:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jul 2016 18:42:35 +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 20:42:26 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 1bKVIg-000204-FF for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jul 2016 20:42:26 +0200 Original-Received: from localhost ([::1]:57244 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKVIf-0006GR-Qj for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jul 2016 14:42:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKUao-0003O9-F9 for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 13:57:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKUak-0005xe-AS for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 13:57:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKUak-0005xP-5x for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 13:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bKUaj-0000Uq-Va for bug-gnu-emacs@gnu.org; Tue, 05 Jul 2016 13:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Jul 2016 17:57:01 +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: unreproducible Original-Received: via spool by 4755-submit@debbugs.gnu.org id=B4755.14677414041882 (code B ref 4755); Tue, 05 Jul 2016 17:57:01 +0000 Original-Received: (at 4755) by debbugs.gnu.org; 5 Jul 2016 17:56:44 +0000 Original-Received: from localhost ([127.0.0.1]:38570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKUaS-0000UI-Bv for submit@debbugs.gnu.org; Tue, 05 Jul 2016 13:56:44 -0400 Original-Received: from mail-oi0-f53.google.com ([209.85.218.53]:33467) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKUaQ-0000U2-Iw for 4755@debbugs.gnu.org; Tue, 05 Jul 2016 13:56:43 -0400 Original-Received: by mail-oi0-f53.google.com with SMTP id u201so239444492oie.0 for <4755@debbugs.gnu.org>; Tue, 05 Jul 2016 10:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Q07/fuJ1JA1h8Oij4n1aV3kZ13BbfacMjOWdpVY8OH4=; b=NMXBV7VyRmqkiJoClLZFPsBxgh4PGt/6PJPASBb3K9pYuwodve0Rrsf3fHW0UjLtcN A9rYg5JHI7ub4RN6aNDPnpKbPKCtD8VwkDgyAUnyYrMCykTFDUUc8W+tTafrmu++fcIK RZTk5ymF8tF7FktOwgUhCnoNGLSDrTc2/jBQjbPlnf/EJgff3KBb1SiIXP9Ye6Fsa49Y n8wvPeQpJZBHLVYwqHnsaixI1h4BA9gxeXoub7ZdBl2q7B5nPCRg60lyY2D8phj1qkhp EyVM6RIIOb8moGhRLeNZP2cI5N+YWBbrRWAc2WTFEIqvA2tMpmoqIPIv2BoqULrcw8oH tF3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Q07/fuJ1JA1h8Oij4n1aV3kZ13BbfacMjOWdpVY8OH4=; b=GrgTVJuZga9a7wCiTun7E2e/czZWH7Z8vLGHOcg9kDv7lrtb6meF5mtXIMcCs/hNfc 1IBwVGRxBgWQcV3ukBIZ3iwGRMf6llK1sjRu0XwKcZO4KQ/b2W41xSKTw7u33bk05rBG GpHULDcLnujRlGUtsE7rvl2nXOyinIASRl2185sBUm/TuPEH0JnAoPaeHAj1iu6KdrLy /xfhcCWc5dD2/6W3plq/zAinrbjB/Nic3u9D6Q2q4sxsXgv3DwabbMunVllDCJkYFHBM fvElWv1QvWFM9jVnFdqr0JDRQK88Ug1lq+GJFl/bgSJQ/AophdwvCKyg5i8A9q1gYgQl lSmQ== X-Gm-Message-State: ALyK8tIR/inhMlkaGnn4vs9r889pOHy5f7Gf2n3yfL3Jjsg6tKK9Iuf0Hkg3Hr2goe0njE7uTL2MEv7hX5cXVQ== X-Received: by 10.157.17.113 with SMTP id p46mr11010778otp.196.1467741396791; Tue, 05 Jul 2016 10:56:36 -0700 (PDT) Original-Received: by 10.157.4.197 with HTTP; Tue, 5 Jul 2016 10:56:36 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: _XneXFBz4PJvuX98z_H63TrfeoM 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:120454 Archived-At: On Tue, Jul 5, 2016 at 1:30 PM, Drew Adams wrote: > The "original value" should not change, and especially not just > by using `C-h v'. It is wrong to say the "original value was" > something that it never was and still is not! I don't see any > evidence that that behavior is "expected" or is by design. > >> So perhaps the thing to be fixed is that describe-variable >> should say "Standard value" rather than "Original value". > > I don't see how that would help. It will help by not misleading you into thinking that Emacs is showing you the original value. > > The doc you quote says that the std value is recomputed > _by Customize_, by reevaluating the saved expression. > Why should that affect `C-h v'? They both use the same `standard-value' as the "original" (but yes, I only know this because I read the code). > I'm guessing that these problems arise because there is > a type mismatch. But they still shouldn't manifest this > way, I think. No, sorry about this type mismatch, it's a complete red herring. Let's simplify to: (defcustom time (current-time-string) "the time" :type 'string) Basically the problem stems from passing a non-pure expression (meaning one that doesn't always give an `equal' result) as the STANDARD argument to defcustom. Actually, since so many places seem to assume they will always get the same result, I wonder why the expression rather than the result of evaluating it is being stored.