unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: [Fwd: Modes within modes]
Date: Fri, 07 Nov 2003 15:20:23 -0700	[thread overview]
Message-ID: <3FAC1AA7.3030208@yahoo.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 96 bytes --]

Perhaps indirect buffers ought to have local text properties and overlays...

-- 
Kevin Rodgers

[-- Attachment #2: Re: Modes within modes --]
[-- Type: message/rfc822, Size: 2144 bytes --]

From: Peter Lee <pete_lee@swbell.net>
Subject: Re: Modes within modes
Date: Fri, 07 Nov 2003 20:52:11 GMT
Message-ID: <u65hvnbpg.fsf@swbell.net>

>>>> 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).

[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs

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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-07 22:20 Kevin Rodgers [this message]
2003-11-09  2:03 ` [Fwd: Modes within modes] Richard Stallman

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=3FAC1AA7.3030208@yahoo.com \
    --to=ihs_4664@yahoo.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.
Code repositories for project(s) associated with this public inbox

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

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).