From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: Should ending successful Isearch with C-g restore the relative window position? Date: Mon, 14 Jan 2013 14:29:40 -0800 Message-ID: <7E5B63603B074626914E5DAEB90E738B@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358202586 15909 80.91.229.3 (14 Jan 2013 22:29:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2013 22:29:46 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 14 23:30:04 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 1TusXc-0005h9-Hy for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2013 23:30:04 +0100 Original-Received: from localhost ([::1]:56936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TusXM-00022f-87 for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2013 17:29:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TusXJ-00020k-9w for emacs-devel@gnu.org; Mon, 14 Jan 2013 17:29:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TusXI-0002dg-8h for emacs-devel@gnu.org; Mon, 14 Jan 2013 17:29:45 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:32931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TusXI-0002dY-2P for emacs-devel@gnu.org; Mon, 14 Jan 2013 17:29:44 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0EMTgMl002593 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 14 Jan 2013 22:29:43 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0EMTfhD007623 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 14 Jan 2013 22:29:42 GMT Original-Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0EMTfx7032486 for ; Mon, 14 Jan 2013 16:29:41 -0600 Original-Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 14 Jan 2013 14:29:41 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac3ypqSNQDsI8o0iRyu77tQFy7aFgA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:156353 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?