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#23926: defcustom with STANDARD= gives confusing results Date: Sat, 09 Jul 2016 07:54:58 -0400 Message-ID: <87k2gvhvql.fsf@users.sourceforge.net> References: <83vb0fgu83.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468065385 11672 80.91.229.3 (9 Jul 2016 11:56:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2016 11:56:25 +0000 (UTC) Cc: 23926@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 09 13:56:14 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 1bLqrl-0008OW-TE for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 13:56:14 +0200 Original-Received: from localhost ([::1]:49968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLqrk-0005Mp-Vd for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 07:56:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLqre-0005LU-Si for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 07:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLqra-0001iY-PN for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 07:56:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLqra-0001iT-ME for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 07:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bLqra-0005fy-Bk for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 07:56: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: Sat, 09 Jul 2016 11:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23926 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23926-submit@debbugs.gnu.org id=B23926.146806530821748 (code B ref 23926); Sat, 09 Jul 2016 11:56:02 +0000 Original-Received: (at 23926) by debbugs.gnu.org; 9 Jul 2016 11:55:08 +0000 Original-Received: from localhost ([127.0.0.1]:43289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLqqi-0005ed-9Z for submit@debbugs.gnu.org; Sat, 09 Jul 2016 07:55:08 -0400 Original-Received: from mail-it0-f54.google.com ([209.85.214.54]:35020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLqqg-0005dz-8E; Sat, 09 Jul 2016 07:55:06 -0400 Original-Received: by mail-it0-f54.google.com with SMTP id u186so28358672ita.0; Sat, 09 Jul 2016 04:55:06 -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=4XgNw1PEdy/Q9sdN6HE9iV4vjUZdWfkzc1P2jN0YO2Q=; b=bJbKGKV1nr67TVLUaiqeHNHirLbHdnriq7WniXV/CHHx55cH34x3L9W/IIQ1XNyZA6 +c/hDA9ehKP6iV45f7dejcq788DOqVyO7pjAgOr9lXBvMe0I/KK+sSZv73Yjm5iqTxJG tBbIfLUaNr9LdIW9Es5XDDSCkStj596VNEhcUZobzm0roMDjz0EnwOgrcQZw6sIMpywp 9eEgs+lHrZpqXR4fp/B7G2gXqcdorhrPKcO7aBi3sRp5JHZvCsz+SV4REzYjT9yqYSdC YDwb7vDYNqYGlFsI+2R6eM+P104dNmhc7SIDM//T3+PXNHovZWVjsGHRltg5VNYbINkn 1dsA== 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=4XgNw1PEdy/Q9sdN6HE9iV4vjUZdWfkzc1P2jN0YO2Q=; b=lIfdsBPRBhktqi7uPwkRbcHRX5U9qrvznbDkmvhyFnTOuXtsNS9AOnVdfQfho9qzy/ j4RQl44m4quLDiJ6qRsR962wg9NM9pKsYiQEM1BGujojVqzK6jYR9O0MXmPHY28xIE4j ML4Crl9l3unoiMgRFrBMzfxXIaH+/zCgLXV59QzkqPd6X62g8c6TkxoM2/RWQKpoe7cs Agf9pcvCh7rmVK/jbvy+HGFsQsizOzme4+zZ0G1J15zfSEb2lgbNOsP3r1jBt2S0K8Uy V9APrbWl1WKdfV9BEdUI228ZJUClBCuByYgL7ZDkTaetlPrT0Fu5JsKAV9BdgrBgHuzd PDzw== X-Gm-Message-State: ALyK8tK4aCWMqUU+KL6bLjPRVQCa3zxkMvADz0aUo3wkhuVcWTUeGNk+UF4UOL0bd+0vjw== X-Received: by 10.36.248.6 with SMTP id a6mr7075001ith.25.1468065300394; Sat, 09 Jul 2016 04:55:00 -0700 (PDT) Original-Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44]) by smtp.googlemail.com with ESMTPSA id o15sm2702421ith.2.2016.07.09.04.54.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jul 2016 04:54:59 -0700 (PDT) In-Reply-To: <83vb0fgu83.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 Jul 2016 10:13:00 +0300") 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:120675 Archived-At: retitle 23926 defcustom with STANDARD= gives confusing results quit Eli Zaretskii writes: >> From: Noam Postavsky >> Date: Fri, 8 Jul 2016 23:11:02 -0400 >> >> A trivial example: >> >> (defcustom time (current-time-string) >> "the time" >> :type 'string) >> >> Then try to M-x customize-options RET time RET, it will show with >> state "CHANGED outside Customize." Similarly, doing v time RET >> shows the "original value" as the current time, not the actual value >> when `time' was defined. > > Why is this a bug? Seems to be expected behavior to me. Yeah, it seems expected because you're familiar with the code. But it causes Emacs to claim the "original" value is different from what it originally was, which seems nonsensical. I wonder why Emacs saves only the original expression and not the actual original value?