[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/info.el
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/info.el |
Date: |
Tue, 03 Jun 2003 16:28:21 -0400 |
Index: emacs/lisp/info.el
diff -c emacs/lisp/info.el:1.347 emacs/lisp/info.el:1.348
*** emacs/lisp/info.el:1.347 Tue Jun 3 15:54:42 2003
--- emacs/lisp/info.el Tue Jun 3 16:28:21 2003
***************
*** 2903,2935 ****
(set-marker m nil))))
(goto-char (point-min))
! (if (and (search-forward "\n* Menu:" nil t)
! (not (string-match "\\<Index\\>" Info-current-node))
! ;; Don't take time to annotate huge menus
! (< (- (point-max) (point)) Info-fontify-maximum-menu-size))
! (let ((n 0)
! cont)
! (while (re-search-forward "^\\*
+\\([^:\t\n]*\\)\\(:[^.,:(]*\\(([^)]*)[^.,:]*\\)?[,:.][ \t]*\\)" nil t)
! (setq n (1+ n))
! (if (zerop (% n 3)) ; visual aids to help with 1-9 keys
! (put-text-property (match-beginning 0)
! (1+ (match-beginning 0))
! 'font-lock-face 'info-menu-5))
! (add-text-properties (match-beginning 1) (match-end 1)
! '(font-lock-face info-xref
! mouse-face highlight
! help-echo "mouse-2: go to this node"))
! (when (eq Info-hide-note-references t)
! (add-text-properties (match-beginning 2) (match-end 2)
! (list 'display
! (make-string (max 2 (- 22 (-
(match-end 1) (match-beginning 1)))) ? )))
! (setq cont (looking-at "[ \t]*[^\n]")))
! (if (eq Info-hide-note-references t)
! (while (and (= (forward-line 1) 0)
! (looking-at "\\([ \t]+\\)[^*\n]"))
! (add-text-properties (match-beginning 1) (match-end 1)
! (list 'display (make-string (+ 22
(if cont 4 2)) ? )))
! (setq cont t))))))
(Info-fontify-menu-headers)
(set-buffer-modified-p nil)))))
--- 2903,2942 ----
(set-marker m nil))))
(goto-char (point-min))
! (when (and (search-forward "\n* Menu:" nil t)
! (not (string-match "\\<Index\\>" Info-current-node))
! ;; Don't take time to annotate huge menus
! (< (- (point-max) (point)) Info-fontify-maximum-menu-size))
! (let ((n 0)
! cont)
! (while (re-search-forward "^\\*
+\\([^:\t\n]*\\)\\(:[^.,:(]*\\(([^)]*)[^.,:]*\\)?[,:.]\\([ \t]*\\)\\)" nil t)
! (setq n (1+ n))
! (if (zerop (% n 3)) ; visual aids to help with 1-9 keys
! (put-text-property (match-beginning 0)
! (1+ (match-beginning 0))
! 'font-lock-face 'info-menu-5))
! (add-text-properties (match-beginning 1) (match-end 1)
! '(font-lock-face info-xref
! mouse-face highlight
! help-echo "mouse-2: go to this node"))
! (when (eq Info-hide-note-references t)
! (put-text-property (match-beginning 2) (match-beginning 4)
! 'invisible t)
! ;; We need a stretchable space like :align-to but with
! ;; a minimum value.
! (put-text-property (match-beginning 4) (match-end 4) 'display
! (if (>= 22 (- (match-end 1)
! (match-beginning 0)))
! '(space :align-to 24)
! '(space :width 2)))
! (setq cont (looking-at "."))
! (while (and (= (forward-line 1) 0)
! (looking-at "\\([ \t]+\\)[^*\n]"))
! (put-text-property (match-beginning 1) (match-end 1) 'display
! (if cont
! '(space :align-to 26)
! '(space :align-to 24)))
! (setq cont t))))))
(Info-fontify-menu-headers)
(set-buffer-modified-p nil)))))
- [Emacs-diffs] Changes to emacs/lisp/info.el, Stefan Monnier, 2003/06/03
- [Emacs-diffs] Changes to emacs/lisp/info.el,
Stefan Monnier <=
- [Emacs-diffs] Changes to emacs/lisp/info.el, Stefan Monnier, 2003/06/03
- [Emacs-diffs] Changes to emacs/lisp/info.el, Stefan Monnier, 2003/06/03
- [Emacs-diffs] Changes to emacs/lisp/info.el, Kim F. Storm, 2003/06/04
- [Emacs-diffs] Changes to emacs/lisp/info.el, Luc Teirlinck, 2003/06/05
- [Emacs-diffs] Changes to emacs/lisp/info.el, Kim F. Storm, 2003/06/05
- [Emacs-diffs] Changes to emacs/lisp/info.el, Andreas Schwab, 2003/06/06
- [Emacs-diffs] Changes to emacs/lisp/info.el, Lute Kamstra, 2003/06/06
- [Emacs-diffs] Changes to emacs/lisp/info.el, Kim F. Storm, 2003/06/09
- [Emacs-diffs] Changes to emacs/lisp/info.el, Luc Teirlinck, 2003/06/17
- [Emacs-diffs] Changes to emacs/lisp/info.el, Andreas Schwab, 2003/06/19