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: Thu, 26 Nov 2020 22:14:35 +0100 Message-ID: References: <87pn419aha.fsf@robertthorpeconsulting.com> <20201126160013.GD28931@tuxteam.de> <20201126182734.GA5175@tuxteam.de> <20201126201649.GB5175@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="22175"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 26 22:16:57 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 1kiOdN-0005em-2m for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 22:16:57 +0100 Original-Received: from localhost ([::1]:43658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiOdL-0002Yx-Tz for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 16:16:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiObF-0002Yd-Bm for help-gnu-emacs@gnu.org; Thu, 26 Nov 2020 16:14:45 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:36275) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiObD-0001T8-Ao for help-gnu-emacs@gnu.org; Thu, 26 Nov 2020 16:14:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606425275; bh=fAYpr5iMhTcwPNyMhaNpl5lnJfvGMU95pvySm85hM9w=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ZBq1ZfoGr12v0SVTn7EebNpO/2Ucdm4EWz9nWDsopCVwGKVOWkFI5iCiyTBp+5FeZ p9D8VVhkkCRiIQOIAFN3VXtVD49Y8r8paODpFjY49Y0ICOI0UZP+orK8i6sQGe27Ty sekWst7jt8uQLsBcxL2LZOhOLq/mrOaKm20gJMg0= 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-bs06.server.lan [172.19.170.174]) (via HTTP); Thu, 26 Nov 2020 22:14:35 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <20201126201649.GB5175@tuxteam.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:IU8/nz3y6sO0nNkia2WZHf4ci1uYCvTcs0Dmp1+aeRDVHPNHTjmY1BaDI8jQao9qhZxQp 3E+vNfLUb0KjL/WzSeeB//FzqSyI4uma59bJRgDFIgi12iFvsfAPm1xaWt5ngj8scmitmx1fwYR6 ne7D/Jcn/ACxeS2FVn4cf/xjzzaxXZmBTIq1YfYwJeytIbzS+06Gtje5bxmZ4hAaKLbbb1JrwQI1 XFSLP7fVTMf9JvP49hzU8CFtzdq9JBWn0SKUCNXKVo3/8sX2O8XN/7fDV56b2D7QtYnpd90M+6jN AI= X-UI-Out-Filterresults: notjunk:1;V03:K0:YLnqRqHHFUc=:JtFydq5t7014gWrEqGxhRW L9RmKFYJe1KRIjD5ZZLv23TvgRdLWxNR1EWUEG4R2M8GU77PiHcNWOX9kP1rwdT7fTUWMD/P3 HJwK3F9y0ThDuauSUCdt1VMwwQjCN0pVbaEzNcmkwI4gTsOxKAgXZlrkRnGiVz+Z2D5AHG7+n XjCcJ3WWWU3Xfzqs26fKOR8Jsv4IJmUOcm+/gvvx0rr2RrZ8WNZqXST/Ju5a+3fe6RSQ8Nrj1 mF+J1ey4+T3YC92eB4nBFei57seUcOPtMvo4uVDausVE73EpmoaaB291WMd/XTRWU+vpBv4tW eQGLQ1BkywMnkWMi4aAfwmhk2evbJJ4LGkZRYqQeqWVstRJTuXXL51aonuzgmoSBV5xU4y3zx cnzL0hGr/FuT7lpLJem1kqnx7ZRsRRQiu6VLgBpFXKN/D65+s+ulD9LkMH1cf9Ea1lI9TLD6r wvV72S1uqYWJyQCiMaxIt/StF1PlS/v0tmq7Y9b5KHCaVy8mU/45YmmvjCHH4DLjyJvAzTnWA ANvy23DJic8/t6yf149y4M1d9lSYeItmj0HAggN3fz9b6SGUtgGOHiTNEXM2sxjqn18mEZIAf Qx5HFFIYW6W8I= Received-SPF: pass client-ip=212.227.17.22; 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:125591 Archived-At: I have done as follows. The problem started after reading that for mode specific setup, comment-auto-fill-only-comments got to be local (setq-default fill-column 72) (defun typh-auto-fill-mode (n) "Breaks lines at a specific number of columns using Auto Fill." (interactive "p") (if (=3D n 0) (turn-off-auto-fill)) (if (=3D n 1) (progn (auto-fill-mode n) (setq comment-auto-fill-only-comments t) )) (if (=3D n 2) (progn (turn-on-auto-fill) (setq comment-auto-fill-only-comments nil) ))) > Sent: Thursday, November 26, 2020 at 9:16 PM > From: tomas@tuxteam.de > To: "Christopher Dimech" > Cc: help-gnu-emacs@gnu.org > Subject: Re: Auto Fill Comments > > On Thu, Nov 26, 2020 at 07:44:10PM +0100, Christopher Dimech wrote: > > [...] > > > Had thought that setq was actually a global thing, not local. > > For local variables I was using "let" and "let*", but that seems > > a wrong understanding. > > No, no. I was talking about buffer-local, i.e. bound to the > buffer. Your local is wrt. to the code (dynamic or lexical) > > Buffer-local variables are global variables, as seen from the > code's perspective. > > You didn't look at the docs, did you? > > Cheers > - t >