unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pascal Bourguignon <pjb@informatimago.com>
Subject: Re: Link between two buffers
Date: Wed, 27 Jul 2005 10:57:18 +0200	[thread overview]
Message-ID: <87ack8vd75.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 3kot17Fv8d3mU1@individual.net

Marc Tfardy <m-t-o___CUT_IT___@web.de> writes:
> I have following problem:
> I have two buffers in one frame, both contains the same file, but
> showing diffrent parts of the file. The lines are longer than
> the frame wide is, so I see always a part of the line (I set
> the variable truncate-lines to t). My wish is, that when I move
> the cursor horzintally in one line in one buffer the other buffer
> move automaticly in the same direction by the same amount of characters,
> in other words - both move parallel. How can I do it? Any ideas?
>
> The bacground: my file contains a very wide table. The first
> line of the table is the header, then follows many lines of data.
> When I edit something far away from the header line, I don't see
> the header and I don't know about what column I just edit.
> My idea is, I open the file twice. The upper buffer show me
> alway the header, the bottom buffer show me data, but both buffers
> are linked, so I see alway the correct description in upper
> buffer.

There is follow-mode which does it vertically.  Perhaps you could hack
it to do it also horizontally, depending on how the windows are split
when starting it...


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
Our enemies are innovative and resourceful, and so are we. They never
stop thinking about new ways to harm our country and our people, and
neither do we. -- Georges W. Bush

  reply	other threads:[~2005-07-27  8:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-27  8:54 Link between two buffers Marc Tfardy
2005-07-27  8:57 ` Pascal Bourguignon [this message]
2005-07-27 18:36   ` drkm
2005-07-27 20:14     ` Pascal Bourguignon
2005-07-27 21:08       ` drkm
2005-07-27 22:50         ` Tim X
2005-07-28 21:48       ` Marc Tfardy
  -- strict thread matches above, loose matches on Subject: below --
2005-07-28 22:30 b.jc-emacs

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ack8vd75.fsf@thalassa.informatimago.com \
    --to=pjb@informatimago.com \
    /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.
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).