From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Avoid recentering when user says so Date: Sun, 27 Mar 2011 04:58:11 +0200 Message-ID: References: <83r59tsoos.fsf@gnu.org> <83oc4xslpt.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1301194766 9928 80.91.229.12 (27 Mar 2011 02:59:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2011 02:59:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 27 04:59:19 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q3gCD-0001zv-85 for ged-emacs-devel@m.gmane.org; Sun, 27 Mar 2011 04:59:17 +0200 Original-Received: from localhost ([127.0.0.1]:48233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3gCB-0002cU-Vq for ged-emacs-devel@m.gmane.org; Sat, 26 Mar 2011 22:59:16 -0400 Original-Received: from [140.186.70.92] (port=42254 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3gC2-0002cN-Q1 for emacs-devel@gnu.org; Sat, 26 Mar 2011 22:59:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3gBx-0005J6-BA for emacs-devel@gnu.org; Sat, 26 Mar 2011 22:59:06 -0400 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:59097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3gBo-0005IA-UP; Sat, 26 Mar 2011 22:58:53 -0400 Original-Received: by qyk30 with SMTP id 30so1711179qyk.0 for ; Sat, 26 Mar 2011 19:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=TvJh0RbKG1i2ekDvo9WXtf713RL4Seaot/F47K/nK3k=; b=ijrC390BBUMhFHr+mzKySAN3aXlOYidEvm6iZXCrR4DUBujwQ0/Edw3AB9FEdeLGg3 U25XblXanZIqHoDNvVUgK9FK16J3AxozvNUvyyrWk++pAEJcCVSEVwUz7Q0tHNYrD8am G90dbR8Z5J1DfR7DW66FpNWCDQ4wxX/LmanmU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=KiRLXLLpdHK/6Lvxls4r5GixD72/CgzDselvGdRp8p43UQGd5/bBvd+zdOOtNZmurY T57MM1XpJH+yprG2rBDI4MHfzfA1lCw7G4UVfZJJd6ZJJ/aOG/aWVigJmOuAc0B7BE0t lLy9MbZ3dBnRuLfc5gst9/2q8LoEn1KeWXl3U= Original-Received: by 10.229.73.25 with SMTP id o25mr2063037qcj.208.1301194731952; Sat, 26 Mar 2011 19:58:51 -0700 (PDT) Original-Received: by 10.229.94.207 with HTTP; Sat, 26 Mar 2011 19:58:11 -0700 (PDT) In-Reply-To: <83oc4xslpt.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.176 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137737 Archived-At: On Sat, Mar 26, 2011 at 20:52, Eli Zaretskii wrote: > Btw, in the discussions related to bug #6671, some people said that > Emacs should pay attention to the value of another variable, > scroll-preserve-screen-position, when Emacs decides where to put point > after moving it to a far away location. He, not exactly ;-) Chong asked if the unwanted recentering affected other scrolling commands, and I said that scroll-(up|down)-command do preserve the screen position and don't do any recentering. I think the documentation makes reasonably clear that `scroll-preserve-screen-position' is not defined for non-scrolling movements (like goto-line), and as per line-by-line scrolling (assuming you've got track-eol =3D=3D t) you can already combine pgup/pgdown and up/down and get the cursor back to the same screen position, so it's well defined and well-behaved. It's true that (next|previous)-line do not really obey scroll-preserve-screen-position, but as they try to move vertically and are smart with respect to end of line (with track-eol), the net effect is the same. =C2=A0 =C2=A0 Juanma