unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: David Abrahams <dave@boostpro.com>
Cc: John Wiegley <johnw@newartisans.com>, help-gnu-emacs@gnu.org
Subject: Re: narrow with mode?
Date: Tue, 2 Jun 2009 04:05:36 +0200	[thread overview]
Message-ID: <e01d8a50906011905h2daa76fl2a6e2bed86bfcf0a@mail.gmail.com> (raw)
In-Reply-To: <m2pre0q6q5.fsf@boostpro.com>

On Sat, May 23, 2009 at 3:38 PM, David Abrahams <dave@boostpro.com> wrote:
>
> Hi All,
>
> I often find myself wanting to work on a region of a buffer in a
> different mode from the current one.  For 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.  So I'd like to first narrow the body of the entry into markdown
> 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.  Closest thing I've seen is
> http://www.blackie.dk/emacs/narrow-stack.el, but it only handles part of
> the problem.  Anyone got a hint for me?

You can do that with the latest version of nXhtml (ver 1.80)




  reply	other threads:[~2009-06-02  2:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-23 13:38 narrow with mode? David Abrahams
2009-06-02  2:05 ` Lennart Borgman [this message]
2009-06-02  8:13 ` Teemu Likonen
     [not found] <mailman.7673.1243085948.31690.help-gnu-emacs@gnu.org>
2009-05-25 11:59 ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50906011905h2daa76fl2a6e2bed86bfcf0a@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=dave@boostpro.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=johnw@newartisans.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).