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#14838: 24.3.50; repeating next-line or previous-line is broken Date: Thu, 11 Jul 2013 22:16:00 +0300 Message-ID: <83ppuo6h73.fsf@gnu.org> References: <87ip0ije8n.fsf@gmx.net> <83bo69vmev.fsf@gnu.org> <8761whxvjc.fsf@rosalinde.fritz.box> <838v1dulyl.fsf@gnu.org> <87zjttx741.fsf@rosalinde.fritz.box> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1373570231 29158 80.91.229.3 (11 Jul 2013 19:17:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Jul 2013 19:17:11 +0000 (UTC) Cc: 14838@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 11 21:17:10 2013 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 1UxMMX-0007ne-AJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jul 2013 21:17:09 +0200 Original-Received: from localhost ([::1]:45940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxMMW-0006Fi-S9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jul 2013 15:17:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxMMS-0006FQ-7s for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2013 15:17:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxMMR-0007kn-1M for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2013 15:17:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxMMQ-0007kf-UA for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2013 15:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UxMMQ-0000Rc-IP for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2013 15:17: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: Thu, 11 Jul 2013 19:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14838 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14838-submit@debbugs.gnu.org id=B14838.13735702141674 (code B ref 14838); Thu, 11 Jul 2013 19:17:02 +0000 Original-Received: (at 14838) by debbugs.gnu.org; 11 Jul 2013 19:16:54 +0000 Original-Received: from localhost ([127.0.0.1]:48418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UxMMI-0000Qv-FE for submit@debbugs.gnu.org; Thu, 11 Jul 2013 15:16:54 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:36305) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UxMMG-0000Qg-0e for 14838@debbugs.gnu.org; Thu, 11 Jul 2013 15:16:53 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MPS00L00DFZCW00@a-mtaout22.012.net.il> for 14838@debbugs.gnu.org; Thu, 11 Jul 2013 22:16:07 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MPS00K9JDIUY7A0@a-mtaout22.012.net.il>; Thu, 11 Jul 2013 22:16:07 +0300 (IDT) In-reply-to: <87zjttx741.fsf@rosalinde.fritz.box> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76243 Archived-At: > From: Stephen Berman > Cc: Jan Djärv , 14838@debbugs.gnu.org > Date: Thu, 11 Jul 2013 20:51:42 +0200 > > Here are the top 200 lines of another profile (not identical to the one > I posted previously, but similar), which account for 99% of the CPU > time. Is this saying that 70% of CPU time is spent in line-move-partial > (and 82% in aref)? I don't believe the aref part. I think the real culprit is font-info. Let's conduct an experiment: if you modify default-font-height so that it always just calls frame-char-height, does the problem go away? > >> vs 0 dlh 14 this nil rowh 13 rbot 1 py 0 vpos 32 last 31.0 > >> 2 > >> > >> and nothing else. > > > > The "py 0" part is very strange. "py" is the vertical coordinate of > > point in screen line units. Since this was with C-n, I expect py > > never to be less than half the screen height, which is 16. How come > > it is zero, i.e. point is in the first line? Can you step through > > line-move-partial in Edebug and see what is going on there? > > If I instrument line-move-partial and type `C-n', I see py = 0 on the > first line and it increases by 1 on each subsequent line. I have no > idea why *Messages* only showed a value of 0 for py; could it be that > the messages were overwritten when the CPU load hit 90%? Could be, since the messages are produced as part of redisplay. Can you show the trace messages from when the CPU is not yet 100% busy, and Emacs can still keep up with scrolling?