[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find-file-hook, recenter, scroll-conservatively and save-place
From: |
martin rudalics |
Subject: |
Re: find-file-hook, recenter, scroll-conservatively and save-place |
Date: |
Fri, 01 Feb 2019 10:05:32 +0100 |
> Just one point to this: should we have '(window-start . (recenter 10))
> also, where 10 is the ARG for the future recenter call?
We need a convention for alist entries about how to specify functions
and their arguments.
>> BTW, a related question: should save-place save window-start as well?
>> It should be easy to implement after this problem is solved.
>
> I think that would be nice and there is only one corner case I think
> we have to take care of: recentf is a long term operation compared to
> switch-to-buffer-preserve-window-point in the sense that when the user
> comes back after days maybe he is sitting in front of a different
> sized screen with differently configured frames and windows.
> Therefore we have to give precedence to the point and take the
> window-start recommendation of save-place with a grain of salt. As
> far as I can understand it now, fortunately this is done for us
> already by redisplay for free.
The restoration would call 'set-window-start' with NOFORCE non-nil so
point would be preserved.
martin
- Re: find-file-hook, recenter, scroll-conservatively and save-place, martin rudalics, 2019/02/01
- Re: find-file-hook, recenter, scroll-conservatively and save-place,
martin rudalics <=
- Re: find-file-hook, recenter, scroll-conservatively and save-place, martin rudalics, 2019/02/01
- Re: find-file-hook, recenter, scroll-conservatively and save-place, Juri Linkov, 2019/02/02