all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: jamezmcclain@gmail.com, nicolas@petton.fr, 23457@debbugs.gnu.org
Subject: bug#23457: 24.5; interactive use of next-line and previous-line (holding down C-n or C-p) lag in a buffer with all spaces and newlines
Date: Fri, 06 May 2016 12:20:49 +0300	[thread overview]
Message-ID: <831t5fh79q.fsf@gnu.org> (raw)
In-Reply-To: <874mab8s6t.fsf@gmx.net> (message from Stephen Berman on Fri, 06 May 2016 11:13:46 +0200)

> From: Stephen Berman <stephen.berman@gmx.net>
> Date: Fri, 06 May 2016 11:13:46 +0200
> Cc: Nicolas Petton <nicolas@petton.fr>, 23457@debbugs.gnu.org
> 
> I can reproduce this with the above recipe.  At step 9 I held down C-p
> for five seconds; after about 1 second point moved up one line (from 122
> to 121), then Emacs froze for about 45 seconds, after which point jumped
> to bob.

A large buffer with no text paragraph anywhere in sight caused Emacs
to search back for the end of the previous paragraph, in order to
decide what is the base direction for the current paragraph.  In
addition, every line is long, but empty, so regex search also takes
time.  The search is limited to a certain number of lines, so the
lag should level out after that, but otherwise just don't use such
empty lines in buffers whose bidi-paragraph-direction is nil.





  reply	other threads:[~2016-05-06  9:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-05  9:01 bug#23457: 24.5; interactive use of next-line and previous-line (holding down C-n or C-p) lag in a buffer with all spaces and newlines jamezmcclain
2016-05-05 16:01 ` Eli Zaretskii
     [not found]   ` <CAEsaJvOMYP=VtqjdH06Yztagn084yYMe2QW986=nq6nv5pKc4g@mail.gmail.com>
2016-05-05 19:26     ` Eli Zaretskii
2016-05-05 19:59       ` Eli Zaretskii
2016-05-06  0:34         ` James McClain
2016-05-06  7:03           ` Eli Zaretskii
2016-05-06  7:59             ` Nicolas Petton
2016-05-06  8:41               ` Eli Zaretskii
2016-05-06  8:43               ` James McClain
2016-05-06  9:13                 ` Stephen Berman
2016-05-06  9:20                   ` Eli Zaretskii [this message]
2016-05-06  9:15                 ` Eli Zaretskii
2016-05-06  9:19                   ` James McClain
2016-05-06  9:24                     ` Eli Zaretskii
2016-05-07  8:02                       ` 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=831t5fh79q.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=23457@debbugs.gnu.org \
    --cc=jamezmcclain@gmail.com \
    --cc=nicolas@petton.fr \
    --cc=stephen.berman@gmx.net \
    /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.