From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: Re: scroll-preserve-screen-position not working Date: Wed, 11 Apr 2007 23:24:19 +0200 Message-ID: <461D5203.1010706@gmx.at> References: <4617855F.6000107@gmx.at> <461CE5FD.4D6CB247@alcatel-lucent.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1176397975 643 80.91.229.12 (12 Apr 2007 17:12:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2007 17:12:55 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Angelo Borsotti Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 12 19:12:54 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hc2qr-0003ye-Te for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Apr 2007 19:12:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hc2v2-0003E4-Nx for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Apr 2007 13:17:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HbkMT-0005DY-DP for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2007 17:28:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HbkMS-0005Cu-9L for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2007 17:28:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbkMS-0005Cn-4N for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2007 17:28:16 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HbkIM-0006hJ-5P for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2007 17:24:02 -0400 Original-Received: (qmail invoked by alias); 11 Apr 2007 21:24:01 -0000 Original-Received: from N816P009.adsl.highway.telekom.at (EHLO [62.47.45.233]) [62.47.45.233] by mail.gmx.net (mp032) with SMTP; 11 Apr 2007 23:24:01 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+ZvJYtRBOZRCnoy4fSNSI4qwtQrbhm/FRGjIzp20 GHY/gKteIX7LbG User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <461CE5FD.4D6CB247@alcatel-lucent.it> X-Y-GMX-Trusted: 0 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Thu, 12 Apr 2007 13:16:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15666 Archived-At: > 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.