From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#21695: 25.0.50; Change most occurrences of `setq' in Emacs manual to `customize-set-variable'? Really? Date: Tue, 07 Sep 2021 23:23:49 -0400 Message-ID: References: <97d3ff2c-9e72-4004-88a9-08130ac99a74@default> <838s0fpixr.fsf@gnu.org> <83k0jtr45c.fsf@gnu.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7054"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 21695@debbugs.gnu.org, hmelman@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 08 05:24:16 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 1mNoC7-0001bn-TG for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Sep 2021 05:24:15 +0200 Original-Received: from localhost ([::1]:58286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNoC6-0001yR-4z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 23:24:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNoBu-0001uX-Ll for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 23:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNoBu-000233-EF for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 23:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNoBu-0004xK-6L for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 23:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Sep 2021 03:24: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.163107143719038 (code B ref 21695); Wed, 08 Sep 2021 03:24:02 +0000 Original-Received: (at 21695) by debbugs.gnu.org; 8 Sep 2021 03:23:57 +0000 Original-Received: from localhost ([127.0.0.1]:58138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNoBo-0004x0-LI for submit@debbugs.gnu.org; Tue, 07 Sep 2021 23:23:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNoBn-0004wo-GU for 21695@debbugs.gnu.org; Tue, 07 Sep 2021 23:23:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48416) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNoBi-0001rV-BU; Tue, 07 Sep 2021 23:23:50 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1mNoBh-0006uL-L1; Tue, 07 Sep 2021 23:23:49 -0400 In-Reply-To: <83k0jtr45c.fsf@gnu.org> (message from Eli Zaretskii on Mon, 06 Sep 2021 20:43:27 +0300) 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:213765 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > Here's a way: after the init files finish, look at the value of the > > variable, and if it does not equal the default, and this value was not > > properly installed with the :set method, invoke that variable's :set > > method. > How would we know which variables to look 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. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)