From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: Link between two buffers Date: Wed, 27 Jul 2005 10:57:18 +0200 Organization: [posted via Easynet Spain] Message-ID: <87ack8vd75.fsf@thalassa.informatimago.com> References: <3kot17Fv8d3mU1@individual.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1122455562 11221 80.91.229.2 (27 Jul 2005 09:12:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2005 09:12:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 27 11:12:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DxhxO-0004iR-Nd for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2005 11:12:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dxhzm-0004EI-FF for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2005 05:14:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!news-lond.gip.net!news.gsl.net!gip.net!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:Wh7GROIknTwcck9wcTeOw0WIwvY= Original-Lines: 29 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=9aK:BZLR8Mif\Q5M7kN;2bEY<>`XO4V7m>Uh Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28215 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28215 Marc Tfardy 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