From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Auto Fill Comments Date: Tue, 1 Dec 2020 00:44:13 +0100 Message-ID: References: <871rgd6jzk.fsf@web.de> <87r1oclvkp.fsf@web.de> <87blffzq7f.fsf@web.de> <87wny2r1a1.fsf@web.de> <20201130222601.GA30426@tuxteam.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="21617"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 01 00:48:52 2020 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 1kjsua-0005VZ-9l for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 00:48:52 +0100 Original-Received: from localhost ([::1]:51226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjsuZ-0006aJ-4W for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 18:48:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjsqD-0005ur-6v for help-gnu-emacs@gnu.org; Mon, 30 Nov 2020 18:44:21 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:36663) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjsqB-0008NL-5t for help-gnu-emacs@gnu.org; Mon, 30 Nov 2020 18:44:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606779853; bh=paH1kD5qJwTvT3XKOcxMRGuzVS5ORANGOKPAUjUj0yE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=lvD2T00HPv64efy44tZmzS2U87DbZv5KyhKVxNAVghBJNBqzjn9bvQ1Q3/hkTpaLX ano7T/Giitpki7B9F/mvqE66Rk1Ukm9dWuyz8u8+EP3RzAVwPGXOFhq4V0x6zN93K6 ya8B27w6ar81a4gnlA+9rRiBpUSZC0VEU7C6hszA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs05.server.lan [172.19.170.173]) (via HTTP); Tue, 1 Dec 2020 00:44:13 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:WFYxwhjqKFwtVSAmhw29ZoMIPoT7df+uWJ4HsYZULtHSAwE/3G2R/QndjYLswMKGteb/w kxZ3qgei64N2pFwGq9GCcHN20o1W0yDxVeBYwMnVSFzXpkik/xDJr2FuZVkUO+5rdUz+sqkAZyfN ey40O1ZnIhmshylSZn+NKh/jy2+L4augd/VBKiHS6pVBVv+s8knYHuI2QpEm1PvleebfpOqGMjvS xGdwC1ARkPHnOsz87oEZv7z5lVy8UEGhMsnWY/MxNuR+TBNGX301h4SZFhT9uM0b/bJkehn7pu4V Ro= X-UI-Out-Filterresults: notjunk:1;V03:K0:5WFX7JIqoT4=:apOeml6cUHa/Wa2dMrtVFh 3vqqZfHUfI0+ATpq3VVoE+/uTqVM0wtmtQBb5cVtIagauQwDwaHc4cuIR0u1nVDr93tZlA4GK CE47FuQ6prQEl72CNh202Pyw9ah49YA+g1gI5SsQKHq6gGQzkhjoz+k4+Z60mOtdnGgE8mXs9 2uY7oHME94RBIhQcvhW5QjusR5sOQMpYppUmehGHhgkKTGHlTTtvcV1LMEBGIWGFF/Zy+mWew z8qI68nR3RzF74wT6jLP0ALoNp+Gp9ipXlsnXBx4AEbH5TH+JHuXy3i+XwlI0fRcilnPsbAN+ 2lxkQ17j3ZO2CnC49ebmOQQ1XPE81K+47AqlKJ7Vuk5g0RcN1+nlQUNGaWPwccYKSSV4SbAmP Q77U/mfUbgDXp5Y+Ztex9MIiDB6ZOWkacPhXCKRbPonqk8NyP+U9xaF8IJuIvKxXPJl1U3muO WsfzF7s3Slyiik5b/KdjmYKz3Ttad/oLSI/+LeR8i7YmEB7dPafOeiJ8/z02Dli9UfokGq5I2 6825M38OK+028FSQku2K/kfR/JZbYZDmlt1J5VvCmreZ1iimI2RdwAioTEgcPFsz5pkKXm/Tb GOnlLOf2a5E6k= Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:125783 Archived-At: > Sent: Monday, November 30, 2020 at 11:32 PM > From: "Stefan Monnier" > To: help-gnu-emacs@gnu.org > Subject: Re: Auto Fill Comments > > > I just have a typical example in front of me right now. I have a small > > program written in Scheme. To make sure Emacs starts Scheme mode, the > > end of the file has: > > > > ;; Local Variables: > > ;; mode: scheme > > ;; End: > > > > This makes sure the variable `mode' is set to the value "scheme". But > > Hmm... not sure if it's the best example: there is no `mode` variable. > The corresponding variable is called `major-mode` and will be set to > `scheme-mode` and the above doesn't set the var directly but just calls > the function `scheme-mode` (which then sets the var, tho it doesn't > have to: you can also use `;; mode: auto-fill` which will enable > `auto-fill-mode` and won't set `major-mode`). > > IOW, in file-local variables, `mode` is quite special (there aren't many > such exceptions. The main other one is `coding`). > > Stefan > I agree with Stefan's evaluation. It must be specifically elisp coding and coding many would try to do os have set when working on their own files (perhaps they have been coding in c, for instance).