From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: narrow with mode? Date: Tue, 2 Jun 2009 04:05:36 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1243908372 21624 80.91.229.12 (2 Jun 2009 02:06:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2009 02:06:12 +0000 (UTC) Cc: John Wiegley , help-gnu-emacs@gnu.org To: David Abrahams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 02 04:06:08 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MBJOB-0001Qy-Er for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Jun 2009 04:06:07 +0200 Original-Received: from localhost ([127.0.0.1]:39676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBJOA-0008Ls-Sp for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jun 2009 22:06:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBJNp-0008Ln-Or for help-gnu-emacs@gnu.org; Mon, 01 Jun 2009 22:05:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBJNl-0008KS-7m for help-gnu-emacs@gnu.org; Mon, 01 Jun 2009 22:05:45 -0400 Original-Received: from [199.232.76.173] (port=53158 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBJNk-0008KM-UF for help-gnu-emacs@gnu.org; Mon, 01 Jun 2009 22:05:40 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:52580) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MBJNj-0005YE-IC for help-gnu-emacs@gnu.org; Mon, 01 Jun 2009 22:05:40 -0400 Original-Received: from mail-fx0-f169.google.com ([209.85.220.169]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBJNi-0001uv-RI for help-gnu-emacs@gnu.org; Mon, 01 Jun 2009 22:05:39 -0400 Original-Received: by fxm17 with SMTP id 17so8816563fxm.42 for ; Mon, 01 Jun 2009 19:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=VdLIwYPhanbnR1/ygZLGF8TU/DzISFCGWly4jv/Zyo0=; b=vDNpJ7FO8g9GqYpp7CxkNWaNu/O7vaJwBuatji2z9X4r6LIjCwbWPtEOyZrGMDkQH7 2MY+UxKlum7M6I+JS9xj+hpW5iATkXgh4GFCN7g+s1apddvj2+Jq+sDJ2KwqztkE6tH8 9pa5Q40ulOVFdb5iNi3UerWPOp0yRKszSsYyQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=J4h7aHyfyVC10TDuAMlHsindljxqC1FVyeWKTxJ3d7wNmubPVIDghlRhs3gEOl02dd igyQKyVq3HYgaQQ37PcEcS6/6zgP+toc+bDrERxir6bGwQwEH9s3cDYa6nSFR3zkrTAW K84vBwIkwoqSkhY3QDr6ZEULIZUrU0wxdiZNg= Original-Received: by 10.239.154.3 with SMTP id b3mr467182hbc.114.1243908336121; Mon, 01 Jun 2009 19:05:36 -0700 (PDT) In-Reply-To: X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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: news.gmane.org gmane.emacs.help:64884 Archived-At: On Sat, May 23, 2009 at 3:38 PM, David Abrahams wrote: > > Hi All, > > I often find myself wanting to work on a region of a buffer in a > different mode from the current one. =C2=A0For example, I'd like to use > markdown-mode on the body of a weblogger.el blog entry, and then I'd > further like to use c++-mode (or whatever) on code snippets within that > entry. =C2=A0So I'd like to first narrow the body of the entry into markd= own > mode, then narrow again to c++-mode, then pop back out to markdown mode > on the whole body, and finally out to weblogger-entry-mode on the whole > buffer. > > This seems like it must be an incredibly common need, but I've never > seen anything designed to support it. =C2=A0Closest thing I've seen is > http://www.blackie.dk/emacs/narrow-stack.el, but it only handles part of > the problem. =C2=A0Anyone got a hint for me? You can do that with the latest version of nXhtml (ver 1.80)