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: Keybinding that loops through Major Modes Date: Tue, 3 Nov 2020 09:49:18 +0100 Message-ID: References: <87eelb1nmc.fsf@zoho.eu> <20201103081105.GA17899@tuxteam.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="20423"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 03 09:51:26 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 1kZs2H-00059b-Jv for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 09:51:25 +0100 Original-Received: from localhost ([::1]:51920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZs2G-0003xr-GY for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 03:51:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZs0U-0003xf-3E for help-gnu-emacs@gnu.org; Tue, 03 Nov 2020 03:49:34 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:52797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZs0R-0000VX-RC for help-gnu-emacs@gnu.org; Tue, 03 Nov 2020 03:49:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1604393359; bh=I40buU3U7ursw6OdGBgtIQtds5bK4uGE52B0vb8u8ak=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=drtkILPxwlvUL6l3jLn4i4Pd7MQDK2SQxXdls0TgzwSzEO+sy2byVsn8QjtIykZ3M 5YrvbqPNim4f9LtZXw766lYQZ1KPm+AS3NgWXeLOcP0G41PH+AIQFR/6nCeZiHZ36P 02X6j1CqLBvACUr2J9PeOB5CeDCNDdzDegKY9SAQ= 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-bs09.server.lan [172.19.170.177]) (via HTTP); Tue, 3 Nov 2020 09:49:19 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <20201103081105.GA17899@tuxteam.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:FKibqzyomGzgzVcyCR0dy7S+hka/fb9iL+anf8Hakz3Ho0ySwWQGciPubIj8gn4YWxqSJ oVZtNcomhCfzZyoaAO9XTqH+RwZaiNkqoqn1en9YAYdjYxRA4qk9/BULum6JGzF17CGh0wJzvv80 BUK4xyrUj4KHRH/SndZyWLLoGDYmXUbvRpbIEI7lJfWoqPiNUmx1NrtqOaiy7L172prFWYAivzRL bF7nsDWctnhTW1NvQBde3fqIla9cyuNu1qpJyX414IQSJeHwWL7uFAtTsfO1RManC32WWnzij6np Nw= X-UI-Out-Filterresults: notjunk:1;V03:K0:Lc5P2Hb9HKQ=:WpYfhQLarvIsQNydfdYgPg QG4fTx7hBkiE0mIArvTI0fA7lPtiNLLvmnQ7Smkvh1kdNCASxwqTFvsK2c+heYdcSpFP3gu4F vTqfjvP3RRUWV7O7jAuIWnBDfsQaZZLJWS4PLsMbqGMRGgCN/LBdNffCZXVyEHrDI+PzgBEhy 0lTMTGjpX3kdDRAxPl2hAx2gi7IkNYFl5qP+HKnEnG/LFhGpNVLSjBVsckXQqrCyK3ruQCFc9 5NjN5bMEl+SJAQVXtmdtrc4EEnMv95v9rbfxMaimmntSDomjNsBobWM43DYAJxWjzqOHiRXNT Gror820jlisleAWmW3Yt0+1772BoPwnt4LLWw1Ge+BAGzUsaZ9alhqLWE5JCLo6QWPeG6FBor jsOk+mnM+ERhk72PukJgF0BTYNCX5JZFKUOq7wZX2Kmh3498belQ6QVNI6nTKKTxXx8XHWOW/ SKdz50xKPxNctfIo+XAxCHdBJvbqe/O8HnBZVcb3ostrShIvnpl0llKEbqrEvef3MWIinaTq6 Plh+FMQgzyOGx2VtbUWfvlAPIJ1J/X1JouotJlqJcgg+PkAdkZZNI7N8h00j7YvsU/5OMzKva iFYhd5DO/b6Wg= Received-SPF: pass client-ip=212.227.17.21; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/03 03:49:29 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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:124970 Archived-At: > Sent: Tuesday, November 03, 2020 at 9:11 AM > From: tomas@tuxteam.de > To: help-gnu-emacs@gnu.org > Subject: Re: Keybinding that loops through Major Modes > > On Mon, Nov 02, 2020 at 10:10:02PM +0100, Christopher Dimech wrote: > > I shall explain better then. In my .texi files I customarily include = commands > > from other modes or want to use some hooks from other modes (e.g. org-= mode). > > So even after I load a file with the default mode, I would need to qui= ckly > > shift to another mode temporarily, then switch back to normal-mode. > > Perhaps your problem becomes different [0] if you squint at it from > another angle (space vs time): do you really want your whole buffer > to "switch mode", or are you looking after some regions "having a > different mode"? That's what I had in mind, for the whole buffer > In the second case, look, e.g. for "multiple major modes" [1]. It's > a class of problems for which need exists (e.g. Org source snippets, > but also those PHP cum HTML cum Javascript thingies. Indeed. Customarily I would need to change mode on just a portion of the code I would be working with. > > Cheers > > [0] Not necessarily better, but perhaps exciting in a different > way? > [1] https://www.emacswiki.org/emacs/MultipleModes > > - t >