From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.help Subject: Re: aggressive-indent-mode freezes Date: Tue, 09 Feb 2016 23:18:56 +1100 Message-ID: <877fiecc0f.fsf@gmail.com> References: <878u2ucgyz.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1455020560 28479 80.91.229.3 (9 Feb 2016 12:22:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Feb 2016 12:22:40 +0000 (UTC) Cc: help-gnu-emacs To: Luca Ferrari Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 09 13:22:32 2016 Return-path: Envelope-to: geh-help-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 1aT7JP-0002hL-14 for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Feb 2016 13:22:31 +0100 Original-Received: from localhost ([::1]:55134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT7JO-0004sZ-GX for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Feb 2016 07:22:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT7G5-0008PA-Bx for help-gnu-emacs@gnu.org; Tue, 09 Feb 2016 07:19:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aT7G2-0005nt-6m for help-gnu-emacs@gnu.org; Tue, 09 Feb 2016 07:19:05 -0500 Original-Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:35237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT7G1-0005nl-Qn for help-gnu-emacs@gnu.org; Tue, 09 Feb 2016 07:19:02 -0500 Original-Received: by mail-pa0-x234.google.com with SMTP id ho8so90688582pac.2 for ; Tue, 09 Feb 2016 04:19:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=DQYqqTngymCzfEnozIeM4YHMzjS4yAF+PzMPjSzdA1s=; b=dt7EgzbC+rDqpUFUceHoz1fth/9u7IoguBdUQPW1TqVH/BLDqp5PDx2a/fHkoYnKNW ZHzg2eMfBspUM6npbAyfinkl8u5xW9HzrM8Fq8FkHCs0M9m3rH/hrUmkdBCbeefXAIOB 9sBmLU8s41jEPIjAhaH5sLGnYr83B/+t7ijGaxuzpmdN8mp2iZDGekttOmZ7hHI4Q6hE OBsm8jqI+OnoJztCH28NW6+9LataiRH5KK0lRdzlmU1SWMzPin/2nPM9Fyv5J5sjF1rS teszRd8U/R/69dJLhSqaf9z7MvnFLzIxwKZKCIhgY0BW0eCZVrc8F7nI4s6ADXP37x/s s6VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-type; bh=DQYqqTngymCzfEnozIeM4YHMzjS4yAF+PzMPjSzdA1s=; b=Trb0viVtz9O2FRUsD+sh3aKY5YbN9+dJBFUo5brEQ4cL0mpuExhZBEkfqzrqWgF+0A lWRpd4Gd4Wmmeoka4UeSVCANMYuzun+nY/BR22yYs4TqjBhKB8N57SH3vEP8Rd2ElYnG 1m86Yrvmf2TNUTTv3RCrWSmDP7b3eQAAISiEW4wdVv5L7sxTzQMerhCsrV/O+tNaNuDF oxxqPxuUReRiFOzB9joSrPJq4vbl8RtDU8Ft7mGH2rqVDI3kVzOSoz0GrOBWarxWtu8O 8YKEHxNbV3mHTz8tlz+NYR5dCvPV5fT9I6Vp5PgUXMTYevrY1O1GfEGwd3jAPducZtW0 dSfA== X-Gm-Message-State: AG10YOS/JnM3qpQQ62qnRLDCSrlYS1y0usepJpVIU9V+aoRe1t5mcpexsANv8bSuZWY5qA== X-Received: by 10.66.161.66 with SMTP id xq2mr19483250pab.153.1455020341047; Tue, 09 Feb 2016 04:19:01 -0800 (PST) Original-Received: from localhost (114-198-67-137.dyn.iinet.net.au. [114.198.67.137]) by smtp.gmail.com with ESMTPSA id q16sm50267943pfi.80.2016.02.09.04.18.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Feb 2016 04:19:00 -0800 (PST) User-agent: mu4e 0.9.16; emacs 24.5.3 In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109075 Archived-At: Luca Ferrari writes: > I've tried to run it against loaddefs.el (around 31k lines) and > it works fine, so maybe it is a problem of the language (php) it > tries to indent? Running on a php file it takes around 3 > seconds to return responsive, even with electric indent mode > disabled. I've also tried to disable other minor modes I use > like flymake, yas, hs but nothing changed. Fair enough. i don't work much with PHP, so i just downloaded the source of WordPress and searched for the longest file, which turned out to be wp-includes/class-wp-xmlrpc-server.php, with ~6.5k lines. Again, editing didn't result in any appreciable lag. (The lag was certainly less than with org.el, which is not surprising, given org.el is three times larger.) Can you try running `emacs -Q`, loading aggressive-indent manually, and then check if you still observe the significant lag? Alexis.