[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: info-lookup slow
From: |
Eli Zaretskii |
Subject: |
Re: info-lookup slow |
Date: |
Sat, 17 Feb 2007 14:02:11 +0200 |
> 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)