From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#21695: 25.0.50; Change most occurrences of `setq' in Emacs manual to `customize-set-variable'? Really? Date: Fri, 10 Sep 2021 14:26:35 +0000 Message-ID: References: <97d3ff2c-9e72-4004-88a9-08130ac99a74@default> <838s0fpixr.fsf@gnu.org> <83k0jtr45c.fsf@gnu.org> <87v93avtoe.fsf@gnus.org> <87r1dyvtav.fsf@gnus.org> <87mtolx6de.fsf@gnus.org> <87ilz9x5c8.fsf@gnus.org> <87y284rb1z.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7429"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 21695@debbugs.gnu.org, hmelman@gmail.com, Richard Stallman To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 10 16:27:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOhUj-0001gZ-SY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Sep 2021 16:27:09 +0200 Original-Received: from localhost ([::1]:45260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOhUi-0002yu-KN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Sep 2021 10:27:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOhUc-0002yQ-8W for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2021 10:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOhUc-0007IN-1K for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2021 10:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOhUb-0000Pz-UQ for bug-gnu-emacs@gnu.org; Fri, 10 Sep 2021 10:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Sep 2021 14:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21695 X-GNU-PR-Package: emacs Original-Received: via spool by 21695-submit@debbugs.gnu.org id=B21695.16312839991574 (code B ref 21695); Fri, 10 Sep 2021 14:27:01 +0000 Original-Received: (at 21695) by debbugs.gnu.org; 10 Sep 2021 14:26:39 +0000 Original-Received: from localhost ([127.0.0.1]:38922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOhUF-0000PJ-8U for submit@debbugs.gnu.org; Fri, 10 Sep 2021 10:26:39 -0400 Original-Received: from heytings.org ([95.142.160.155]:55116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOhUD-0000PB-42 for 21695@debbugs.gnu.org; Fri, 10 Sep 2021 10:26:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1631283996; bh=cmMLm/+QJ6l7R6Nl2SzXfI313+aJRegazpSq2ln9hu0=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=ATlTdU4nLVozP8bOAUDldI/pw0sOOrtgkovmX4FCZh4s2Guv3GBd0nwfrMpXD0so9 qZFyEbPUDXnDyx5wG2GVcNJSMBQTnbdNoW5zelDjDC7iuoeSs5ttGaHIeCMU5eEgjV o3ovZWAKJIt1eUEEZcC3dN3r0+YECdLVOX3Or80tRAdmAtbMF34DdSF0VaH/PLzOyc 4ijRjR08pyslHoj540z2/BheO8+lArcx9ukw87F/ntBE8iQ7p7PgXNCvt9FepfkEc2 N2XaNsvYV2EcWy0tcj9eA5oAbC51wiDWJGrMBbcwTxvAfjI/zKWhD3sEN8Lzq8tixe TVcUuhfkXSoWA== In-Reply-To: <87y284rb1z.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:214017 Archived-At: >> Then I still don't get what you mean. An autoloaded but not yet loaded >> variable doesn't have its custom-set property set, so in that case >> there would be no warning with the proposed patch. Warnings are >> displayed only for customs variables that are "fully" loaded, and who >> have a :set property. > > Doesn't ;;;###autoload pull the entire defcustom form into loaddefs.el? > > But I see that we autoload basically no defcustoms (five, apparently), > so I guess it's a moot point. > One of them is allout-auto-activation. To see that autoloaded variables do not have a custom-set property until they are actually loaded, you can use: (defmacro check (sym) `(when (get ,sym 'custom-set) (display-warning 'setq (format "`%s' should be set with `customize-set-variable'" ,sym)))) (check 'allout-auto-activation) (load "allout") (check 'allout-auto-activation)