From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Gordon Beaton Newsgroups: gmane.emacs.help Subject: Re: scroll behaviour during query-replace etc Date: 11 Oct 2004 08:39:08 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <416a2a8c@news.wineasy.se> References: <41665dcb@news.wineasy.se> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1097477003 13607 80.91.229.6 (11 Oct 2004 06:43:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Oct 2004 06:43:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 11 08:43:13 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CGttp-0003WT-00 for ; Mon, 11 Oct 2004 08:43:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGu0k-0007gI-FI for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Oct 2004 02:50:22 -0400 Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.7.4 (Linux) Original-NNTP-Posting-Host: cube.smaltan.org X-Original-NNTP-Posting-Host: cube.smaltan.org Original-X-Trace: wineasy!newsfeed.wineasy.se!news.wineasy.se!news.songnetworks.se 1097476748 195.42.215.17 (11 Oct 2004 08:39:08 +0200) Original-Lines: 14 Original-X-Complaints-To: abuse@songnetworks.se Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!bofh.vszbr.cz!news.radio.cz!213.131.157.171!wineasy!newsfeed.wineasy.se!news.wineasy.se!news.songnetworks.se!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:125819 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21185 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21185 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