GNU bug report logs - #24205
25.1.50; Re-display issue (lag) when opening certain files [sml-mode]

Previous Next

Package: emacs;

Reported by: Kaushal Modi <kaushal.modi <at> gmail.com>

Date: Thu, 11 Aug 2016 17:05:01 UTC

Severity: normal

Found in version 25.1.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Kaushal Modi <kaushal.modi <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>, 24205 <at> debbugs.gnu.org
Cc: monnier <at> iro.umontreal.ca
Subject: bug#24205: 25.1.50; Re-display issue (lag) when opening certain files [sml-mode]
Date: Thu, 11 Aug 2016 17:45:21 +0000
[Message part 1 (text/plain, inline)]
It turns out that just one line in that example is responsible for causing
that lag:

(* ''a is a special equality type (it is not the same as the generic 'a
type. It *)

I have updated the MWE. After evaluating the macro definition I posted
earlier and the new example below, hit "C-c r".

Installing a package from Elpa is also good for sanity. That way I do not
worry about local changes made in your or my Elpa git clones. Installing
from Elpa ensures that you and I are using the exact same version of the
package (assuming that the package did not update in the meanwhile :)).

=====
(emacs-pkg-debug-setup '(;; Install sml-mode from GNU Elpa
                         (nil . (sml-mode)))
  (let ((test-file (expand-file-name "lag_test.sml"
                                     user-emacs-directory))) ; the macro
sets user-emacs-directory to (concat temporary-file-directory (getenv
"USER") "/" ".emacs.d-debug/")
    (defun my-report ()
      (interactive)
      (profiler-report)
      (profiler-stop)
      (profiler-reset))
    (global-set-key (kbd "C-c r") #'my-report)

    (with-temp-buffer
      (insert "(* ''a is a special equality type (it is not the same as the
generic 'a type. It *)")
      (write-file test-file))
    (profiler-start 'cpu)
    (find-file test-file)))
=====
-- 

Kaushal Modi
[Message part 2 (text/html, inline)]

This bug report was last modified 8 years and 343 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.