From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29889: 27.0.50; Slow visual selection Date: Fri, 29 Dec 2017 11:04:01 +0200 Message-ID: <83tvw9gb26.fsf@gnu.org> References: <87y3lmgphl.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1514538205 27972 195.159.176.226 (29 Dec 2017 09:03:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Dec 2017 09:03:25 +0000 (UTC) Cc: 29889@debbugs.gnu.org To: Sujith Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 29 10:03:21 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUqZS-0006gL-K3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Dec 2017 10:03:18 +0100 Original-Received: from localhost ([::1]:33350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUqbQ-0003ZN-NH for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Dec 2017 04:05:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUqbC-0003RF-OX for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2017 04:05:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUqb9-0000Hz-W1 for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2017 04:05:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47074) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUqb9-0000Hl-Se for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2017 04:05:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eUqb8-0002fo-8l for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2017 04:05:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Dec 2017 09:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29889 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29889-submit@debbugs.gnu.org id=B29889.151453826810233 (code B ref 29889); Fri, 29 Dec 2017 09:05:02 +0000 Original-Received: (at 29889) by debbugs.gnu.org; 29 Dec 2017 09:04:28 +0000 Original-Received: from localhost ([127.0.0.1]:55755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUqaZ-0002ez-QU for submit@debbugs.gnu.org; Fri, 29 Dec 2017 04:04:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUqaY-0002el-P2 for 29889@debbugs.gnu.org; Fri, 29 Dec 2017 04:04:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUqaQ-0008Bl-VN for 29889@debbugs.gnu.org; Fri, 29 Dec 2017 04:04:21 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUqaQ-0008Bh-SG; Fri, 29 Dec 2017 04:04:18 -0500 Original-Received: from [176.228.60.248] (port=2965 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eUqaQ-0007n6-2e; Fri, 29 Dec 2017 04:04:18 -0500 In-reply-to: <87y3lmgphl.fsf@gmail.com> (message from Sujith on Fri, 29 Dec 2017 09:22:22 +0530) 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:141589 Archived-At: > From: Sujith > Date: Fri, 29 Dec 2017 09:22:22 +0530 > > Visual selection of text becomes very slow and hogs the > CPU in some cases. > > For example, open the file lisp/progmodes/vhdl-mode.el in > the emacs codebase. And then, to reproduce this issue: > > * Scroll patiently to the bottom using C-v. > (this is essential, jumping to the bottom doesn't seem to bring > up this issue). > * Set mark with C-SPC. > * Go to the beginning with M-<. > * Now move the cursor up and down. > > The selection is jerky and CPU usage is very high. > I have tried this with emacs -Q and can see the issue. I am using > the master branch. Confirmed. Additional info: This happens also on the emacs-26 branch and in the 26.0.90 pretest, but not in Emacs 25.2. It also isn't limited to *.el files: I see it with, e.g., xterm.c. The painfully slow first step can be replaced with this much simpler step: M-: (font-lock-fontify-region (point-min) (point-max)) RET I guess some bisecting is in order.