aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-11 00:55:56 +0000
committerRichard M. Stallman1994-07-11 00:55:56 +0000
commit34a0a4ee43e65bbf66d2213ee42208bce7ec8a8e (patch)
treecc2fe7256e086dcd3e573b566ebf55549cc9250d
parentf1d238efb3be08f7a9fa6168e28631584ef8897f (diff)
downloademacs-34a0a4ee43e65bbf66d2213ee42208bce7ec8a8e.tar.gz
emacs-34a0a4ee43e65bbf66d2213ee42208bce7ec8a8e.zip
(Info-fontify-maximum-menu-size): New variable.
(Info-fontify-node): Use that variable.
-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))