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#24205: 25.1.50; Re-display issue (lag) when opening certain files [sml-mode] Date: Thu, 11 Aug 2016 23:27:52 +0300 Message-ID: <83twerdp9z.fsf@gnu.org> References: <837fbnfcg2.fsf@gnu.org> <8360r7f5y8.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1470947361 10098 195.159.176.226 (11 Aug 2016 20:29:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Aug 2016 20:29:21 +0000 (UTC) Cc: monnier@iro.umontreal.ca, 24205@debbugs.gnu.org To: Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 11 22:29:17 2016 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 1bXwbL-0002Qc-Ug for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Aug 2016 22:29:16 +0200 Original-Received: from localhost ([::1]:50439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXwbJ-00082c-13 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Aug 2016 16:29:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXwbD-00082L-4f for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 16:29:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXwb8-0000YY-K2 for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 16:29:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXwb8-0000YT-GO for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 16:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bXwb8-0005hd-A3 for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 16:29: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 Aug 2016 20:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24205 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, monnier@iro.umontreal.ca Original-Received: via spool by submit@debbugs.gnu.org id=B.147094730721882 (code B ref -1); Thu, 11 Aug 2016 20:29:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Aug 2016 20:28:27 +0000 Original-Received: from localhost ([127.0.0.1]:54410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXwaZ-0005gr-Ix for submit@debbugs.gnu.org; Thu, 11 Aug 2016 16:28:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48105) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXwaY-0005gf-JA for submit@debbugs.gnu.org; Thu, 11 Aug 2016 16:28:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXwaQ-0000Tv-5z for submit@debbugs.gnu.org; Thu, 11 Aug 2016 16:28:21 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXwaQ-0000Tj-32 for submit@debbugs.gnu.org; Thu, 11 Aug 2016 16:28:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXwaN-0006rn-Sm for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 16:28:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXwaL-0000T6-QW for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 16:28:14 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXwaH-0000Rp-9b; Thu, 11 Aug 2016 16:28:09 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2229 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bXwaE-0001cJ-RT; Thu, 11 Aug 2016 16:28:07 -0400 In-reply-to: (message from Kaushal Modi on Thu, 11 Aug 2016 19:53:05 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:122108 Archived-At: > From: Kaushal Modi > Date: Thu, 11 Aug 2016 19:53:05 +0000 > Cc: bug-gnu-emacs@gnu.org, monnier@iro.umontreal.ca > > The file has to contain just this sml comment: > > ===== > (* ''a is a special equality type (it is not the same as the generic 'a type. It *) > ===== > > I cannot figure out what's special about this comment that freaks the re-display. Most probably the unbalanced parentheses. Something in sml-mode causes the display engine to hit on that many times. I will look into this. > Are you saying that just visiting this file exhibits the problem? > > Yes, in sml-mode. > > If > so, what modes should be turned on in the visiting buffer to see the > problem? > > All my MWE is doing is: > - Install sml-mode from GNU Elpa > - Create a specific example file that causes this issue > - Start profiler > - Visit the file I must explain something so that my requests don't sound arbitrary. When I work on a problem, I usually run Emacs many times in different ways, most of the times under a debugger. Since the debugger (and other tools) need to read my init files for working properly as I'm used to, I cannot easily change my home directory, or mess with my init files during the debugging session. In addition, with 10-20 sec delay I don't need a profiler to notice it. So it is much more helpful to have a recipe that is as simple as possible (so invoking it many times won't be painful), avoids interfering with my init files and system configuration, and includes only the stuff that is directly relevant to the bug reproduction. A good recipe along the above lines could easily speed up a bugfix by hours and even days. So if you can afford that, please try to follow these guidelines when you prepare a recipe. I hope this clarifies the reason for my requests. Thanks.