unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Angelo Borsotti <angelo.borsotti@alcatel-lucent.it>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: scroll-preserve-screen-position not working
Date: Wed, 11 Apr 2007 23:24:19 +0200	[thread overview]
Message-ID: <461D5203.1010706@gmx.at> (raw)
In-Reply-To: <461CE5FD.4D6CB247@alcatel-lucent.it>

 > I replaced in cus-start.el the line:
 >
 > 	    (scroll-preserve-screen-position windows boolean)
 >
 > with:
 >
 >             (scroll-preserve-screen-position
 >              windows (choice
 >                       (const :tag "Off (nil)" :value nil)
 >                       (const :tag "Full screen (t)" :value t)
 >                       (other :tag "Always")))
 >
 > (As a matter of fact, I commented out the original line by
 > putting ;; in front of it).
 >
 > However, this does not fix the problem. When I scroll, the
 > cursor changes position in the text.

But did you customize `scroll-preserve-screen-position' to `Always'?

The choices now should be:

Off (nil) ......... don't preserve the screen position (default)
Full screen (t) ... preserve screen position for full screen scroll
                     commands only
Always (1) ........ preserve screen position for any scroll command
                     (that's what you want AFAICT).

In any case

(setq scroll-preserve-screen-position 'foo)

in your .emacs shoud get you the desired behavior even without this
change.  If it doesn't please tell me.  If customizing doesn't work tell
me as well.

  reply	other threads:[~2007-04-11 21:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-07 11:49 scroll-preserve-screen-position not working martin rudalics
2007-04-08 22:04 ` Kim F. Storm
2007-04-11 13:43 ` Angelo Borsotti
2007-04-11 21:24   ` martin rudalics [this message]
2007-04-11 23:44   ` Johan Bockgård
  -- strict thread matches above, loose matches on Subject: below --
2007-04-05  8:37 Angelo Borsotti
2007-04-07 17:30 ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=461D5203.1010706@gmx.at \
    --to=rudalics@gmx.at \
    --cc=angelo.borsotti@alcatel-lucent.it \
    --cc=bug-gnu-emacs@gnu.org \
    /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 public inbox

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

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