all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: virtual file buffer spanning multiple physical files
Date: Sun, 03 Oct 2010 07:43:00 -0500	[thread overview]
Message-ID: <87mxqvih0r.fsf@lifelogs.com> (raw)
In-Reply-To: 87wrq02u0o.fsf@mail.jurta.org

On Sat, 02 Oct 2010 21:56:39 +0100 Juri Linkov <juri@jurta.org> wrote: 

JL> FUSE (Filesystem in Userspace) is useful for writing virtual filesystems,
JL> but it's not a system for virtual files :)  You can use FUSE to write
JL> a filesystem that allows to edit multiple physical files through
JL> one virtual file.

Yes.

>> I was thinking that would actually (with some folding
>> magic) be extremely useful in Emacs.  There are many cases where I edit
>> multiple small files and have to switch back and forth to see their
>> contents.  Also, search-and-replace would be easier.
>> 
>> Is there any existing mode that does that kind of virtual join?

JL> We considered such a mode some time ago in
JL> http://thread.gmane.org/gmane.emacs.devel/120943

JL> Maybe this multi-file mode (a buffer with multiple files) could be
JL> implemented like a multi-mode mode (a buffer with multiple major modes).

Maybe.  I was also thinking about the (not too old) discussion about
virtual file buffers that edit just a portion of a large file because
the max buffer size is smaller than the file and, of course, loading a
large file to overwrite a few bytes is very expensive.  Also the
multi-mode concept as seen in MuMaMo is quite useful.  So I think it's
good to start thinking about "stitched" buffers, consisting of multiple
"windows" into multiple files, each window of variable size and with its
own mode.  That would be ridiculously powerful and probably a pretty
big effort.  As a hack it could probably be done with text properties
but I don't know enough about the buffer structures in Emacs to say.

Ted




      reply	other threads:[~2010-10-03 12:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01 17:46 virtual file buffer spanning multiple physical files Ted Zlatanov
2010-10-01 18:15 ` Chong Yidong
2010-10-02 20:56 ` Juri Linkov
2010-10-03 12:43   ` Ted Zlatanov [this message]

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=87mxqvih0r.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=emacs-devel@gnu.org \
    /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.