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: Thu, 09 Sep 2021 07:43:44 +0000 Message-ID: References: <97d3ff2c-9e72-4004-88a9-08130ac99a74@default> <838s0fpixr.fsf@gnu.org> <83k0jtr45c.fsf@gnu.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="32998"; mail-complaints-to="usenet@ciao.gmane.io" Cc: hmelman@gmail.com, 21695@debbugs.gnu.org To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 09 09:44:13 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 1mOEjE-0008PY-Oz for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Sep 2021 09:44:13 +0200 Original-Received: from localhost ([::1]:52694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOEjD-0002VW-6e for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Sep 2021 03:44:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOEj4-0002VI-Gu for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 03:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50743) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOEj4-0000XF-A2 for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 03:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOEj4-0002zt-5W for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 03:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Sep 2021 07:44:02 +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.163117343111497 (code B ref 21695); Thu, 09 Sep 2021 07:44:02 +0000 Original-Received: (at 21695) by debbugs.gnu.org; 9 Sep 2021 07:43:51 +0000 Original-Received: from localhost ([127.0.0.1]:34056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOEit-0002zM-Co for submit@debbugs.gnu.org; Thu, 09 Sep 2021 03:43:51 -0400 Original-Received: from heytings.org ([95.142.160.155]:53282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOEio-0002zB-16 for 21695@debbugs.gnu.org; Thu, 09 Sep 2021 03:43:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1631173424; bh=53++7nsmTmLrbDJVIzjfj0H+8qUJeJIdFPOQx6hkiso=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=bibMSVtm4RMZk2NThDAtQkJVbmqbdGuBg4B17bGSlLsC2Qy7HCKinFTlAcVbf9JYP 5pYqVgHOfRIcaRDhBv6q0/2CqTyjJpD3VzmApofbGwd3HzVY2OmZx/+L/moqEju8MQ Onah0bLR6gVRNmxoN9PbpwA6uwGoYzkVjeNV4517jOYVTEcq8CHYxKVImnQWi/TvAw aNCz6Cd1IdKNyA/7CKq6miV8Vi4ij/cwAO4x6Tc7puI5WJLs3zjMqVi7CTJZ+z+2Fn 3520Up9YVlKsTDcs+oIvNyt2dVlQC/eJaVePgjDNQHNJtL1f4RoQLiIDI/4FhbG/MN 3TcH9WqMN/o7w== In-Reply-To: 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:213883 Archived-At: > > We would determine which variables could actually have a problem. > > 1. Get the list of variables that use :set. > > 2. For each of those variables, see if it is used in any source file > other than the one that contains the defcustom. A script can do this. > Make a list of only those variables. > > 3. Now we have a much shorter list. We could use the whole of that > list. > > 4. Or we could check some of these variables by hand and see whether we > can prove some of them have no real problem. That could make the list > shorter. > > 5. After the init files, we add code to check each of those variables. > If the current value != the default, set the variable again to the same > value using customize-set-variable. > Instead of building such a list, is this not something that could be done inside Fsetq, by checking whether Fget (sym, Qcustom_set) is non-nil, and if so, issue an error/warning?