From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Speed of keyboard macro execution? Date: Thu, 10 Dec 2015 20:47:24 +0200 Message-ID: <83h9jq9m4j.fsf@gnu.org> References: <20151209163954.0cefcc7f@jabberwock.cb.piermont.com> <87si3bcltu.fsf@isaac.fritz.box> <20151209180343.5a67c0e7@jabberwock.cb.piermont.com> <83r3iu9rvp.fsf@gnu.org> <87poyeyxt2.fsf@Rainer.invalid> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449773261 5587 80.91.229.3 (10 Dec 2015 18:47:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Dec 2015 18:47:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Achim Gratz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 10 19:47:32 2015 Return-path: Envelope-to: ged-emacs-devel@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 1a76FW-0003d4-D6 for ged-emacs-devel@m.gmane.org; Thu, 10 Dec 2015 19:47:30 +0100 Original-Received: from localhost ([::1]:43928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a76FV-00026M-NV for ged-emacs-devel@m.gmane.org; Thu, 10 Dec 2015 13:47:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a76FS-00026A-Bo for emacs-devel@gnu.org; Thu, 10 Dec 2015 13:47:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a76FO-0003by-9u for emacs-devel@gnu.org; Thu, 10 Dec 2015 13:47:26 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:60617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a76FO-0003bu-1a for emacs-devel@gnu.org; Thu, 10 Dec 2015 13:47:22 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NZ500G00NHK1Q00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Thu, 10 Dec 2015 20:47:20 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NZ500G3OO6W2610@a-mtaout21.012.net.il>; Thu, 10 Dec 2015 20:47:20 +0200 (IST) In-reply-to: <87poyeyxt2.fsf@Rainer.invalid> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196042 Archived-At: > From: Achim Gratz > Date: Thu, 10 Dec 2015 19:15:53 +0100 > > Eli Zaretskii writes: > > After all, how frequently do you need to edit files with lines in > > excess of 11K characters? > > If editing includes just opening the file and navigating around most of > the time, then the answer to that question for me is "daily". Yes, some of us do that a lot (myself included). But not most of us. > I can guarantee that there are no multi-byte or non-printing > characters in those files if that would make a difference. No, it doesn't help. Detecting a pure-ASCII buffer is very easy, so if this would help, we would be using it long ago. The main problem, in a nutshell, is that to get to the next visual line, you need to traverse all the characters of the preceding line. Going backward (which happens every time you type C-p, and also many times behind the scenes, e.g., when Emacs needs to determine where to set the window start for next redisplay) is even more problematic, since Emacs can currently only do that by starting from the beginning of the previous _physical_ line (there's an optimization in this regard for preposterously long lines, but it loses accuracy -- it could cause horizontal scrolling when you move point vertically).