unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* mouse scroll and caret position
@ 2009-09-15 11:27 Jay I.
  0 siblings, 0 replies; 3+ messages in thread
From: Jay I. @ 2009-09-15 11:27 UTC (permalink / raw)
  To: help-gnu-emacs

hi, guys. how can i preserve caret position when scrolling the window? i
got used to the following technique - when i have to shoot a glance at a
piece of code in the same file but a couple of pages above/under my
current position i scroll the window with mouse wheel or scrollbar then
look at the code and hit either an arrow key or just start entering new
code based on what i've seen and my ide/editor brings my current
position into view automatically. when i do it in emacs if i scroll the
window too much the caret changes its position to stay on the screen.

p.s. i'm using emacs-gtk-22.2.1

regards,
jay





^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: mouse scroll and caret position
@ 2009-09-16  8:17 martin rudalics
  2009-09-16 23:07 ` Jay I.
  0 siblings, 1 reply; 3+ messages in thread
From: martin rudalics @ 2009-09-16  8:17 UTC (permalink / raw)
  To: jay.27182818; +Cc: help-gnu-emacs

 > hi, guys. how can i preserve caret position when scrolling the window? i
 > got used to the following technique - when i have to shoot a glance at a
 > piece of code in the same file but a couple of pages above/under my
 > current position i scroll the window with mouse wheel or scrollbar then
 > look at the code and hit either an arrow key or just start entering new
 > code based on what i've seen and my ide/editor brings my current
 > position into view automatically. when i do it in emacs if i scroll the
 > window too much the caret changes its position to stay on the screen.

Have a look at

http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg01892.html

martin




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-16 23:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-15 11:27 mouse scroll and caret position Jay I.
  -- strict thread matches above, loose matches on Subject: below --
2009-09-16  8:17 martin rudalics
2009-09-16 23:07 ` Jay I.

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).