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: Removing line and column number settings from some buffers Date: Fri, 4 Dec 2020 07:31:52 +0100 Message-ID: References: <87czzq9xq5.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="522"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , help-gnu-emacs@gnu.org To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 04 07:34: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 1kl4fk-000AZu-Hr for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Dec 2020 07:34:28 +0100 Original-Received: from localhost ([::1]:54882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kl4fj-0004h3-B2 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Dec 2020 01:34:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kl4dm-0004gl-CP for help-gnu-emacs@gnu.org; Fri, 04 Dec 2020 01:32:26 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:42785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kl4dk-0007X1-OL for help-gnu-emacs@gnu.org; Fri, 04 Dec 2020 01:32:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607063512; bh=E9jg262Im8Y+Wqela3Bm7vnvdD+mIKDyE6FmkqVs7+M=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=UhMWuHjWOIL9Peph2rdy0+MmoUsnsejO5xECvL7X5qYCL+eGAP8uYkVqOdaPkMbsJ kg43X1msPDqjgwLTSir+8FfBk71XReqqP5XmEXZ3kG/UbbaInyMHbpJvPb9KR7smQ1 BIDxG4fDJcE+bBgPo5kdlP79FiZJAtLOwM10HN6g= 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-bs11.server.lan [172.19.170.179]) (via HTTP); Fri, 4 Dec 2020 07:31:52 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:b8rL59FV3Ep5K920lTRXfKv1aauaYib2Yxar8y9Q1xa467wh0oyeJyTBpCoN2opfFQ7FC +1d24ZBuzMZrzEmou/pC3hGmI9SmjVkJ8Qu9XlfzFWBGrIir/peptEwGnsfrCJkUgpOkmNDs4QdO 90G7oVQGj57KHCwi6L+6GVMp06VHht0S+DfFR+f0vEXMF+uXlThAjJtc2KL8X2YMcKKdpTWWyKjb gZ9EAwr24VQGvDBbgp+ZGmbrXYaPgiIdOHqPEURS18gTQ+xgsJqY1jHdDin60m8P2hrzULsEP8Sz Kw= X-UI-Out-Filterresults: notjunk:1;V03:K0:6gN/6QypcpE=:1IcGDA7MsT5YeqrxQoQ5RS aUPxyG7dztdBfj0LjkWczzlMlv8kG71IFS+U8swpbEKcMYIhrNssbXrpZkro+holSp7dqVdkh VIRM0AIPCppegqVzUboB/CUu/hIzzWxS+j02YOC/ihn2tXy1FFpSvn2AYnVwNWpe6a74HRaMT eyyiix3Q9nWG+Ack4KqtFLzz28bTgl3rcisVIpo5VBLZpMGo4u1508fiBth4scBysKG0hPQ5C 1gCECrR1NSNgZTAM4mcuCLofdijlJH7HDpyZA4kQilKMiBBsJ6nnAZHWeSs/oPddxO6FNQ7JE Cas+TFMnTNBcV8YS2579/M1X+6PTr3B1NjxyOVo4H2Iz5jNAJl231xqqTY3muWYfZav9jm1mc wVkrK40g/B/JFhs036CT8WCgGw02FZiPle4wV8rf4nqaVIwRM/odvjY4qKkE3+htmvBJPE/6d 1T244Qv3GaYQPCB1DCnwPDhoxJeb84A5kJbkWID+HhUEmzkO4zDlDH3fp9matNH2E+n3Q9xIb wx0qmsw6W+nwYa86tD1KECiaG2n2qZJl2+5GRNmzb86OwoFyCNi3VvgEv9YWFU9e51SJx84EC 49Lb3TFfCyJ+s= Received-SPF: pass client-ip=212.227.17.21; 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:125958 Archived-At: > Sent: Friday, December 04, 2020 at 7:10 AM > From: "Jean Louis" > To: "Christopher Dimech" > Cc: daniela-spit@gmx.it, "Michael Heerdegen" ,= help-gnu-emacs@gnu.org > Subject: Re: Removing line and column number settings from some buffers > > > > What I want to do is to change the Mode Line, but then revert back t= o how it > > > was in that buffer, by continue pressing same keybinding. Can I sto= re the > > > old setup and then put it back again. > > > > Have got some code to cycle commands. Shall try to dig that out. But= I don't > > know much about changing the mode line. > > For session based storage, you may use the Emacs built-in library > `ring' as it has cycling features, you store anything in ring variable > and you can take it back and cycle through it. I had been updating the function state to loop. Never got into the ring variable.