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: Sat, 5 Dec 2020 06:13:14 +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="3035"; 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 Sat Dec 05 06:16:15 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 1klPva-0000fi-QA for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 06:16:14 +0100 Original-Received: from localhost ([::1]:33992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klPvZ-0003e9-Jo for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 00:16:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klPtH-0003cr-19 for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 00:13:51 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:52235) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klPtD-0006oG-Ca for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 00:13:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607145194; bh=tqaTwq+jn8jZdCHVRJUpMXWl4/DVSg6EvIXN09k6Rek=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=BWKCMDocC6j/lbC/iehJP0wZm7wc9Wkmnm2DKmorTUa+OaHtClM65wAHTaOpiSOOK XVldskcjsZ4+kNzWe/pXANIxbRg0srSKY9oIEiWcQfUBR3cN7hGQ9Ce5Ztxvdiwky6 ttlDyQeCjsVprj9POc17xLaQw1IfTZW1f4SgtnNg= 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-bs04.server.lan [172.19.170.170]) (via HTTP); Sat, 5 Dec 2020 06:13:14 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:fwktZarYKo6Cl3rjHDin3p47/G8/udcOBc8iUEMFhjag9oWfccgMXC7zvnqPcDnIjT/m6 xcpZhKzzksyFxNiD6F9nFOUaG4cPyePuWMqha2kYIFD5Pc9NUqOVQ0U2kBjcIjoyIY2OUfWrjEdJ chdLgX431Mxk0/LXU0tEHe/BROosCIUGXtgSoNC8xgfMw3qDYVZVGdEi+VDQDlEtFzxE8gcagoU+ vpa6eXU/SqRkrSoeAdI9k4cTUYfjh1D1pw0IkYJIv2m4ZjWiIX0zKAepRNUk0I9wtQkcP85tsok0 oc= X-UI-Out-Filterresults: notjunk:1;V03:K0:ygkPGyHdbI8=:X6nibqhBbB18uR69kLA8i2 +jwgwc9jJyqfKIyBIQMmy+iGizS0NoTbucpg+/DcJmgDmb6vw0l5pxYoCxjkf8wXdVi/N+TN6 TB2IPtSb0UDWX29834jnJP6LJnseqCTb3t/p+WkNfgQG48UujujaJJrnFjvtUgK1R7rykZMks 9HFEJWKcQrmE2AckCFYehRH6JetiDyt0zwcptta2n1HMvisoZd/WYau47uh4FmMvfqeCq0vhm 5md2zaTPyHlgpz//sb3vDiWvc3bgcKfVoTaZavfdDH2Er0LfZWGXxAn+l51cixgDtwxtyYGWk KWKS1voiAaUvYG6CXbsfAD8apylqlNqo67T6lilwoVF/04CJmvBmTvcWeoryMTyvIKw1GE+yg 7vk8OXGUYEtOZAGwoJVIWGITEoOkOT4NdcgeznwTRozrMvCwJB5bkDnX4Zr8obo/MtM8oKcFI Hu8U2niIgQmIWpqbTaoPj0qDd/zma0ymEdbVPuzrG1oSi8m1BD+dmGavgO7g5ToX50xz/xIOG RZEQI9rREaclOwxJMjP3vIV9pidjQpu+4vUpOpQxvDvBzlJluTwLp+HtL3cTVJMciEokU52OI 8l688y+ezHCBo= 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:126004 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. No experience with ring. How is it used and what do you do? Suppose I wa= nt a keybinding to cycle auto-fill with three things. 1. Auto-Fill Comments 2. Auto-Fill Entire Buffer 3. Disable Auto-Fill