unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: 13055@debbugs.gnu.org
Subject: bug#13055: 24.3.50; `scroll-margin' not always honored in Info buffers
Date: Sun, 02 Dec 2012 19:33:42 +0200	[thread overview]
Message-ID: <831uf8tl3d.fsf@gnu.org> (raw)
In-Reply-To: <CAH8Pv0hK5Yjw721XW_xo2QACX6XyxgZhBjPTmozHbb3zWZrEsA@mail.gmail.com>

> Date: Sun, 2 Dec 2012 17:39:09 +0100
> From: Dani Moncayo <dmoncayo@gmail.com>
> 
> >From Emacs -Q:
> 
> 1. Eval: (setq scroll-margin 1)
> 2. Eval: (info "(emacs) Intro")
> 3. Type: <backspace>
> 
> --> The current line is the last visible one, but that should never
> happen, since `scroll-margin' is set to 1.  The current line should be
> the penultimate visible one.

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.

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





  reply	other threads:[~2012-12-02 17:33 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 [this message]
2012-12-02 21:51   ` Dani Moncayo
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=831uf8tl3d.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=13055@debbugs.gnu.org \
    --cc=dmoncayo@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).