emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: info-lookup slow


From: Andreas Roehler
Subject: Re: info-lookup slow
Date: Sun, 18 Feb 2007 22:05:31 +0100
User-agent: Thunderbird 1.5.0.4 (X11/20060516)

Eli Zaretskii schrieb:
Date: Sun, 11 Feb 2007 16:40:21 +0100
From: Andreas Roehler <address@hidden>
CC: address@hidden, Stefan Monnier <address@hidden>, Richard Stallman <address@hidden>

Ok now with CVS-Emacs, back to ten seconds,
thanks.

However, looking up symbol `defun' for example after
prompt took still 38 seconds. As this command isn't
called often, I can live with - just to mention it.

Thanks for following up.

I think the change below should fix this remaining problem as well:

2007-02-17  Eli Zaretskii  <address@hidden>

        * info-look.el (info-lookup): Bind Info-fontify-maximum-menu-size
        to nil to speed up lookup of the symbol in index nodes.

Index: lisp/info-look.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/info-look.el,v
retrieving revision 1.55
diff -u -r1.55 info-look.el
--- lisp/info-look.el   10 Feb 2007 11:12:42 -0000      1.55
+++ lisp/info-look.el   17 Feb 2007 11:59:07 -0000
@@ -353,8 +353,11 @@
              suffix (nth 3 (car doc-spec)))
        (when (condition-case error-data
                  (progn
-                   (Info-goto-node node)
-                   (setq doc-found t))
+                   ;; Don't need Index menu fontifications here, and
+                   ;; they slow down the lookup.
+                   (let (Info-fontify-maximum-menu-size)
+                     (Info-goto-node node)
+                     (setq doc-found t)))
                (error
                 (message "Cannot access Info node %s" node)
                 (sit-for 1)

It's fine now. Just a few seconds. Thanks.

__
Andreas Roehler

GNU Emacs 22.0.93.4 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2007-02-18 on kiste





reply via email to

[Prev in Thread] Current Thread [Next in Thread]