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: Cycle Auto-Fill Date: Sun, 6 Dec 2020 04:35:10 +0100 Message-ID: References: <87y2ibvrq7.fsf@web.de> <878sabizcy.fsf@web.de> <87v9dfhj2e.fsf@web.de> <87ft4jslxp.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="32714"; 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 Sun Dec 06 04:37:17 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 1klkrN-0008QL-18 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 04:37:17 +0100 Original-Received: from localhost ([::1]:34006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klkrM-00021W-02 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 22:37:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klkpO-00021A-EJ for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 22:35:14 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:60307) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klkpM-0005Wi-HB for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 22:35:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607225710; bh=chID8uGV+VQDFgetb/bnBvzqyiKJNh5e31gS6/npwGg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=QF7/hgWDIj14p8NGMKIkVN7TjMgg4FbM2RaYbGvGbhWtcpYF8AUGkVk9jA7BngX29 PCroq1Oo33U5fXvBSkt76VLsPkYoEWck8RHhNpkjuJFJlShnvhU+8aaL16UOYc6oaM 4A3TQIpuqX9ir/4UbkeGUWALc28nxXCLPp0SGwPA= 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); Sun, 6 Dec 2020 04:35:10 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87ft4jslxp.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:SA22XLbIZrpqeIxfIbDgBGV36ZYcOAigZfRu1YMConocPz9svI5I6fwFSrUcb68HN9+nu QBBJjO6JtYUiA4Wtk2+cZEgeuBBZLaw2Vh08kwwxFLsNPkbKE3ZNH5hXqpCDI8xb0Ie69w/T5Y2V DTbZwRSlO6dFohn3xD3OF+VYiyn6cTz0mTHIzho9gJhaFQLehOzYLp6t7A0Q2wiMNouCn6932nDo DD6MQO9pCfj1d9p8AaasoJkZfoq1mXi96mg12rmn9gqEoW9Fjd2XanpRBVa8u1mZGpO88w1WQNEc PM= X-UI-Out-Filterresults: notjunk:1;V03:K0:rnTMJYv56Jk=:ZH0/ijfPVt0RnqK6BD1Tkz lk31hg7w35GvO8T5WniWDALASvKbcSj+MqbG00SMKADiuZ8wGVdhuCcvtgLpXn1htuGNZstP6 8cBCI2SFr/6ouOtlzfwPYiP/X0bZuwJfMw5Zm7y6BeKy8W/ssID6s2eXflRqVIeff/TxffQ0o szzOuIy7bNqAjsuY+p95HhO2KOW0Tyz7qwfkcUTb8SjV7anb0QlVkJkaBN+9hUrUAIWrMOOCR emZLYFCBaR8f/5dxAUF+hggXyUcQZuYPhQJxFD1gbK8/nipC8BhxVo+NRAVVf5zuWhLO54BS7 Kz5NxxUvPWEVU/jdlgsHJGteD89Mj7NKpSTguHVN4rHsEqi9osjLhJ3HJNY4rPjvvYROtb7V8 bSXTG8WqeJsj/YCeLmF1H3YS+OHclAmJX8o5IDl0bVcAFp61zlXzbTJseRgsy3ZVgpnNwqiIk qaZmy/jqI/eiwlAMzkaPqJovuZqDJzwDnotjqcAhgkiCcEh8A030FUfY4P8ByrXLk/PSm6Kux n3tk7J3mRLJwKPnvMqVBenbR0mWz4QFGDYLbN+antLd7lr8PXY4Zc+MrpfdCo3sZ1NBMIrwhd Q4ox5oHy/Qr/M= 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:126077 Archived-At: > Sent: Sunday, December 06, 2020 at 3:33 AM > From: "Michael Heerdegen" > To: help-gnu-emacs@gnu.org > Subject: Re: Cycle Auto-Fill > > Christopher Dimech writes: > > > So, only comment-auto-fill-only-comments need to be set to buffer > > local. Right? > > I think so, yes. BTW, in my Emacs, the variable corresponding to > auto-fill-mode is auto-fill-function; `auto-fill-mode' is unbound. Unbound? What is that? > > Returning back to taking the property "state". If it is global. that > > would only mean that in a different buffer the cycle would begin from > > a a different starting point. But then, the auto-fill settings would > > still be buffer local. > > Yes, that, and cycling in the first buffer may bring you from 2 to 1 or > from 2 to 2 afterwards. Might be confusing, once you got used to it. Can see what you mean. That although what happens in the actual buffer is local to the buffer, how the cycle performs, would depend on what was done on other buffers, creating confusion. Actually, it is not very confusing as I write what option was selected in the mini buffer. I have now started to understand buffer local quite well. It has been occurring to me that most things really got to be buffer local. Continuing with the keybinding cycle (pressing repeatedly a key-sequence to switch configuration, e.g. auto-fill in my case). I am really getting into some difficulty figuring out what commands would one want to have a Keybinding Cycle that would not be buffer-local. For what things should a key-cycle be global? > > Does the order of the two commands matter? > > > > (set (make-local-variable 'comment-auto-fill-only-comments) t) > > (auto-fill-mode 1) > > > > versus > > > > (auto-fill-mode 1) > > (set (make-local-variable 'comment-auto-fill-only-comments) t) > > No, should not matter. These things are called expressions, btw. > > [And you might prefer `setq-local'.] > > > Regards, > > Michael. > > >