From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Albert Reiner Newsgroups: gmane.emacs.help Subject: Edit region in different mode Date: 22 Dec 2004 17:19:36 +0100 Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1103732674 15546 80.91.229.6 (22 Dec 2004 16:24:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Dec 2004 16:24:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 22 17:24:27 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ch9Hm-0005cN-00 for ; Wed, 22 Dec 2004 17:24:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Ch9SK-00060Y-R4 for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Dec 2004 11:35:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!newsfeed.stueberl.de!feed.news.tiscali.de!news.belwue.de!LF.net!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: berry.phys.ntnu.no Original-X-Trace: quimby.gnus.org 1103732376 12263 129.241.48.91 (22 Dec 2004 16:19:36 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Wed, 22 Dec 2004 16:19:36 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:127473 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22926 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22926 Hi, is there a way of editing the current region in a different mode? OK, this is emacs so there certainly is a way, but is there a simple way? More specifically, I would like to get a new buffer with everything between point and mark (or maybe some other positions found by searching), set a different editing mode in that new buffer, and have the editing take effect in the original buffer when I am done. I suspect this should be possible by some combination of clone-indirect-buffer and narrowing but I don't quite know how to go about this. I'd be grateful for any help. Regards, Albert.