* map buffers into one buffer
@ 2003-04-03 18:56 pclouds
0 siblings, 0 replies; 2+ messages in thread
From: pclouds @ 2003-04-03 18:56 UTC (permalink / raw)
Hello,
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.
Thanks
--
Bi Cờ Lao
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: map buffers into one buffer
[not found] <mailman.4100.1049429270.21513.help-gnu-emacs@gnu.org>
@ 2003-04-04 12:54 ` Kai Großjohann
0 siblings, 0 replies; 2+ messages in thread
From: Kai Großjohann @ 2003-04-04 12:54 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-04 12:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-03 18:56 map buffers into one buffer pclouds
[not found] <mailman.4100.1049429270.21513.help-gnu-emacs@gnu.org>
2003-04-04 12:54 ` Kai Großjohann
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.