From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Keybinding that loops through Major Modes Date: Tue, 03 Nov 2020 15:52:39 +0100 Message-ID: <87h7q6cx1k.fsf@fastmail.fm> References: <87eelb1nmc.fsf@zoho.eu> <20201103081105.GA17899@tuxteam.de> <877dr2pr94.fsf@web.de> <87mtzyd1tv.fsf@fastmail.fm> <87v9emo9rq.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32140"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.6; emacs 27.1.50 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 Tue Nov 03 16:11:19 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 1kZxxu-0008HE-Uo for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 16:11:18 +0100 Original-Received: from localhost ([::1]:60696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZxxt-0005z8-UL for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 03 Nov 2020 10:11:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZxgN-00033i-4o for help-gnu-emacs@gnu.org; Tue, 03 Nov 2020 09:53:11 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:59615) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZxgG-0003zV-Ga for help-gnu-emacs@gnu.org; Tue, 03 Nov 2020 09:53:10 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2C04F5C01A0; Tue, 3 Nov 2020 09:52:44 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 03 Nov 2020 09:52:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm1; bh=85C7i+byJExm06C4ixPaqeKQ0N g8iFOjXZS5gF/a6Ec=; b=b8raZ28iYM+3WBbTqlTw/V1hyY+q8IenpdxTelA54l 96EfuAVK2DRLQyX8UUSOk2ocIqdO/kn995isKlZz/SEXkK9Ca9RkH5AMS1oxjNQf GA8eOxjjw6ogeJ47v05jVCb8LWQ1m/QctGz6Y9Dk0cdfTiBzFfdFcfKXf4y8SKhE SEhjUouJd5UDtJo+zrQjhaDpvbHURWaj7wcfaIcsD6We9Skdi41aElkzd+1jWcot cRECJjN9twbcJR7TfVI8tqqQovOfmzfra5XIVkKV+cWdJgXJVacTp9dezW8hHrUT I5u3rOIKQYlrj4wntmCA7g6gCzFFXOFkCxD5EbUdYjtg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=85C7i+ byJExm06C4ixPaqeKQ0Ng8iFOjXZS5gF/a6Ec=; b=ROTKteZETjbX6/fNeNeWRI YbIYeHJT5qp2W7b1pLx8BJzEXxyAiPPhqLsiTknEM62voItNl+juuWbuFkgELzfJ kiFttrgcXcdjBLtHKO6x9/kCrdwUub4HPcyCmRBBBEY80hQHHbM+FDMAT965Yeh9 u4R9zDFF0Pe9hKaiGdynvU4ElLTlVsJQ/q9mrn86a53Yd04ho0Y5FKASWKVd8ER2 6z3dswfXaBqJPsF5R8PpWMSIpXzTIG75IYdaZwyeAGL2gB4jFsJWdFcozqsQkONd e8y3YLWnJiGbmRkpXcn58039NLnH7MIyv4e+pjaDsHy2rRJpmy1YGb2zla0Erjjg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtfedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeflohhoshht ucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhmqe enucggtffrrghtthgvrhhnpefhudffuefhudelhffgleeukeegudevtedtudduhfefteeu gedvvedtuddugffffeenucfkphepleehrdeltddrvddvgedrvdeffeenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhoshhtkhhrvghmvghr shesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: from Swift.fastmail.com (ip5f5ae0e9.dynamic.kabel-deutschland.de [95.90.224.233]) by mail.messagingengine.com (Postfix) with ESMTPA id 8428B3064684; Tue, 3 Nov 2020 09:52:42 -0500 (EST) In-reply-to: <87v9emo9rq.fsf@web.de> Received-SPF: pass client-ip=66.111.4.26; envelope-from=joostkremers@fastmail.fm; helo=out2-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/03 09:52:52 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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:124980 Archived-At: On Tue, Nov 03 2020, Michael Heerdegen wrote: > Joost Kremers writes: > >> > A method that would be a bit cleaner in my eyes would be a command that >> > lets you edit a specified region in a temp buffer in the correct mode. >> >> A narrowed, indirect buffer. (Basically the same idea, with a few things >> automated.) > > AFAIK the problem with indirect buffers is that AFAIK font-lock isn't > supported (unless you use the same mode and settings as the base > buffer). If that's the case then yes, that's a problem. The manual says an indirect buffer can have its own major mode, and I assumed from that font lock wouldn't be a problem. -- Joost Kremers Life has its moments