all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 13055@debbugs.gnu.org
Subject: bug#13055: 24.3.50; `scroll-margin' not always honored in Info buffers
Date: Sun, 2 Dec 2012 22:51:44 +0100	[thread overview]
Message-ID: <CAH8Pv0gWsN7G2gHPhxb-nzHpJSuB5CpiGez_s2H=7EOg5euejg@mail.gmail.com> (raw)
In-Reply-To: <831uf8tl3d.fsf@gnu.org>

> Not a bug.  scroll-margin is only in effect when window is _scrolled_
> due to cursor motion commands.  In this case, <backspace> causes the
> buffer to be emptied, and an entirely different text be inserted into
> it.  There's no scrolling here, thus scroll-related variables are
> never consulted in this case.
>
> The Emacs User manual clearly starts the section that describes these
> variables with this:
>
>   Emacs performs "automatic scrolling" when point moves out of the
>   visible portion of the text.

From an user point of view, the <backspace> key (from Info buffers) is
indeed a movement command.  In this case the movement was from the to
of one info node to the bottom of another one (the previous one).

> IOW, scroll-margin determines when automatic scrolling is triggered,
> but not where point can be legitimately located in a window.

That makes little sense to me, and is not what I interpret from the
documentation:

     The variable `scroll-margin' restricts how close point can come to
  the top or bottom of a window (even if aggressive scrolling specifies a
  fraction F that is larger than the window portion between the top and
  the bottom margins).  Its value is a number of screen lines; if point
  comes within that many lines of the top or bottom of the window, Emacs
  performs automatic scrolling.  By default, `scroll-margin' is 0.

As I see it, this variable guarantees the users to _always_ see some
context lines around point, which is an important feature to me.
Without this feature, I would be sometimes unsure about whether the
current line is the one I am looking for (because I have no context
lines below/above the current one).  That's the very reason I set this
variable in my init file, and it makes no sense to me to honor this
variable in some situations and not in others.

And BTW, one symptom of the abnormal location of the current line in
my recipe is this: just after the last step, if you minimize the Emacs
frame and restore it again, the current line is then centered in the
window.  What sense does that make?  The current line should not
change because of that, definitely.

-- 
Dani Moncayo





  reply	other threads:[~2012-12-02 21:51 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-02 16:39 bug#13055: 24.3.50; `scroll-margin' not always honored in Info buffers Dani Moncayo
2012-12-02 17:33 ` Eli Zaretskii
2012-12-02 21:51   ` Dani Moncayo [this message]
2012-12-03  3:46     ` Eli Zaretskii
2012-12-03  7:34       ` Dani Moncayo
2012-12-03 14:53         ` Juanma Barranquero
2012-12-03 15:21           ` Dani Moncayo
2012-12-03 16:09             ` Juanma Barranquero
2012-12-03 16:27               ` Dani Moncayo
2012-12-03 17:46               ` Eli Zaretskii
2012-12-03 17:49                 ` Juanma Barranquero
2012-12-03 17:42           ` martin rudalics
2012-12-03 17:52             ` Juanma Barranquero
2012-12-03 17:42         ` Eli Zaretskii
2012-12-03 19:02           ` Dani Moncayo
2012-12-03 20:58             ` Eli Zaretskii
2012-12-03 21:32               ` Dani Moncayo
2012-12-03 18:07 ` Stefan Monnier
2012-12-03 20:49   ` Eli Zaretskii

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='CAH8Pv0gWsN7G2gHPhxb-nzHpJSuB5CpiGez_s2H=7EOg5euejg@mail.gmail.com' \
    --to=dmoncayo@gmail.com \
    --cc=13055@debbugs.gnu.org \
    --cc=eliz@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.