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 01:49:21 +0100 Message-ID: References: <87y2ibvrq7.fsf@web.de> <878sabizcy.fsf@web.de> <87v9dfhj2e.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="12039"; mail-complaints-to="usenet@ciao.gmane.io" To: Michael Heerdegen , Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 06 01:51:29 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 1kliGv-00031q-Oc for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 01:51:29 +0100 Original-Received: from localhost ([::1]:55576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kliGu-0002CF-DE for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 19:51:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kliEv-0002Be-Ot for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 19:49:25 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:41775) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kliEt-0001fp-Vw for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 19:49:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607215761; bh=uuJXbcBl3os6u6EwM3/01AKUF0ge0QelXtpIsvMOsuc=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=ecuYcKiG8rGeqqqGrM3nWXPezqKS5Mgt6CgC6SnFzCXmWqF/XJyn9+SbBo0ZyCSWJ 73itf8U5E3WgfCeDVaQIDEAloR9S2cR2sbeQfo7ddOe6J/YFMD8FcZsDyTobAG0DuQ occX82c3YUzwY4eRwrx/9p+NOstCbjnEaBD1kI+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-bs06.server.lan [172.19.170.174]) (via HTTP); Sun, 6 Dec 2020 01:49:21 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87v9dfhj2e.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:wucQ1NuiSKsdbGEZ+E2LOKCi0hTtS6bNxQxy0MsuylCgZPIRoL0y1RscRokNjmkAj/+TH Pr0fjtbdNVngyILUiUPPFYZq11HzC0hKLMVwYhZd3JWp28CXXkZKTMIhAGM5/SxztWLsp2Zh1qK4 wDdtxQ0rHvuwIfgWf1wilTe2ex1+LIJft+0QhTm1qZ2wkqDHabixHpKvOAA2z5LfXDecDKHimTeS SZTKrfyNQqXO/lwhgR/X/cnIoGef1rgjjHW0H4PINlsf5HdENAu3fEyV5x9IyPT3A1bMDh1106Ex CU= X-UI-Out-Filterresults: notjunk:1;V03:K0:8VUHmPQ7wcE=:chfMsUEEADTzOl7hmBKikM +Ke9al6bnBOMFN1TlwPFRaYWX05Q2szdnTDzyaHG4ZNdFx1Tv9+hC5DdGGW5cAU/mk4W5ZXMy 31asdMMVZ9EGyR2BEG3td9jR2QZDbJn7eeZiBTRmfTbhMHKsn56kIRxdaumIAy9QGQUXM76DP SXFygHfIP+UhymlpxEam6PVejV9AUD57KrPUwyED2dZRS2+u++dMHUWhXpKW2rChGbDTnbyy9 nHwHOeCvgV5PKomzXUxvBccIDxJwWf+izVr2UBAZeXO0Ig0MeIxTu8GXmLruKv1pYU4UcnHc5 NdH1LvB3Cuo4WTfsYRNogmNeBmV/Xgn4bd4frVAVa1wEPdozdEJ23KW246pFB/tvIp0mCi0gH VNMysltjmlsgQwmsdu717yMkSX/2IIJmyekRz1brXTpVqvkFudXJbHSx1xyEd2z0kxVESFwIk VJV9OHSS5YAnyFNrOzLDZBlt3SdAUciPUVd2IKaLv53B07wQFKTXebV6t3l6mk/LDYeQ1T+f6 aF9F1LY/huJAwVd0g/v+o5g4T7vQYwftgFW69KdiYsGESa8b86HDT4FiftLcyefXz7n2JpNJZ Ll+IROLDM0AF8= Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:126067 Archived-At: > Sent: Sunday, December 06, 2020 at 1:30 AM > From: "Michael Heerdegen" > To: "Christopher Dimech" > Cc: daniela-spit@gmx.it > Subject: Re: Cycle Auto-Fill > > Christopher Dimech writes: > > > (set (make-local-variable 'comment-auto-fill-only-comments) t) > > > > and > > > > (set (make-local-variable 'comment-auto-fill-only-comments) nil) > > > > Additionally I do (auto-fill-mode 1) and (auto-fill-mode nil), > > which I think are buffer local. > > Yes, that's ok. Since the state is also easy to get (by looking up the > variables [auto-fill-mode is also a variable]), there is no need to save > it explicitly. So, only comment-auto-fill-only-comments need to be set to buffer local. = Right? Returning back to taking the property "state". If it is global. that woul= d only mean that in a different buffer the cycle would begin from a a differ= ent starting point. But then, the auto-fill settings would still be buffer lo= cal. 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) > > Have been giving the wrong strategy then. Thought it would work diffe= rently > > for each different buffer. But you are saying symbol properties are a= lways > > global. Bugger! Would this be RTFM? > > Yes, it would, but only in subjunctive mood. > Regards, > > Michael. >