From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#37627: Document how to bypass the Easy Customization interface Date: Sat, 05 Oct 2019 07:55:11 +0800 Message-ID: <87muegjcbk.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="133583"; mail-complaints-to="usenet@blaine.gmane.org" To: 37627@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 05 06:32:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iGbjq-000Yc6-5u for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Oct 2019 06:32:14 +0200 Original-Received: from localhost ([::1]:54250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGbjo-0003m3-BI for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Oct 2019 00:32:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42679) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGbjf-0003lx-Ak for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2019 00:32:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGbje-0001eF-4P for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2019 00:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34784) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGbje-0001e2-1C for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2019 00:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iGbjd-0005IK-RM for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2019 00:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Oct 2019 04:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37627 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157024990820330 (code B ref -1); Sat, 05 Oct 2019 04:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Oct 2019 04:31:48 +0000 Original-Received: from localhost ([127.0.0.1]:43605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGbjP-0005Hp-RG for submit@debbugs.gnu.org; Sat, 05 Oct 2019 00:31:48 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:39755) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGbjM-0005Hg-KK for submit@debbugs.gnu.org; Sat, 05 Oct 2019 00:31:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42651) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGbjL-0003kK-6p for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2019 00:31:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGbjJ-0001I0-LB for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2019 00:31:42 -0400 Original-Received: from buffalo.birch.relay.mailchannels.net ([23.83.209.24]:16173) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iGbjJ-0001F9-1I for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2019 00:31:41 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 370B82166C for ; Sat, 5 Oct 2019 04:31:39 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a33.g.dreamhost.com (100-96-171-201.trex.outbound.svc.cluster.local [100.96.171.201]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id C65EC20E84 for ; Sat, 5 Oct 2019 04:31:38 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a33.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.3); Sat, 05 Oct 2019 04:31:39 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Average-Rock: 1ea979eb066db532_1570249899024_113070464 X-MC-Loop-Signature: 1570249899024:1893773603 X-MC-Ingress-Time: 1570249899024 Original-Received: from pdx1-sub0-mail-a33.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a33.g.dreamhost.com (Postfix) with ESMTP id 48D428021D for ; Fri, 4 Oct 2019 21:31:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=eSPsxsKvi1rOgNP7bt C5jnKt3zA=; b=YVleN+kyPEaC6xTUzyp4fZu06RL28ZY8YRtDHlrs4mjmA59Dfy lp4t61V2mUyTXGpycqrDRmc0JlIIoLlFNLn1PZaIm1r4smPNTf6/ET2o+W6GEaZb zC8lLv+6+/ytrnMDfwJgzxY0Kp/ZjwSywzAqraP5n8O7e5y/NTj518SMo= Original-Received: from jidanni.org (220-140-4-165.dynamic-ip.hinet.net [220.140.4.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a33.g.dreamhost.com (Postfix) with ESMTPSA id 7CB9380207 for ; Fri, 4 Oct 2019 21:31:32 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a33 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrhedvgdekhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgfgsehtkeertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepvddvtddrudegtddrgedrudeiheenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpedvvddtrddugedtrdegrdduieehpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedu X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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: 209.51.188.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:168349 Archived-At: On (info "(emacs) Easy Customization") we read ... To browse and alter settings (both variables and faces), type =E2=80= =98M-x customize=E2=80=99. This creates a =E2=80=9Ccustomization buffer=E2=80= =9D, which lets you navigate through a logically organized list of settings, edit and set their values, and save them permanently. Please add: However certain older users are bad at using interfaces to set variables and just want to set them the old fashioned way by hand with setq in their .emacs file. It gives them more feelings of control. For them, please see the final section below. And to * Menu: * Customization Groups:: How settings are classified. * Browsing Custom:: Browsing and searching for settings. * Changing a Variable:: How to edit an option=E2=80=99s value and se= t the option. * Saving Customizations:: Saving customizations for future Emacs sessi= ons. * Face Customization:: How to edit the attributes of a face. * Specific Customization:: Customizing specific settings or groups. * Custom Themes:: Collections of customization settings. * Creating Custom Themes:: How to create a new custom theme. Please add * Setting via .emacs:: Bypassing the Customization Interface And in that section say: Let's say you see in some .el file (defvar csv-comment-start nil "String that starts a comment line, or nil if no comment syntax. Such comment lines are ignored by CSV mode commands. This variable is buffer local\; its default value is that of `csv-comment-start-default'. It is set by the function `csv-set-comment-start' -- do not set it directly!") (make-variable-buffer-local 'csv-comment-start) (defcustom csv-comment-start-default "#" "String that starts a comment line, or nil if no comment syntax. Such comment lines are ignored by CSV mode commands. Default value of buffer-local variable `csv-comment-start'. Changing this variable does not affect any existing CSV mode buffer." :type '(choice (const :tag "None" nil) string) :set (lambda (variable value) (custom-set-default variable value) (setq-default csv-comment-start value))) And we simply want to set the comment start to nil in our .emacs. But we are scared by the warning about not setting it directly, and we *do not want to use the "customization interface" to set it, we just want to set it in our .emacs with a single setq or whatever line*. Well no reason for despair. In your .emacs simply do (setq csv-comment-start-default nil) So it turns out whenever you see a "defcustom", you can just use setq to set it in your .emacs, without needing help from the Customization Interface if you don't want it.