* virtual file buffer spanning multiple physical files
@ 2010-10-01 17:46 Ted Zlatanov
2010-10-01 18:15 ` Chong Yidong
2010-10-02 20:56 ` Juri Linkov
0 siblings, 2 replies; 4+ messages in thread
From: Ted Zlatanov @ 2010-10-01 17:46 UTC (permalink / raw)
To: emacs-devel
On a LUG mailing list I saw a request for a way to edit multiple
physical files through one virtual file. The solution recommended was
to use FUSE. 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?
Ted
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: virtual file buffer spanning multiple physical files
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
1 sibling, 0 replies; 4+ messages in thread
From: Chong Yidong @ 2010-10-01 18:15 UTC (permalink / raw)
To: Ted Zlatanov; +Cc: emacs-devel
Ted Zlatanov <tzz@lifelogs.com> writes:
> On a LUG mailing list I saw a request for a way to edit multiple
> physical files through one virtual file. The solution recommended was
> to use FUSE. 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?
For searching, there's multi-isearch-search.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: virtual file buffer spanning multiple physical files
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
1 sibling, 1 reply; 4+ messages in thread
From: Juri Linkov @ 2010-10-02 20:56 UTC (permalink / raw)
To: Ted Zlatanov; +Cc: emacs-devel
> On a LUG mailing list I saw a request for a way to edit multiple
> physical files through one virtual file. The solution recommended was
> to use FUSE.
FUSE (Filesystem in Userspace) is useful for writing virtual filesystems,
but it's not a system for virtual files :) You can use FUSE to write
a filesystem that allows to edit multiple physical files through
one virtual file.
> 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?
We considered such a mode some time ago in
http://thread.gmane.org/gmane.emacs.devel/120943
Maybe this multi-file mode (a buffer with multiple files) could be
implemented like a multi-mode mode (a buffer with multiple major modes).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: virtual file buffer spanning multiple physical files
2010-10-02 20:56 ` Juri Linkov
@ 2010-10-03 12:43 ` Ted Zlatanov
0 siblings, 0 replies; 4+ messages in thread
From: Ted Zlatanov @ 2010-10-03 12:43 UTC (permalink / raw)
To: emacs-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-03 12:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.