all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Lee <pete_lee@swbell.net>
Subject: Re: Modes within modes
Date: Fri, 07 Nov 2003 20:52:11 GMT	[thread overview]
Message-ID: <u65hvnbpg.fsf@swbell.net> (raw)
In-Reply-To: e867ce6d.0311070927.786dfd91@posting.google.com

>>>> Gareth Rees writes:

    Gareth> The simplest way to do this is to use
    Gareth> 'clone-indirect-buffer' (C-x 4 c) and use A-mode in the
    Gareth> original buffer and B-mode in the cloned buffer.  Put the
    Gareth> two buffers in adjacent windows and switch between them
    Gareth> when you want the features of the other mode.  See the
    Gareth> Info node (emacs)Indirect Buffers.

This method seems to partially work.  I can clone an html buffer (in
html mode) and switch to the cloned buffer and issue M-x text-mode.
The modes are correct for each buffer however they seem to share
fontification.

So if I do M-x font-lock-fontify-buffer while in the text-mode buffer
I see the changes in both.  Same if I issue the command in the
html-mode buffer... the text-mode buffer then gets fontified for html.

I'm using cvs, so perhaps it's just my version.  If this is a known
limitation of clone-indirect however, then it wouldn't be as useful a
method for multiple modes (at least for me).

  parent reply	other threads:[~2003-11-07 20:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3281.1068080002.21628.help-gnu-emacs@gnu.org>
2003-11-07 17:27 ` Modes within modes Gareth Rees
2003-11-07 18:01   ` Kevin Rodgers
2003-11-07 18:29     ` lawrence mitchell
2003-11-07 20:52   ` Peter Lee [this message]
2003-11-06  0:52 Dan Anderson

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

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

  git send-email \
    --in-reply-to=u65hvnbpg.fsf@swbell.net \
    --to=pete_lee@swbell.net \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.