drkm <[EMAIL PROTECTED]> writes: > Pascal Bourguignon writes: > > > drkm <[EMAIL PROTECTED]> 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! _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs