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 16:48:23 -0400 Message-ID: <871t32ilm0.fsf@users.sourceforge.net> References: >> <83vb0fgu83.fsf@gnu.org>>> <443f2e44-5167-48e7-abc6-cce1e243461e@default>> <8337nihpdw.fsf@gnu.org>> <83zipqg3e3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468097365 612 80.91.229.3 (9 Jul 2016 20:49:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2016 20: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 22:49: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 1bLzBZ-0005YY-Rv for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 22:49:14 +0200 Original-Received: from localhost ([::1]:52379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLzBZ-0003x4-51 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 16:49:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLzBS-0003wn-T7 for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 16:49:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLzBO-00028b-MI for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 16:49:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLzBO-00028T-IU for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 16:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bLzBO-0001ZC-4k for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 16:49: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 20: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.14680973145985 (code B ref 23926); Sat, 09 Jul 2016 20:49:02 +0000 Original-Received: (at 23926) by debbugs.gnu.org; 9 Jul 2016 20:48:34 +0000 Original-Received: from localhost ([127.0.0.1]:44406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLzAw-0001YT-HY for submit@debbugs.gnu.org; Sat, 09 Jul 2016 16:48:34 -0400 Original-Received: from mail-it0-f50.google.com ([209.85.214.50]:36919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLzAs-0001YC-UU for 23926@debbugs.gnu.org; Sat, 09 Jul 2016 16:48:32 -0400 Original-Received: by mail-it0-f50.google.com with SMTP id f6so28899819ith.0 for <23926@debbugs.gnu.org>; Sat, 09 Jul 2016 13:48:30 -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=mHiTSUr0Xlt69bDUH5EtNP+bGmuIuwzjUucoBR9j9Pk=; b=IRRu933nlxVH2wALGZhnyz2EgCUZcIsHSWdD4I69qTut11Dk0Rm0pDH4EHVZXfxqVg ilkXev36rbfXT3q7xoRLs13jpzw0ebb/pRLQAf+0fWqYi3JG1F2kqvDAO+nspQhJGU9w Kgg3MZ7vqNTOUaAwdeRi/9lWcRb/3Vyd0fEaC4eZ8P2tPD7RdjWTaFzu5MQpXbjmbcym SgH3iW99QCVZ990+e7Ez9pWLhPynWiCzMFKjTVYSSuyqB7e0YQtjnwn5/F3eOqqcejak uOAZum8/KM2S1tyqPmsr1VEffTcvM7MFbyx7t6z9KMULVeqQVABbwyU39GyTUzUgXhEh HWlg== 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=mHiTSUr0Xlt69bDUH5EtNP+bGmuIuwzjUucoBR9j9Pk=; b=dil40sBcXUw3raWE7pP7gZcT9AXkFOckOpQZJD+Ghfn4MicvOSO0qgSAAgIED0Zufc HKvU5FItI63uFAtUNrdYIysZxkP53z7B0GbSTbqeKkvepQ41OMr7pXzM9WEvEcwuj21t KXu3IvEed1Wzipi5Ycqd79uK2y4Tj2pZvGG0yaVYSneQsQJDOUOxx2tcyehh2PthzUzg wo4j1Fi8bPYbT0JyAzs2XK7l3zxGeIR6oP3R5qagThbnqg4c8Ezb5Km/2nqDrw+y31vY nQGA5Lab/rDmcKlWIsufnDRtI/4OmUWY/FmyBOUX30I1py/6yFrrkqLU7nK8hoWUyHE4 qkqA== X-Gm-Message-State: ALyK8tJFNa4LA20CCXci+JT2HrytSkrJEkdiocqvGI5CpIRO7L/lbHq4wxpbxpuhRuWWug== X-Received: by 10.36.69.4 with SMTP id y4mr4088989ita.49.1468097305436; Sat, 09 Jul 2016 13:48:25 -0700 (PDT) Original-Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44]) by smtp.googlemail.com with ESMTPSA id w78sm4068610ita.3.2016.07.09.13.48.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jul 2016 13:48:24 -0700 (PDT) In-Reply-To: <83zipqg3e3.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 Jul 2016 19:52:36 +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:120717 Archived-At: Eli Zaretskii writes: > Of course, I do. Maybe you don't realize how many times Emacs > evaluates the value of a defcustom, but I do. What about making Emacs evaluate it less? e.g. replace occurences of (eval (car (get var 'standard-value))) with (or (get var 'original-value) (let ((val (eval (car (get var 'standard-value))))) (put var 'original-value val) val)) Wrapped in a function of course, call it custom-get-standard-value?