unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: moving point and scroll-conservatively
Date: Sat, 26 Jun 2010 13:52:17 +0200	[thread overview]
Message-ID: <AANLkTinMplkdmKkUgJrc7NN_UZZUNk5YP7ipdDzbS79R@mail.gmail.com> (raw)
In-Reply-To: <83pqzec9i8.fsf@gnu.org>

On Sat, Jun 26, 2010 at 13:34, Eli Zaretskii <eliz@gnu.org> wrote:

> Did any of you who set scroll-conservatively to most-positive-fixnum
> notice that moving around an unmodified buffer became much slower,
> since revno 100620, when point moves far away?

No, I hadn't noticed.

> it takes Emacs 17 seconds on my 3GHz machine to display xdisp.c around
> line 25000, whereas it's instantaneous in Emacs 23.2.

It takes ~10s on my 2.5GHz Core2Quad Q9300. Which is ~10s longer than
it takes in 23.2, yes :-(

> Note that the documentation of
> scroll-conservatively explicitly says "set it to some small number N";
> i.e. it was never the intent that it will be set to such large values.

The documentation is in conflict because, as I already pointed out,
the docstring for `scroll-step' clearly says:

  If you want scrolling to always be a line at a time, you should set
  `scroll-conservatively' to a large value rather than set this to 1.

which is what prompted me to set it to most-positive-fixnum in the
first place. Perhaps, once the implementation is working as expected,
we should simply add an option scroll-never-recenter or somesuch.

> Btw, what do users of scroll-conservatively = most-positive-fixnum
> want from C-v and PageDown keys?  Is it okay to recenter in that case,
> or do you want to see the cursor on the last screen line in that case
> as well?

IIUC, if PgDown recenters, PgDown/PgUp will no longer be a noop (I set
`scroll-preserve-screen-position' to `always'), which would be pretty
bad.

All in all, I would prefer for Emacs *never* recenter unless I ask it
explicitly via C-l.

Thanks for all the hard work on this issue.

    Juanma



  reply	other threads:[~2010-06-26 11:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-26 11:34 moving point and scroll-conservatively Eli Zaretskii
2010-06-26 11:52 ` Juanma Barranquero [this message]
2010-06-26 12:25   ` Eli Zaretskii
2010-06-26 13:08     ` David De La Harpe Golden
2010-06-26 14:08       ` Christoph
2010-06-26 21:25     ` Juanma Barranquero
2010-06-28 21:08     ` Juri Linkov
2010-06-26 12:44 ` David De La Harpe Golden
2010-07-19 12:48 ` Juanma Barranquero
2010-07-19 17:39   ` 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=AANLkTinMplkdmKkUgJrc7NN_UZZUNk5YP7ipdDzbS79R@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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 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).