From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.devel Subject: Re: Should ending successful Isearch with C-g restore the relative window position? Date: Tue, 15 Jan 2013 00:07:54 +0100 Message-ID: References: <7E5B63603B074626914E5DAEB90E738B@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1358204881 4605 80.91.229.3 (14 Jan 2013 23:08:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2013 23:08:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 15 00:08:19 2013 Return-path: Envelope-to: ged-emacs-devel@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 1Tut8a-0004WL-DP for ged-emacs-devel@m.gmane.org; Tue, 15 Jan 2013 00:08:16 +0100 Original-Received: from localhost ([::1]:46848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tut8K-0006c5-0h for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2013 18:08:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tut8G-0006ZT-81 for emacs-devel@gnu.org; Mon, 14 Jan 2013 18:07:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tut8F-0004kY-9z for emacs-devel@gnu.org; Mon, 14 Jan 2013 18:07:56 -0500 Original-Received: from mail-oa0-f45.google.com ([209.85.219.45]:35763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tut8F-0004kS-5O for emacs-devel@gnu.org; Mon, 14 Jan 2013 18:07:55 -0500 Original-Received: by mail-oa0-f45.google.com with SMTP id i18so4514410oag.4 for ; Mon, 14 Jan 2013 15:07:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EaMA1sSLpwlqBHmS3njlwbIsnsU0JM5PlMTq2myM73k=; b=JB03XDRn4lHgROsorAdCFhl2TF8EF2o0xNlW+JLuPhC5LlIVCiZYQgNHOp5Td3npcq r0qHh0Pe1bMMr7gSuK1/2dujZJkpFC3UDFOcJ2IiscPbN615mwC4Z8NtRULkrTTIBM41 OdNkXAB+z0ajvTs5S8Mb574/kNg/nt/GKYUvLnhZEhYF4Ka/E70Kx/nIo2MZpFUmqmhR Lgu/0bVu+0U+Nl/UqtxK2vokQbJHKEnTKMjYxfuAKCkDegt1OJba77hvTy29ndbwgxjp NsSgoQYdMljboUpwHD4Jea9h8CavdXa/31i01QugBy/LFEy+eR+lHULawmoNr6jpX+QR rBpQ== Original-Received: by 10.182.146.107 with SMTP id tb11mr62445462obb.30.1358204874636; Mon, 14 Jan 2013 15:07:54 -0800 (PST) Original-Received: by 10.60.11.39 with HTTP; Mon, 14 Jan 2013 15:07:54 -0800 (PST) In-Reply-To: <7E5B63603B074626914E5DAEB90E738B@us.oracle.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.219.45 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156355 Archived-At: > In a buffer with multiple occurrences of "the", position the window so that one > of the occurrences is near the top of the window. Now do C-s the C-s C-s... > > This successfully visits occurrences of "the", and if there are enough of them > then it scrolls the window to do this. Now hit C-g to exit Isearch. > > Point is moved back to its starting position (good). But now that position, > instead of being near the window top, is in the center of the window. > `goto-char' has, in effect, recentered the point in the window. > > To me, this is a misfeature. I would much rather have the original window > position, as well as point, restored. That is, I would rather see the cursor in > the same relative window location as it was before searching. > > Is there some advantage of the current behavior that I'm missing? Am I the only > one who thinks that restoring the window position along with point would be > better? IMO, TRT would be to restore both point and the window position. I filed bug #12799, which is about a similar issue: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12799 -- Dani Moncayo