* different buffers on same file?
@ 2004-06-11 14:42 kj
2004-06-11 15:06 ` Johan Bockgård
0 siblings, 1 reply; 4+ messages in thread
From: kj @ 2004-06-11 14:42 UTC (permalink / raw)
Is there any way to have more than one buffer visiting the same
file? I tried renaming a buffer and "find-file"-ing the same file
again, but Emacs did not create a new buffer; it just re-used the
original buffer despite the name change.
My immediate need for this is that I'm trying to read a huge (0.5
MB) source code file, 95% of which consists of the first leg of a
single if statement (horrible programming, I know), and it would
be very useful if I could simultaneously have several
buffers/windows/frames that were narrowed (C-x n n) to various
sections of this file. Since narrowing is a per-buffer property,
I need to have several buffers opened on the same file if I want
to do this.
Thanks!
kj
--
NOTE: In my address everything before the period is backwards.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: different buffers on same file?
2004-06-11 14:42 different buffers on same file? kj
@ 2004-06-11 15:06 ` Johan Bockgård
2004-06-11 16:03 ` kj
2004-06-21 20:44 ` Daniel Appelqvist
0 siblings, 2 replies; 4+ messages in thread
From: Johan Bockgård @ 2004-06-11 15:06 UTC (permalink / raw)
kj <socyl@987jk.com> writes:
> Is there any way to have more than one buffer visiting the same
> file?
`M-x clone-indirect-buffer <RET>'
See (info "(emacs)Indirect Buffers").
--
Johan Bockgård
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: different buffers on same file?
2004-06-11 15:06 ` Johan Bockgård
@ 2004-06-11 16:03 ` kj
2004-06-21 20:44 ` Daniel Appelqvist
1 sibling, 0 replies; 4+ messages in thread
From: kj @ 2004-06-11 16:03 UTC (permalink / raw)
In <yoijy8mucexv.fsf@tulkas.dd.chalmers.se> bojohan+news@dd.chalmers.se (Johan =?iso-8859-1?Q?Bockg=E5rd?=) writes:
>kj <socyl@987jk.com> writes:
>> Is there any way to have more than one buffer visiting the same
>> file?
>`M-x clone-indirect-buffer <RET>'
>See (info "(emacs)Indirect Buffers").
Just the ticket! Thank you.
kj
--
NOTE: In my address everything before the period is backwards.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: different buffers on same file?
2004-06-11 15:06 ` Johan Bockgård
2004-06-11 16:03 ` kj
@ 2004-06-21 20:44 ` Daniel Appelqvist
1 sibling, 0 replies; 4+ messages in thread
From: Daniel Appelqvist @ 2004-06-21 20:44 UTC (permalink / raw)
On 2004-06-11, Johan Bockgård <bojohan+news@dd.chalmers.se> wrote:
> kj <socyl@987jk.com> writes:
>
>> Is there any way to have more than one buffer visiting the same
>> file?
>
> `M-x clone-indirect-buffer <RET>'
>
> See (info "(emacs)Indirect Buffers").
>
In my version of emacs, GNU Emacs 20.7.1, the function is called
make-indirect-buffer. I use it with "outline-mode" to be able to
collaps all threads in one window and still be able to have som
threads visible in an other.
/Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-06-21 20:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-11 14:42 different buffers on same file? kj
2004-06-11 15:06 ` Johan Bockgård
2004-06-11 16:03 ` kj
2004-06-21 20:44 ` Daniel Appelqvist
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).