From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jpkotta Newsgroups: gmane.emacs.help Subject: Re: context around incremental search Date: Fri, 8 Nov 2013 10:58:24 -0800 (PST) Message-ID: <039ba1e6-98d9-477a-9565-c7c9287cf128@googlegroups.com> References: <91DD3E81-3B0A-40EF-8D69-967D483A900C@Web.DE> <3fecd556-1369-4cc4-87d2-667c17427b21@default> <9258D4EF-B104-46E2-A617-93AB406DC441@Web.DE> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1383937215 10423 80.91.229.3 (8 Nov 2013 19:00:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Nov 2013 19:00:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 08 20:00:21 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VerI4-0000np-Gr for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Nov 2013 20:00:20 +0100 Original-Received: from localhost ([::1]:47728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VerI4-000802-62 for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Nov 2013 14:00:20 -0500 X-Received: by 10.67.2.41 with SMTP id bl9mr5991783pad.16.1383937104288; Fri, 08 Nov 2013 10:58:24 -0800 (PST) X-Received: by 10.49.106.130 with SMTP id gu2mr42124qeb.35.1383937104184; Fri, 08 Nov 2013 10:58:24 -0800 (PST) Original-Path: usenet.stanford.edu!y3no4967964pbx.0!news-out.google.com!9ni18005qaf.0!nntp.google.com!i2no16845885qav.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=76.164.9.2; posting-account=EwI0QQoAAADdqmqX_mVfawBNtwyks2YE Original-NNTP-Posting-Host: 76.164.9.2 User-Agent: G2/1.0 Injection-Date: Fri, 08 Nov 2013 18:58:24 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:202134 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94405 Archived-At: Recenter after isearch finds a match: (defun recenter-no-redraw (&optional arg) (interactive "P") (let ((recenter-redisplay nil)) (recenter arg))) ;; recenter the cursor after finding a match (defadvice isearch-search (after isearch-recenter activate) (when isearch-success (recenter-no-redraw)))