aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/info.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 3bfc692e18c..a86d718bd22 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -50,6 +50,8 @@ in paths.el.")
50(defvar Info-fontify t 50(defvar Info-fontify t
51 "*Non-nil enables highlighting and fonts in Info nodes.") 51 "*Non-nil enables highlighting and fonts in Info nodes.")
52 52
53(defvar Info-fontify-maximum-menu-size 30000
54 "*Maximum size of menu to fontify if `Info-fontify' is non-nil.")
53(defvar Info-directory-list 55(defvar Info-directory-list
54 (let ((path (getenv "INFOPATH")) 56 (let ((path (getenv "INFOPATH"))
55 (sep (if (eq system-type 'ms-dos) ";" ":")) 57 (sep (if (eq system-type 'ms-dos) ";" ":"))
@@ -1611,7 +1613,7 @@ The command is found by looking up in Emacs manual's Command Index."
1611 (if (and (search-forward "\n* Menu:" nil t) 1613 (if (and (search-forward "\n* Menu:" nil t)
1612 (not (string-match "\\<Index\\>" Info-current-node)) 1614 (not (string-match "\\<Index\\>" Info-current-node))
1613 ;; Don't take time to annotate huge menus 1615 ;; Don't take time to annotate huge menus
1614 (< (- (point-max) (point)) 30000)) 1616 (< (- (point-max) (point)) Info-fontify-maximum-menu-size))
1615 (let ((n 0)) 1617 (let ((n 0))
1616 (while (re-search-forward "^\\* \\([^:\t\n]*\\):" nil t) 1618 (while (re-search-forward "^\\* \\([^:\t\n]*\\):" nil t)
1617 (setq n (1+ n)) 1619 (setq n (1+ n))