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: Mon, 30 Nov 2020 01:06:29 +0100 Message-ID: References: <87zh324fa9.fsf@web.de> <837dq5ordu.fsf@gnu.org> <871rgd6jzk.fsf@web.de> <87r1oclvkp.fsf@web.de> <87blffzq7f.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="40580"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 30 01:08:34 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 1kjWk5-000ATx-NR for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 01:08:33 +0100 Original-Received: from localhost ([::1]:45870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjWk4-0001h1-Gi for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 29 Nov 2020 19:08:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjWi8-0001gc-A9 for help-gnu-emacs@gnu.org; Sun, 29 Nov 2020 19:06:32 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:45383) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjWi6-00049G-Gh for help-gnu-emacs@gnu.org; Sun, 29 Nov 2020 19:06:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606694789; bh=WEc1JVIeuZwV/sMXQ4Yh+o5r/Ps0dtUnNwxt50WV7aw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=XP8EEdvLNTxs4S+5dhVo/NTZSwUhO7AvbmVp0IFQMRWkKBfmasJSZo0iE2TAohVhc SLIUCDr/JMLoGyFE5AFUpAyA3+J77OkW05NRSMPelGnaPSzQ9yJBdJ1VD2OLafvz4d nXR9eiP7Di8RHqDQGTvDHIx9ePJMRjb/urPI+X+U= 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-bs12.server.lan [172.19.170.180]) (via HTTP); Mon, 30 Nov 2020 01:06:29 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87blffzq7f.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:JTg5zKZSvuVYvVTq4E2w22M42fbZ6ZugFRw2sewx9+mtqeWZPd9Q1y0GjOEu3u/Hia4tY oqShp6+cDSSuCcRf0lxYoau820M2e+dpxJY/l46u0hhNTG6Btc09HRfKzMlz5kTVbnSMqxtBL9W0 CVVzzf6X/0iXPvW9K1ibtlTTVS7jh6/qMxN7FqcW739Pe13LU0s/cqSSm5hm2NFfi4Uv43E2MznI naTEAWSjWh4IC9UlDR69KqkPZ8QXI3BfqVdhJzpSHw64aulH7vnxwxlNjQW8Q2If9LQQ65oFDm3J Ao= X-UI-Out-Filterresults: notjunk:1;V03:K0:gJfXKqvlu80=:yg0F2cjkVhIN44sr4frG2a 5X8oayRlvtfgI2H1xmywjWIgN9hjfa7NeP42gZWMm3pTDdWWwHA8IdVw/s7r1u1RiGLnFhRKJ 8En8qBG1gBw9xpOBoWeblHEcNT5t/KHCXP6NapBpFKYPv5V85/4MqfUprauOAVV2i41RBL+n4 pK0umZfPzXuFaFDw2VdxoeLzTMcpplcQjXf3ua8ZLtooBHQPVa+P5H/nqCwRsiWkGfTWxa/AS vNL/PGD4LoIJwV+LW5V3izg/SVmmdlwRgzbecck2NtCmFDDL8KDWKOt3KPQ1WuZSgIaQ/IAUl RTYf9b4PaFVsSJ4Opj26KyoR2GBO34VWASMOyM6E/xuWA9tMe4nZBoZdnMjDCvKvp9f+FSqan Qqte3b4KAEKupNkScCmb6/THevFzdwkEdaoAbLDDaqvvY6tmo6NSPj17z6aVvcZ7pBJjIRGJY Zkmi66oJsjo8hYMq4/i/sjY875jezMyHH+7tiFN4rbhozL8a498NiGQcijB3LNnJt/gin2eFm 84MbA6TvENo6zXFtrJ6MGfvPmNHK2Bk+azrRSuGgn/T9snpCrwZXFQey+OrSo+Nee0WVxZpyD aaqe/XtDnUpvo= Received-SPF: pass client-ip=212.227.15.18; 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:125756 Archived-At: The problem starts with actually trying to do something after deciding to give elisp a try. Very often this requires a lot of emacs specific knowle= dge. There need to be links with very clear steps. If you want X, here's how y= ou do it, geared towards the beginning developer (to elisp, not to developmen= t). For the expert, there are all lots or resources to find information. =2D-------------------- Christopher Dimech General Administrator - Naiad Informatics - GNU Project (Geocomputation) - Geophysical Simulation - Geological Subsurface Mapping - Disaster Preparedness and Mitigation - Natural Resource Exploration and Production - Free Software Advocacy > Sent: Monday, November 30, 2020 at 12:41 AM > From: "Michael Heerdegen" > To: help-gnu-emacs@gnu.org > Subject: Re: Auto Fill Comments > > Christopher Dimech writes: > > > Was trying to have a keybinding that cycles between three things: > > > > 1. Autofill Only Comments > > 2. Autofill Whole Buffer > > 3. Revert to No-Autofill > > > > Problem started because I should use buffer-local. People suggested > > I read the manual to figure out what to do. But couldn't follow thing= s > > well enough to come up with something that works. > > Any specific questions? About things you didn't understand when > reading? > > The basics are simple: You make a variable buffer local in the current > buffer with `make-local-variable'. Then setting the variable whenever > that buffer is current sets the buffer local binding (in that buffer) of > this variable. Evaluation of a variable results in the buffer local > value when there is one, else in the global binding. `default-value' to > return the global binding of a variable regardless of buffer-local > bindings. > > See also `setq-local' which makes a variable buffer local in the current > buffer an sets the value at the same time. Thanks Michael. I will have a go at it this week. > Regards, > > Michael. > > >