From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org, rms@gnu.org, Dan Jacobson <jidanni@jidanni.org>
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 [thread overview]
Message-ID: <87llneuiym.fsf@mail.jurta.org> (raw)
In-Reply-To: <m31xp7snp5.fsf@kfs-l.imdomain.dk> (Kim F. Storm's message of "07 Feb 2004 02:06:14 +0100")
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/
prev parent reply other threads:[~2004-02-08 7:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-01 8:02 [jidanni@jidanni.org: pin the right edge of the text to the right edge of the monitor] Richard Stallman
2004-02-01 21:46 ` Kim F. Storm
2004-02-07 1:06 ` Kim F. Storm
2004-02-08 7:29 ` Juri Linkov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87llneuiym.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
--cc=jidanni@jidanni.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.