[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find-file-hook, recenter, scroll-conservatively and save-place
From: |
Eli Zaretskii |
Subject: |
Re: find-file-hook, recenter, scroll-conservatively and save-place |
Date: |
Thu, 31 Jan 2019 16:32:17 +0200 |
> Date: Thu, 31 Jan 2019 14:49:17 +0100
> From: martin rudalics <address@hidden>
> Cc: Juri Linkov <address@hidden>
>
> Juri, should we handle this somehow? That is, provide 'window-point'
> and 'window-start' action alist entries with the former allowing the
> 'switch-to-buffer-preserve-window-point' logic (among others) and the
> latter optionally allowing to recenter.
How would you compute window-start in this case so that point is
centered?
> I don't know how 'save-place' could pass these on to the
> 'pop-to-buffer' call in 'find-file' though. Can you think of any
> other use cases where these would be helpful?
save-place installs a find-file-hook, which simply calls goto-char.
All this happens before pop-to-buffer is called.
- find-file-hook, recenter, scroll-conservatively and save-place, Gergely Risko, 2019/01/31
- Re: find-file-hook, recenter, scroll-conservatively and save-place, Gergely Risko, 2019/01/31
- Re: find-file-hook, recenter, scroll-conservatively and save-place, martin rudalics, 2019/01/31
- Re: find-file-hook, recenter, scroll-conservatively and save-place,
Eli Zaretskii <=
- Re: find-file-hook, recenter, scroll-conservatively and save-place, Juri Linkov, 2019/01/31