From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi 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 21:15:52 +0000 Message-ID: References: <837fbnfcg2.fsf@gnu.org> <8360r7f5y8.fsf@gnu.org> <83twerdp9z.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c114d2a0451d00539d246b5 X-Trace: blaine.gmane.org 1470950239 6673 195.159.176.226 (11 Aug 2016 21:17:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Aug 2016 21:17:19 +0000 (UTC) Cc: monnier@iro.umontreal.ca, 24205@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 11 23:17:13 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 1bXxLl-0001YM-DL for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Aug 2016 23:17:13 +0200 Original-Received: from localhost ([::1]:50570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXxLi-0007EJ-5f for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Aug 2016 17:17:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXxLb-0007ED-Tz for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 17:17:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXxLZ-0003ER-Nf for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 17:17:02 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXxLZ-0003EH-K5 for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 17:17:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bXxLZ-0006x9-Ii for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 17:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Aug 2016 21:17:01 +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.147095018026675 (code B ref -1); Thu, 11 Aug 2016 21:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Aug 2016 21:16:20 +0000 Original-Received: from localhost ([127.0.0.1]:54434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXxKu-0006wA-GN for submit@debbugs.gnu.org; Thu, 11 Aug 2016 17:16:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXxKs-0006vx-Gc for submit@debbugs.gnu.org; Thu, 11 Aug 2016 17:16:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXxKl-00034J-SO for submit@debbugs.gnu.org; Thu, 11 Aug 2016 17:16:13 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXxKl-000331-Of for submit@debbugs.gnu.org; Thu, 11 Aug 2016 17:16:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXxKj-0007Cm-6T for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 17:16:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXxKi-00030z-0K for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2016 17:16:09 -0400 Original-Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:33859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXxKe-0002xh-Tk; Thu, 11 Aug 2016 17:16:05 -0400 Original-Received: by mail-oi0-x22e.google.com with SMTP id l203so11197478oib.1; Thu, 11 Aug 2016 14:16:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Xumj0mjYUR58340cKv7EOx823K5qjVMifaICSdFlqvs=; b=hXhTdqAct8VdADTj1MVfYeW1s3a5kISlQvhfOCRxo+PXUWXQX5/8931MA+8AVrFTuo ryIE/6b8QZM8LYV94JPqe09jrkR+pizHyOvjE6XFRkT6kyoPPjuQFMeN5lrvEhMrMBli rPUzAMfiXf/fMOQNmQ2vdHR1dIOBLhIGM6rr8nk8AvOhDOUMaIPcucEQQtXk3b8BND7k Gt0j0a3sNh+bh6W9oyGZcjOcaWy+nxsZAR4rKeAuep80OmZg3v1nbMyU84R1OxfqDItS aNlvpSkeQ/YDqACPMsP6+NF3f5sp1KoqgA/ucQR0JhREXk3/3PFcB3yCuvQrzcddFfsX /pyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Xumj0mjYUR58340cKv7EOx823K5qjVMifaICSdFlqvs=; b=Zur1yVuDAizCABCT/omduNisiru4wxrrAueuP7SrevB0LfTA6FSOluJ9vnEhTPtosg 5+fW7CkDxluwyk+7E5JohUjt7ojnxKtNP8qPpgQWgzB4mt1gX5o84vxEi4KosjgN7G5o lzWzVdOsMDGcMCgq+2ziPbyPTWntc230xnbyDoYzECw4KeOurB/1vX8QL6soHASz9too pocrBO7d5SEmqjqMIKXM3ala59z6ulfow5sF5XkyEOXutpKqNLK0cslQgT0SYdQa/ZnC jxYAzUiqQivnI96/JOMccP+UXTCpnI3gEA0cOlQbgPvilJ1/aGrQtue9sj2YfI81rorB cJXA== X-Gm-Message-State: AEkoouuZkoaMdy8WSKJhqPO8vLR4HwosQ84SDSw1pqllzc6qMSaEeHoTIVgt06B6oRsUPXqObiJsM+V2UdSEJA== X-Received: by 10.157.2.10 with SMTP id 10mr3013926otb.11.1470950164154; Thu, 11 Aug 2016 14:16:04 -0700 (PDT) In-Reply-To: <83twerdp9z.fsf@gnu.org> 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:122111 Archived-At: --94eb2c114d2a0451d00539d246b5 Content-Type: text/plain; charset=UTF-8 On Thu, Aug 11, 2016 at 4:28 PM Eli Zaretskii wrote: > 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. > Makes sense. I was under the impression that having an all-inclusive MWE was more useful and so I went through the effort of creating one :) I was under the impression that you would run "r -Q" in gdb and simply paste my code in there to get going. But now I understand that you need your personal config too to help you debug in the most efficient way. As for the recipe for this one: 1. Install sml-mode from GNU Elpa. 2. Save a file called foo.sml with below content: ===== (* ''a is a special equality type (it is not the same as the generic 'a type. It *) ===== Note that while doing so, if the buffer is already in sml-mode, you might not even need to go to step 3. Because the same thing happened to me when I encountered this bug for the first time. I was actually typing out that comment, and my emacs started freezing as I was typing. 3. Open it. Thanks for working on this. -- Kaushal Modi --94eb2c114d2a0451d00539d246b5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Thu, Aug 11= , 2016 at 4:28 PM Eli Zaretskii <eliz@gn= u.org> wrote:
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.=C2=A0 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.=C2=A0 In addition, with 10-20 sec<= br> 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.=C2=A0 So if you can afford that, please try to follow<= br> these guidelines when you prepare a recipe.

I hope this clarifies the reason for my requests.

=
Makes sense. I was under the impression that having an all-inclu= sive MWE was more useful and so I went through the effort of creating one := ) I was under the impression that you would run "r -Q" in gdb and= simply paste my code in there to get going. But now I understand that you = need your personal config too to help you debug in the most efficient way.<= /div>

As for the recipe for this one:

1. Install sml-mode from GNU Elpa.
2. Save a file called f= oo.sml with below content:
=3D=3D=3D=3D=3D
=C2=A0(* ''a is a special equality type (it is not = the same as the generic 'a type. It *)=C2=A0
=3D=3D=3D= =3D=3D=C2=A0
Note that while doing so, if the buffer is alrea= dy in sml-mode, you might not even need to go to step 3. Because the same t= hing happened to me when I encountered this bug for the first time. I was a= ctually typing out that comment, and my emacs started freezing as I was typ= ing.
3. Open it.

Thanks for working on t= his.=C2=A0=C2=A0
--

Kaushal Mo= di

--94eb2c114d2a0451d00539d246b5--