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#23926: defcustom with STANDARD= gives confusing results Date: Sat, 9 Jul 2016 09:48:18 -0400 Message-ID: References: <83vb0fgu83.fsf@gnu.org> <87k2gvhvql.fsf@users.sourceforge.net> <838txbgfgx.fsf@gnu.org> <837fcvgdho.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1468072165 7207 80.91.229.3 (9 Jul 2016 13:49:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2016 13:49: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 15:49: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 1bLsd7-0000cV-Pv for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 15:49:13 +0200 Original-Received: from localhost ([::1]:51023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLsd6-0002dP-W6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 09:49:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLsd1-0002d4-2w for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 09:49:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLscw-0008Tf-Ul for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 09:49:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLscw-0008TS-Rm for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 09:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bLscw-0003IH-II for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 09:49: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: Sat, 09 Jul 2016 13:49: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.146807210612618 (code B ref 23926); Sat, 09 Jul 2016 13:49:02 +0000 Original-Received: (at 23926) by debbugs.gnu.org; 9 Jul 2016 13:48:26 +0000 Original-Received: from localhost ([127.0.0.1]:43351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLscM-0003HS-IP for submit@debbugs.gnu.org; Sat, 09 Jul 2016 09:48:26 -0400 Original-Received: from mail-oi0-f45.google.com ([209.85.218.45]:34652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLscK-0003HF-94 for 23926@debbugs.gnu.org; Sat, 09 Jul 2016 09:48:25 -0400 Original-Received: by mail-oi0-f45.google.com with SMTP id s66so94325645oif.1 for <23926@debbugs.gnu.org>; Sat, 09 Jul 2016 06:48:24 -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=0EDLzxUgd3DF4YhxuEcVnXDi5ix0e4xJqbhN3oBwaNo=; b=Ps8laQ65CZsTiCblizbSzP6kmqdnLNjl1p7Ws0VxaDRBTGzAWDKoSVey089Qzl3nUv fOye33ezrUYnSobfJcAtmFXDZK3/41TcKzdkLl2PuBYIBTOiU5OChI/bjWfucisAiZIP lQWdvlKWMKAia956sfUYrdeuvE4HzJ7fq5qPbM/UTsO0MJqGQleynVbdLGv29nHkBgdQ fJ5bBkrxvLgro6ylMmtwEIg34tC86Ysb8arbFgDl/cIHaLfxMRmWLEuP1+wrcsGzSfZX mgZQa87vZeB/NrapYLjvRzyskIViqxDkb7b4pS4t3P7x/VCb1jGdN+FiGt20JG4HLoZe 64Ow== 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=0EDLzxUgd3DF4YhxuEcVnXDi5ix0e4xJqbhN3oBwaNo=; b=mLfDZOGfgUx2HBVIfpeVgNCDP3BMYNpOwQhMjID/c7JY9tTmQt0EGnJRtQFCOliyHa 1lF0nNX+Xbz7ydF1ZidZa5vcHOPn+q0aen5z8l6CePENJuyHWQs5rIlW+e3i6pw4FacM QLdCU80XSJt3Pd0l8fvNNwp0f+tLdy+KyEAbKMeHwPSkdzHnXHynaK3qxI7UyRfbqDxH DxcvByw7R1YSJ29ctDmKb6S3al1gH2oJOJb2yqTEmhrC0F0bPcNGm/CSqGG235IOMdIU VVq7r2OHu5CxYyJyGUXrsiFVyKJfoABDXElLen1bO/nPkvW5gAYL/A75ItAomYEYajr2 +Qlg== X-Gm-Message-State: ALyK8tKi1xdeyOOSOxCUgbPL4T+9d2nEBjjoIXAe0dnAbcM77FJkD9DP12Sdb6dyk00m+pVU5Sene/jWuOjmRA== X-Received: by 10.157.17.2 with SMTP id g2mr6109228ote.196.1468072098569; Sat, 09 Jul 2016 06:48:18 -0700 (PDT) Original-Received: by 10.157.4.197 with HTTP; Sat, 9 Jul 2016 06:48:18 -0700 (PDT) In-Reply-To: <837fcvgdho.fsf@gnu.org> X-Google-Sender-Auth: 48YPA9ZGdS77DAdIjgd8SH4vHJs 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:120687 Archived-At: On Sat, Jul 9, 2016 at 9:14 AM, Eli Zaretskii wrote: > > For now, we just compare to the > previous recorded value (computed at dump time, I presume). Dump time? This doesn't apply to non-preloaded libraries though, right? > >> >> I wonder why Emacs saves only the original expression and not the >> >> actual original value? >> > >> > It does, but then it reevaluates at startup. >> >> It seems it's also reevaluated every time the variable is looked at >> with customize, or describe-variable. > > Quite possibly, we reevaluate a defcustom when in doubt. > > The question is, given the above, do we need to actually do anything > with this report, except close it? Either really save the original value, or don't call it the "original value". We can't use "default value" because that's already used for the non-buffer local value, unfortunately. I think "standard value" could work, though Drew said it was unclear.