GNU bug report logs -
#12253
Restore window start position
Previous Next
Full log
Message #71 received at 12253 <at> debbugs.gnu.org (full text, mbox):
>>> This is not helpful. It was many years ago, and I don't remember the details.
>>> In bug#12253 there is a patch that restores the window position
>>> when navigating back in Info history. I could try to rebase it
>>> if there is still an interest in such improvement.
>>
>> I think you should try to do that. Any sort of navigation should
>> restore window start and window point positions whenever possible.
>
> Did you make any progress with this?
With Info history or with Isearch history?
Here is how to restore the window position
when navigating back in Isearch history:
#+begin_src emacs-lisp
(setq isearch-push-state-function
(lambda ()
;; Recenter new search hits outside of window boundaries
(when (and isearch-success
(not (pos-visible-in-window-p)))
(recenter))
`(lambda (cmd)
(when isearch-success
(set-window-start nil ,(window-start))))))
#+end_src
This bug report was last modified 1 year and 154 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.