help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: map buffers into one buffer


From: Kai Großjohann
Subject: Re: map buffers into one buffer
Date: Fri, 04 Apr 2003 14:54:19 +0200
User-agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3.50 (gnu/linux)

pclouds <pclouds@users.sourceforge.net> writes:

> Is there a way to map buffers (source) into one buffer (target)?  
> That is, the content of the source buffers will appear in the target
> buffer, one by one. When i change something in the target buffer, the
> respective source buffer will be changed too.

That's a very cool idea.  But I'm afraid you're going to have to do
it manually.  You could (locally in the target buffer) add something
to after-change-functions which propagate the changes as necessary.

To start it up, you'd insert the sources buffers into the target
buffer.  For the text from each source buffer, you set a text
property that gives the source buffer.  That way, your function in
after-change-function will know which source buffer to change.

Another idea would be that you make it so that any command that's
executed on the target buffer is really processed on the
corresponding source buffer.  That might enable you to run different
major modes in the same buffer, so to speak.

Hm.  For the different major modes, we also have mmm-mode.el.  Not
sure how good that is.  Never tried it.

So maybe it's better to go with the first suggestion I made.
-- 
A preposition is not a good thing to end a sentence with.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]