GNU bug report logs -
#34723
27.0.50; customize and improve diff-mode recentering
Previous Next
Reported by: charles <at> aurox.ch
Date: Sun, 3 Mar 2019 20:33:01 UTC
Severity: minor
Found in version 27.0.50
Full log
View this message in rfc822 format
> Date: Mon, 04 Mar 2019 20:06:13 +0100
> From: charles <at> aurox.ch (Charles A. Roelli)
> Cc: 34723 <at> debbugs.gnu.org
>
> > (setq isearch-push-state-function
> > (lambda ()
> > (when (and isearch-success (not (pos-visible-in-window-p)))
> > (reposition-window))
> > `(lambda (cmd)
> > (when isearch-success
> > (set-window-start nil ,(window-start))))))
>
> Can we add something like this to isearch.el, maybe as a defcustom?
> Or maybe we could add it in a way such that other packages that show
> search results (grep, xref) could use the same function to reposition
> the window. The function could inspect a defcustom in simple.el to
> decide whether (or how) to reposition the window.
Isn't it easier to temporarily bind scroll-margin to a non-zero value,
then force redisplay?
Or maybe I'm missing something in this discussion.
This bug report was last modified 6 years and 87 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.