From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Link between two buffers Date: 28 Jul 2005 08:50:46 +1000 Message-ID: <87ek9jzwvt.fsf@tiger.rapttech.com.au> References: <3kot17Fv8d3mU1@individual.net> <87ack8vd75.fsf@thalassa.informatimago.com> <87ack8t3ai.fsf@thalassa.informatimago.com> Reply-To: timx@spamto.devnul.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1122504780 301 80.91.229.2 (27 Jul 2005 22:53:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2005 22:53:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 28 00:52:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dxulc-0007QT-0O for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2005 00:52:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dxuo1-0003OG-Qh for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2005 18:55:17 -0400 Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 51 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-NNTP-Posting-Host: ppp39-31.lns2.syd6.internode.on.net Original-X-Trace: duster.adelaide.on.net 1122504650 59.167.39.31 (28 Jul 2005 08:20:50 +0950) Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-south.connect.com.au!duster.adelaide.on.net!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:132719 comp.emacs:89794 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:28242 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28242 drkm writes: > Pascal Bourguignon writes: > > > drkm writes: > > >> Pascal Bourguignon writes: > > >>> 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... > > >> Why "depending on how the windows are split"? 'follow-mode' > >> could follow both horizontaly and verticaly, isn't it? > > > No it cannot follow horizontally. > > Try it: > > Yes, I know. But if someone hack it to provide horizontal > following, what do you want to do "depending on how the windows > are split"? Why don't just have 'follow-mode' following both > horizontally and vertically (in the case of horizontal following > available)? > It may be a little more difficult to get follow-mode to do that - but must admit I need to think it out more - just seems to be something bugging me and that feeling we have overlooked something - a window has to be at least 1 line in height and at least 1 column in width. It strikes me that its probably not too difficult to ensure the line the cursor is on is visible in both windows, especially if you don't really care about cursor position within the line - would doing the same when you have a window which is just one column (and possible 1 row) in size be a problem? However, as the only reason the OP wants this behavior is so that he can see the header line of the file at the same time as viewing row data which is more than one window in distance from the header line in his file, I'm thinking he is probably better off forgetting about follow-mode and seeing how hard it would be to create a mode which puts the first line into a header line (such as those used in *info* mode) and allows the rest of the buffer window to be used to scroll through the data file? Tim -- Tim Cross The e-mail address on this message is FALSE (obviously!). My real e-mail is to a company in Australia called rapttech and my login is tcross - if you really need to send mail, you should be able to work it out!