From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: '(emacs)Init Syntax' customizable minor mode variables Date: Fri, 12 Aug 2022 04:14:48 +0200 Message-ID: <87zggadx7r.fsf@web.de> References: <87fsi35u22.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39698"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Drew Adams , help-gnu-emacs@gnu.org To: YE Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 12 04:15:43 2022 Return-path: Envelope-to: geh-help-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 1oMKD9-000AB1-BH for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 Aug 2022 04:15:43 +0200 Original-Received: from localhost ([::1]:44830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMKD7-0002Q9-F9 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Aug 2022 22:15:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMKCZ-0002Pz-CW for help-gnu-emacs@gnu.org; Thu, 11 Aug 2022 22:15:07 -0400 Original-Received: from mout.web.de ([217.72.192.78]:54661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMKCX-0001Rv-Gh for help-gnu-emacs@gnu.org; Thu, 11 Aug 2022 22:15:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1660270490; bh=Q+5BfFNNhEH+s7CBs6ysCjEMnch0doXauCLpmQBS7Ls=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=pMtKZwa8S6DX+bf4U6h0edhQr4/o0qw3apQHyzFFWTz39YoV/yQm/M5EwMFN7eOCq vld7myFrmQmq3lPKd5Ihc6FBi4DBJp7EPOf0uHrFovB+MxbeObbJYdMAF1/QBIG4e1 TdZDYZFcskIIQ6nnyDJBXVI6cG2Gx9WkntIoBhPw= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([84.57.248.18]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MSIJ0-1nyAa22oB6-00Sefe; Fri, 12 Aug 2022 04:14:50 +0200 In-Reply-To: (YE's message of "Thu, 11 Aug 2022 12:19:58 +0300") X-Provags-ID: V03:K1:ZsLWCHAImUrrF+KOaqQbcCPlAJBlpBPiSSN8f8msyAd0+pn5S4M uUkIfEHwfzYxrmJrFmCyHLPMwfUAxYkzDeJGO/zFujkd74RbcnEhqeV35mygPL5Biu3Tm6r uqtvpjbNDX04gj0Bts2UngaoVVpAJQ3XFiUAc5iCbESM0mR5twKfkcwTYJdWKjKBqePLAB5 9PFjLLJetNEvRk5UsUovQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:QEUaaGFr/98=:csGbhm0rpIVL8SJLcOCRac U/ffJ/jElxd6HMzAGy/Q7edDpARkm+4akK+T76V+WFOJTUMZfNuWq+GppmLLTd5cAhHY5ONib LLIefYCyxheLH0RFS//G1Im88LAACfYHlInE/DVjkC5RluyCeFwI4YH4ajg8VTxFwKjdQEwJD T8MgyW5lJRNvd3qsoZpDawYvEYssH1GZ2AtkbD6Q+xkFX89B90uZ9LKMxNIb16Q6Nppfw3yqu Qj+BUSZHkEmAv6nyFfYQx4UG1JVLg0iiXtAD/k1Z8YTX5tgi9Upwg7RAPg+uAVaSOKNkhxeoP Ml+GCHYEJZ4N89PpoFBfPA36mHw8tRm+Mo6iFC56gfYvx1+4ZGIf4Ywh4st67lmuLxlTASXSu oH2epCbIjZ+bxbwSim/4cjS9dGrkNklytCcQyPOwymbtRXw6/5h5GsH/hyC86Ov/hVLQYtHK9 2/VLJYKdHE/Q3liISWVKzioyA5B+tYHKyoOsnAXJbps5u+7EOqRtcLoFXNB4nLkbnIy14YF2o wW7S4j3CGM5LHm0SNUXfxGSfscwHz1l0dLq/fW1tetpVrLE/2iV2pc8F8wd+IhgYpnh+596Gq qAekcBXBo6A4bYv+KUdvfBEx/U3PSfkxMUZPRYHH2Qjbsz0rkeu31KhGMTip2GSHJyyPSTZJQ sBJD70lvD550sAvq5EVFrpGD8P2BBi0KvFL+w8pIlbEBu/1eUPQqhfYvjC9uyMt8LYewejDEE xGYVDQM0YVifgo6ls2gnywVEg2c/mz+JJYxKlsYFi83uYGjdhPgKHOGj4I057JAbq6h/jl26 Received-SPF: pass client-ip=217.72.192.78; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138811 Archived-At: YE writes: > That's right. It's hard to comprehend that sentence also because one > normally doesn't expect variables to perform an action, especially "to > enable the mode". Typically, one expects functions to do the action and > variables to store values. In that case they are more than plain Elisp variables, in some sense. It's good that we have a different name: "(user) options". > Does it mean the word "enable" in that paragraph should be read not as > "turn on the minor mode" but rather "store a state marker for the turned > on minor mode"? If it is so, than the source of my confusion regarding > that sentence is found. > > The discussed sentence: > > Some customizable minor mode variables do special things to enable > > the mode when you set them with Customize, but ordinary =E2=80=98setq= =E2=80=99 won=E2=80=99t do > > that; to enable the mode in your init file, call the minor mode > command. Note that what I mentioned was only describing one possibility (of a minority of minor modes). I think in the majority of cases the setter just calls the mode function (`custom-set-minor-mode'). Doing "special things" is probably an exception. So what you should keep in mind that (setq MODE-VARIABLE VALUE) doesn't turn the mode in a lot of cases, but Customize is more user friendly (as a graphical interface), so it takes care of all cases and setting the mode variable from Customize should always work. In most cases setting the mode variable from Customize will just call the mode function. Michael.