From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: [jidanni@jidanni.org: pin the right edge of the text to the right edge of the monitor] Date: Sun, 08 Feb 2004 09:29:09 +0200 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87llneuiym.fsf@mail.jurta.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1076225666 20894 80.91.224.253 (8 Feb 2004 07:34:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2004 07:34:26 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, Dan Jacobson Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Feb 08 08:34:20 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ApjSO-00043a-00 for ; Sun, 08 Feb 2004 08:34:20 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ApjSO-0003Px-00 for ; Sun, 08 Feb 2004 08:34:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ApjR5-00035S-S5 for emacs-devel@quimby.gnus.org; Sun, 08 Feb 2004 02:32:59 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ApjQo-00032z-Aj for emacs-devel@gnu.org; Sun, 08 Feb 2004 02:32:42 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ApjQI-0002Jp-Ci for emacs-devel@gnu.org; Sun, 08 Feb 2004 02:32:41 -0500 Original-Received: from [66.33.219.6] (helo=knife.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ApjQI-0002Jk-4c; Sun, 08 Feb 2004 02:32:10 -0500 Original-Received: from mail.jurta.org (80-235-34-181-dsl.mus.estpak.ee [80.235.34.181]) by knife.dreamhost.com (Postfix) with ESMTP id 6D27EE4038; Sat, 7 Feb 2004 23:32:06 -0800 (PST) Original-To: no-spam@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "07 Feb 2004 02:06:14 +0100") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19799 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19799 no-spam@cua.dk (Kim F. Storm) writes: > I have just installed a patch which should improve on this behaviour. > > Now the cursor is positioned nearer to the right margin when jumping to > the end of a long line (C-e), rather than centering the cursor as is > usually done when hscrolling. Instead of constant 4 it would be more correct to use either `hscroll-margin' or `hscroll-step'. However, I'm not sure which one. Each of them makes sense: - hscroll-margin defines how many columns away from the window edge point is allowed to get. So after reaching the end of a long line inside this margin point could be moved outside the scroll margin to the column defined by the value of hscroll-margin. Its current default value 5 is a good value for this functionality and will remain unchanged. - hscroll-step defines how many columns to scroll the window when point gets too close to the edge. This variable could be used to define how many columns to scroll from the window edge when point jumps to the end of a long line. Its current default value 0 (center) would be changed to 5. > Note that my fix only applies to the default hscroll settings; if you > have modified the hscroll parameters, your setting still apply. Currently, with modified hscroll parameters point is positioned to the sum of (hscroll-margin + hscroll-step) columns from the right edge which is too far. It should move by either hscroll-margin or hscroll-step. -- http://www.jurta.org/emacs/