all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@spamto.devnul.com>
Subject: Re: Link between two buffers
Date: 28 Jul 2005 08:50:46 +1000	[thread overview]
Message-ID: <87ek9jzwvt.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: uu0ig6jo7.fsf@fgeorges.org

drkm <usenet@fgeorges.org> writes:

> Pascal Bourguignon writes:
> 
> > drkm <usenet@fgeorges.org> 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!

  reply	other threads:[~2005-07-27 22:50 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
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 [this message]
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

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

  git send-email \
    --in-reply-to=87ek9jzwvt.fsf@tiger.rapttech.com.au \
    --to=timx@spamto.devnul.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.