From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Should ending successful Isearch with C-g restore the relative window position? Date: Tue, 15 Jan 2013 18:34:10 +0200 Message-ID: <834niiqubh.fsf@gnu.org> References: <7E5B63603B074626914E5DAEB90E738B@us.oracle.com> <83fw23qf57.fsf@gnu.org> <1712F3B8AF3D49DD9AC9F829FF560543@us.oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1358273618 14632 80.91.229.3 (15 Jan 2013 18:13:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jan 2013 18:13:38 +0000 (UTC) Cc: emacs-devel@gnu.org, dmoncayo@gmail.com To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 15 19:13:55 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 1TvB17-0003rZ-0m for ged-emacs-devel@m.gmane.org; Tue, 15 Jan 2013 19:13:45 +0100 Original-Received: from localhost ([::1]:48700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvB0q-00037O-Hi for ged-emacs-devel@m.gmane.org; Tue, 15 Jan 2013 13:13:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv9SM-0006wK-Mn for emacs-devel@gnu.org; Tue, 15 Jan 2013 11:33:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tv9SF-0000en-LG for emacs-devel@gnu.org; Tue, 15 Jan 2013 11:33:46 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:33048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv9SF-0000eW-Dg for emacs-devel@gnu.org; Tue, 15 Jan 2013 11:33:39 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MGO00400DPWUW00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Tue, 15 Jan 2013 18:33:37 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MGO004E5E00PR70@a-mtaout22.012.net.il>; Tue, 15 Jan 2013 18:33:37 +0200 (IST) In-reply-to: <1712F3B8AF3D49DD9AC9F829FF560543@us.oracle.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:156402 Archived-At: > From: "Drew Adams" > Cc: , > Date: Tue, 15 Jan 2013 06:58:49 -0800 > > > Recentering is the default, always was. > > Just the _default_? > > Does that mean that there is a simple user setting that changes the behavior > from the default so that it returns things as they were before searching? I doubt that. You could try scroll-preserve-screen-position, but it doesn't do a perfect job, and I'm not even sure it will change anything in the situation you described. What I meant by "is the default, always was" is that the recentering behavior was originally the only one available, so it predates any scroll-* variables; therefore, it is small wonder that you find this behavior in old versions of Emacs, where the scroll-* variables aren't available or behave differently. The non-default behavior, triggered by customizing some of the scroll-* variables, can put point on the first or the last window line (depending on the direction of movement), or make sure point is never too close to the window edge. But that's about all. Emacs was never programmed to predictably return to the same place on the screen (and it isn't easy, either, due to variable fonts).