all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: kai.grossjohann@gmx.net (Kai Großjohann)
Subject: Re: map buffers into one buffer
Date: Fri, 04 Apr 2003 14:54:19 +0200	[thread overview]
Message-ID: <84he9emnic.fsf@lucy.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: mailman.4100.1049429270.21513.help-gnu-emacs@gnu.org

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	other threads:[~2003-04-04 12:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4100.1049429270.21513.help-gnu-emacs@gnu.org>
2003-04-04 12:54 ` Kai Großjohann [this message]
2003-04-03 18:56 map buffers into one buffer pclouds

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=84he9emnic.fsf@lucy.is.informatik.uni-duisburg.de \
    --to=kai.grossjohann@gmx.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.