From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#25770: delayed-init custom variables are not special Date: Tue, 21 Feb 2017 18:41:42 +0900 Message-ID: <87wpcj519l.fsf@calancha-pc> References: <9dmvdljqay.fsf@fencepost.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487670474 25474 195.159.176.226 (21 Feb 2017 09:47:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 21 Feb 2017 09:47:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 25770@debbugs.gnu.org, Stefan Monnier , tino.calancha@gmail.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 21 10:47:48 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cg72w-000677-Vu for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Feb 2017 10:47:47 +0100 Original-Received: from localhost ([::1]:43294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cg732-0001IR-GR for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Feb 2017 04:47:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cg6xR-0004jZ-TF for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 04:42:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cg6xO-0007in-RC for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 04:42:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50011) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cg6xO-0007id-Nx for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 04:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cg6xO-00027q-Cz for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 04:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Feb 2017 09:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25770 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25770-submit@debbugs.gnu.org id=B25770.14876701168158 (code B ref 25770); Tue, 21 Feb 2017 09:42:02 +0000 Original-Received: (at 25770) by debbugs.gnu.org; 21 Feb 2017 09:41:56 +0000 Original-Received: from localhost ([127.0.0.1]:48210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cg6xI-00027W-2S for submit@debbugs.gnu.org; Tue, 21 Feb 2017 04:41:56 -0500 Original-Received: from mail-pg0-f67.google.com ([74.125.83.67]:34468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cg6xG-00027J-JU for 25770@debbugs.gnu.org; Tue, 21 Feb 2017 04:41:54 -0500 Original-Received: by mail-pg0-f67.google.com with SMTP id s67so6895583pgb.1 for <25770@debbugs.gnu.org>; Tue, 21 Feb 2017 01:41:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Mt+ccXEqjm1n/l9KDD8PS/1PnsWkYL6j8ms0RToFIVQ=; b=CV/6LxCVuM2xKZ55O5ZyvDwkrbtQPmaRq9U11NEs7F6N2Xamh+h7+6FtUwJGcowpif pdTzNxVXCgyLvNhLXZlX0mWWjnHjTSQXxJPbxd2QkzG8onHuDzZx/gBGSg/fSUyEWs/N BOHu473KmQUoc/NvvkTKMHT8BfDpEIbbhPjD2a06oD8bsLwiPk4hHDT9rgx44vLqK8xR 5iQi5U8/2thcBlt+Vaz3XqFn/BQigr0Hpy9r+21hvWgKuBMai+Z98G8CZY0riyP/JkBe zj9o7DDG22+CT3urRIOvToDLFB8zeIDDIaA+thBfhnD2gO1tc2WHEwGYTH1kAzW/QJ7v Q0JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Mt+ccXEqjm1n/l9KDD8PS/1PnsWkYL6j8ms0RToFIVQ=; b=qM/C9aCE1CZ0rec6GvdRgk8M4AQe5GqWrGn8TUHTfUp62u/E0v+cFLsHoaGeeaPZtW 2pYsf8O5+EPJqD2CmUtU32g+d4avLoi2ROqD6u5zI4/InFEIzUPJn5wBnDtgqPB6lJ1X iRfyz0VqDlMsWPPSkWhSBJ7KZprgXiKA9H7IUxLfxiS/Z4zE5uE8MjlbJfdV83qX49hj RKF0R561ABKAtSu32Y51JKewDrnAA4qZ9pTHopvvPSoXjqbLYgwzLdmbiwIgTv3QwD+W RI6h8rJ3fd2S6NjX/3Yj6ikWz4Vovyc7mSF0iv9rTBlj77qoqHG9m+LL5psgCN855qUw wn0A== X-Gm-Message-State: AMke39kzrsNTCqODRNm48TBdShhCpnPigU2RDyk7ew5TvhOMrwmmWr7pBd463jwoPk65jg== X-Received: by 10.98.194.153 with SMTP id w25mr31671032pfk.181.1487670108543; Tue, 21 Feb 2017 01:41:48 -0800 (PST) Original-Received: from calancha-pc (104.81.147.124.dy.bbexcite.jp. [124.147.81.104]) by smtp.gmail.com with ESMTPSA id b7sm39836419pfg.53.2017.02.21.01.41.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Feb 2017 01:41:48 -0800 (PST) In-Reply-To: (Glenn Morris's message of "Fri, 17 Feb 2017 22:22:05 -0500") 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:129614 Archived-At: Glenn Morris writes: > Glenn Morris wrote: > >> It seems that defcustoms that use custom-initialize-delay end up not >> being special. > > Maybe something like this? > > --- i/lisp/custom.el > +++ w/lisp/custom.el > @@ -764,9 +764,12 @@ custom-reevaluate-setting > Use the :set function to do so. This is useful for customizable options > that are defined before their standard value can really be computed. > E.g. dumped variables whose default depends on run-time information." > - (funcall (or (get symbol 'custom-set) 'set-default) > - symbol > - (eval (car (or (get symbol 'saved-value) (get symbol 'standard-value)))))) > + (let ((val (car (or (get symbol 'saved-value) > + (get symbol 'standard-value))))) > + (if (default-boundp symbol) > + (funcall (or (get symbol 'custom-set) 'set-default) symbol (eval val)) > + (eval `(defvar ,symbol ,val))))) > + After commit 96cea19842b577eb4f2e057d702aea54d736233e emacs -Q lisp/subr.el shows no fontification, even though the mode line says that the buffer is in Emacs Lisp mode.