help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scroll behaviour during query-replace etc


From: Gordon Beaton
Subject: Re: scroll behaviour during query-replace etc
Date: 11 Oct 2004 08:39:08 +0200
User-agent: slrn/0.9.7.4 (Linux)

On Fri, 8 Oct 2004 12:24:32 -0700, Greg Hill wrote:
> Come to think of it, you might like this better.
> 
> (defadvice search-forward (after view-context compile activate disable)
>    (if (< (count-lines (point) (window-end)) scroll-margin)
>        (recenter (- scroll-margin))))

Perfect, thanks!

/gordon

-- 
[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e


reply via email to

[Prev in Thread] Current Thread [Next in Thread]