From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <831t5fh79q.fsf@gnu.org> References: <8637pwubct.fsf@NOTE-REPLACE.i-did-not-set--mail-host-address--so-tickle-me> <83wpn8h4tj.fsf@gnu.org> <83h9ecgvca.fsf@gnu.org> <83futwgtti.fsf@gnu.org> <8360urhdna.fsf@gnu.org> <87h9ebr50n.fsf@petton.fr> <874mab8s6t.fsf@gmx.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1462526504 6747 80.91.229.3 (6 May 2016 09:21:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 May 2016 09:21:44 +0000 (UTC) Cc: jamezmcclain@gmail.com, nicolas@petton.fr, 23457@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 06 11:21:32 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aybwx-0000kM-QB for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 May 2016 11:21:31 +0200 Original-Received: from localhost ([::1]:57230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aybwt-0004EV-Vz for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 May 2016 05:21:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aybwj-0003tV-8s for bug-gnu-emacs@gnu.org; Fri, 06 May 2016 05:21:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aybwX-0006dh-Om for bug-gnu-emacs@gnu.org; Fri, 06 May 2016 05:21:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aybwX-0006cV-Mf for bug-gnu-emacs@gnu.org; Fri, 06 May 2016 05:21:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aybwU-0007tv-Bn for bug-gnu-emacs@gnu.org; Fri, 06 May 2016 05:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 May 2016 09:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23457 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 23457-submit@debbugs.gnu.org id=B23457.146252646030356 (code B ref 23457); Fri, 06 May 2016 09:21:02 +0000 Original-Received: (at 23457) by debbugs.gnu.org; 6 May 2016 09:21:00 +0000 Original-Received: from localhost ([127.0.0.1]:41140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aybwS-0007tY-9i for submit@debbugs.gnu.org; Fri, 06 May 2016 05:21:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aybwQ-0007tL-Ii for 23457@debbugs.gnu.org; Fri, 06 May 2016 05:20:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aybwB-0006VJ-TI for 23457@debbugs.gnu.org; Fri, 06 May 2016 05:20:50 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aybwB-0006U9-Q0; Fri, 06 May 2016 05:20:43 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2628 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aybw4-0007Tb-I5; Fri, 06 May 2016 05:20:36 -0400 In-reply-to: <874mab8s6t.fsf@gmx.net> (message from Stephen Berman on Fri, 06 May 2016 11:13:46 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:117900 Archived-At: > From: Stephen Berman > Date: Fri, 06 May 2016 11:13:46 +0200 > Cc: Nicolas Petton , 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.