all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>, 24205@debbugs.gnu.org
Cc: monnier@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	[thread overview]
Message-ID: <CAFyQvY0bBdd+qvkXKrxgQerOf6by71WUyjcvrkW6o5cQtnvBvg@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY2tSfRg3mYdfv76KwMe1R1m5g8JPa3cAabV1Eia=EQnnQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1313 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2120 bytes --]

  reply	other threads:[~2016-08-11 17:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-11 17:03 bug#24205: 25.1.50; Re-display issue (lag) when opening certain files [sml-mode] Kaushal Modi
2016-08-11 17:22 ` Eli Zaretskii
2016-08-11 17:30   ` Kaushal Modi
2016-08-11 17:45     ` Kaushal Modi [this message]
2016-08-11 18:19       ` Stefan Monnier
2016-08-11 19:42     ` Eli Zaretskii
2016-08-11 19:53       ` Kaushal Modi
2016-08-11 20:27         ` Eli Zaretskii
2016-08-11 20:58           ` Andreas Schwab
2016-08-11 21:15           ` Kaushal Modi
2016-08-11 22:21             ` Stefan Monnier
2016-08-14 13:26               ` Stefan Monnier
2016-08-14 23:14                 ` Kaushal Modi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFyQvY0bBdd+qvkXKrxgQerOf6by71WUyjcvrkW6o5cQtnvBvg@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=24205@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.