[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scroll-preserve-screen-position not working
From: |
martin rudalics |
Subject: |
Re: scroll-preserve-screen-position not working |
Date: |
Sat, 07 Apr 2007 13:49:51 +0200 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
> the scroll-preserve-screen-position variable had been
> introduced some time ago in emacs 20. It allows to
> keep the cursor in its position in a buffer when scrolling.
> When it is not set, the cursor position is moved when
> scrolling so as to make it always visible.
> In emacs 21 (and alas in 22) this variable has no effect,
> at least when emacs in running in Windows XP and also in
> Vista.
Thank you for your report.
Customization for this variable was broken. Could you please apply the
attached patch and tell me whether it gives good results.
*** cus-start.el Tue Jan 23 06:40:00 2007
--- cus-start.el Sat Apr 7 13:41:38 2007
***************
*** 338,344 ****
(split-height-threshold windows integer)
(window-min-height windows integer)
(window-min-width windows integer)
! (scroll-preserve-screen-position windows boolean)
(display-buffer-reuse-frames windows boolean "21.1")
;; xdisp.c
(scroll-step windows integer)
--- 338,348 ----
(split-height-threshold windows integer)
(window-min-height windows integer)
(window-min-width windows integer)
! (scroll-preserve-screen-position
! windows (choice
! (const :tag "Off (nil)" :value nil)
! (const :tag "Full screen (t)" :value t)
! (other :tag "Always")))
(display-buffer-reuse-frames windows boolean "21.1")
;; xdisp.c
(scroll-step windows integer)