From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#21695: 25.0.50; Change most occurrences of `setq' in Emacs manual to `customize-set-variable'? Really? Date: Wed, 01 Sep 2021 14:48:55 +0200 Message-ID: <878s0g796w.fsf@gmail.com> References: <97d3ff2c-9e72-4004-88a9-08130ac99a74@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5430"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: ke.vigouroux@laposte.net, 21695@debbugs.gnu.org, larsi@gnus.org To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 01 14:57:36 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 1mLPo8-0001BL-Dv for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 14:57:36 +0200 Original-Received: from localhost ([::1]:42482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLPo7-0002RA-89 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 08:57:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLPgo-0002wX-L7 for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 08:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53301) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLPgo-0005I7-C6 for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 08:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLPgo-0005io-9F for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 08:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Sep 2021 12:50: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.163050054521921 (code B ref 21695); Wed, 01 Sep 2021 12:50:02 +0000 Original-Received: (at 21695) by debbugs.gnu.org; 1 Sep 2021 12:49:05 +0000 Original-Received: from localhost ([127.0.0.1]:36614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLPfs-0005hV-RJ for submit@debbugs.gnu.org; Wed, 01 Sep 2021 08:49:05 -0400 Original-Received: from mail-wm1-f44.google.com ([209.85.128.44]:35650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLPfr-0005gh-DH for 21695@debbugs.gnu.org; Wed, 01 Sep 2021 08:49:03 -0400 Original-Received: by mail-wm1-f44.google.com with SMTP id z9-20020a7bc149000000b002e8861aff59so4716919wmi.0 for <21695@debbugs.gnu.org>; Wed, 01 Sep 2021 05:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=fJXXoypYocWLTAHjPbhCezBII6YUY90mPOGf/57ihmo=; b=G6mT+2tpfSXEdxYREOqLnlmsWZQGLICLa1e+G9Ge5Fo/05kiGnUhuDpTnRSltGaIRp 4MUM2DmS8utm/tkdfx0WJCg2oo1OgO2UQXe3/qjLiDHW2LBUaZuSFWpekYveCnK9CB4R 5F5mqQnlKJ8539ROERaS+jOQQ6uCFIc00iXrYawzAlDZPZ1RMR1imez0cC8f+2mbCPKp KAqF6uUYpNLIAQt1oUT67hQwFw0BaB5upmsB+OA7WirJsK5RDp/q6mM7Sbbe2BtCI/IS WAkuMjrp0QJ9X2/O9gs0INR89Qq/LRiMxHWQSmVDklDndr+6F/aLIcpEc54uH8u7yJag zDeg== 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=fJXXoypYocWLTAHjPbhCezBII6YUY90mPOGf/57ihmo=; b=NClM4EnkBEyBEBuS8bQM/e4OuaBZL111PYE0bnu9/4JHQxhRO168omp5OhceWH1JNv mmf8lqW1ZqSsVtoBhB3y49+UkHD5yKvNnclLrC7b1FY6C4DLoBZ/xxX2BrUsc/TpOUQK C7DHdmeyBDLrRt6opWGitY1QEMK7MPrtBXVPnjiQBvAytqWZKDa4rRYOx06DJ+sY3n8o o8T4HRepUfS0fS6TICXZEU4J5fbs2KRveFY19kIDNLqqtC/lDczA5MJkTJYyoJDkxiy2 UAVFyxkQjS4GX/u+pjwIM/DwWlIPlruqhysEDhnepQH0YhzXgLNYYC+jC662aBaR78Jc LFNg== X-Gm-Message-State: AOAM532Vyh11EkXTnt2HblVKpqps4kT8ejj9MkjvO7NMqzm4pnDXR60a ln4H61OQs5xCis2o1fFX5xE= X-Google-Smtp-Source: ABdhPJylwSKjZAFtqajYgKlVNTA4Bk7EGUmPsaO8LsJKwTe7smB+7WU8k0qzNX+KHa8Kyl3s2Wtksg== X-Received: by 2002:a05:600c:428a:: with SMTP id v10mr9460950wmc.25.1630500537446; Wed, 01 Sep 2021 05:48:57 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::ae3f]) by smtp.gmail.com with ESMTPSA id v13sm21863480wrf.55.2021.09.01.05.48.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Sep 2021 05:48:57 -0700 (PDT) In-Reply-To: (Richard Stallman's message of "Mon, 30 Aug 2021 23:06:58 -0400") 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:213178 Archived-At: On Mon, 30 Aug 2021 at 23:06, Richard Stallman wrote: > [[[ 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. ]]] > > There are a few customization options that are not really variables > and need to be set with `customize-set-variable'. > > However, the rest of them are variables and normally set with `setq' > and friends. > > Telling users to set them all with `customize-set-variable' will be a > significant hassle. What's more, users will disregard this instruction. > `setq' is easy to remember and we all know it. > > Having a recommendation in the manual which users will generally > reject is in itself a problem. > > I think we should address this some other way. Here are some ideas. > > * indicate the few customization options > which are not really variables. > * tell people how to check whether > a customization options is really a variable. > * warn about setq for a customization option that isn't really a variable. I have encountered one pitfall with setq in my init files, but it has nothing to do with customize. Namely, if a variable is marked to automatically become buffer-local when set, then setq will only set it in the temporary buffer where init.el is evaluated. Maybe calling setq during init time on automatically buffer-local variables should generate a warning.