[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/info.el
From: |
Colin Walters |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/info.el |
Date: |
Sat, 08 Jun 2002 16:43:26 -0400 |
Index: emacs/lisp/info.el
diff -c emacs/lisp/info.el:1.302 emacs/lisp/info.el:1.303
*** emacs/lisp/info.el:1.302 Mon Jun 3 18:57:40 2002
--- emacs/lisp/info.el Sat Jun 8 16:43:25 2002
***************
*** 2343,2358 ****
(setq Info-tag-table-marker (make-marker))
(make-local-variable 'Info-tag-table-buffer)
(setq Info-tag-table-buffer nil)
- (set (make-local-variable 'font-lock-category-alist)
- '((info-menu-header . info-menu-header)
- (info-header-node . info-header-node)
- (info-header-xref . info-header-xref)
- (Info-title-1-face . Info-title-1-face)
- (Info-title-2-face . Info-title-2-face)
- (Info-title-3-face . Info-title-3-face)
- (Info-title-4-face . Info-title-4-face)
- (info-menu-5 . info-menu-5)
- (info-xref . info-xref)))
(make-local-variable 'Info-history)
(make-local-variable 'Info-index-alternatives)
(set (make-local-variable 'tool-bar-map) info-tool-bar-map)
--- 2343,2348 ----
***************
*** 2600,2609 ****
(goto-char (point-min))
(when (re-search-forward "\\* Menu:" nil t)
(put-text-property (match-beginning 0) (match-end 0)
! 'category 'info-menu-header)
(while (re-search-forward "\n\n\\([^*\n ].*\\)\n\n?[*]" nil t)
(put-text-property (match-beginning 1) (match-end 1)
! 'category 'info-menu-header)))))
(defun Info-fontify-node ()
;; Only fontify the node if it hasn't already been done. [We pass in
--- 2590,2599 ----
(goto-char (point-min))
(when (re-search-forward "\\* Menu:" nil t)
(put-text-property (match-beginning 0) (match-end 0)
! 'font-lock-face 'info-menu-header)
(while (re-search-forward "\n\n\\([^*\n ].*\\)\n\n?[*]" nil t)
(put-text-property (match-beginning 1) (match-end 1)
! 'font-lock-face 'info-menu-header)))))
(defun Info-fontify-node ()
;; Only fontify the node if it hasn't already been done. [We pass in
***************
*** 2631,2638 ****
(tbeg (match-beginning 1))
(tag (buffer-substring tbeg (match-end 1))))
(if (string-equal tag "Node")
! (put-text-property nbeg nend 'category 'info-header-node)
! (put-text-property nbeg nend 'category 'info-header-xref)
(put-text-property tbeg nend 'mouse-face 'highlight)
(put-text-property tbeg nend
'help-echo
--- 2621,2628 ----
(tbeg (match-beginning 1))
(tag (buffer-substring tbeg (match-end 1))))
(if (string-equal tag "Node")
! (put-text-property nbeg nend 'font-lock-face
'info-header-node)
! (put-text-property nbeg nend 'font-lock-face 'info-header-xref)
(put-text-property tbeg nend 'mouse-face 'highlight)
(put-text-property tbeg nend
'help-echo
***************
*** 2660,2672 ****
(while (re-search-forward "\n\\([^
\t\n].+\\)\n\\(\\*+\\|=+\\|-+\\|\\.+\\)$"
nil t)
(let* ((c (preceding-char))
! (category
(cond ((= c ?*) 'Info-title-1-face)
((= c ?=) 'Info-title-2-face)
((= c ?-) 'Info-title-3-face)
(t 'Info-title-4-face))))
(put-text-property (match-beginning 1) (match-end 1)
! 'category category))
;; This is a serious problem for trying to handle multiple
;; frame types at once. We want this text to be invisible
;; on frames that can display the font above.
--- 2650,2662 ----
(while (re-search-forward "\n\\([^
\t\n].+\\)\n\\(\\*+\\|=+\\|-+\\|\\.+\\)$"
nil t)
(let* ((c (preceding-char))
! (face
(cond ((= c ?*) 'Info-title-1-face)
((= c ?=) 'Info-title-2-face)
((= c ?-) 'Info-title-3-face)
(t 'Info-title-4-face))))
(put-text-property (match-beginning 1) (match-end 1)
! 'font-lock-face face))
;; This is a serious problem for trying to handle multiple
;; frame types at once. We want this text to be invisible
;; on frames that can display the font above.
***************
*** 2678,2684 ****
(if (= (char-after (1- (match-beginning 0))) ?\") ; hack
nil
(add-text-properties (match-beginning 1) (match-end 1)
! '(category info-xref
mouse-face highlight
help-echo "mouse-2: go to this node"))))
(goto-char (point-min))
--- 2668,2674 ----
(if (= (char-after (1- (match-beginning 0))) ?\") ; hack
nil
(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"))))
(goto-char (point-min))
***************
*** 2692,2700 ****
(if (zerop (% n 3)) ; visual aids to help with 1-9 keys
(put-text-property (match-beginning 0)
(1+ (match-beginning 0))
! 'category 'info-menu-5))
(add-text-properties (match-beginning 1) (match-end 1)
! '(category info-xref
mouse-face highlight
help-echo "mouse-2: go to this node")))))
(Info-fontify-menu-headers)
--- 2682,2690 ----
(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")))))
(Info-fontify-menu-headers)
- [Emacs-diffs] Changes to emacs/lisp/info.el, Richard M. Stallman, 2002/06/03
- [Emacs-diffs] Changes to emacs/lisp/info.el,
Colin Walters <=
- [Emacs-diffs] Changes to emacs/lisp/info.el, Colin Walters, 2002/06/08
- [Emacs-diffs] Changes to emacs/lisp/info.el, Colin Walters, 2002/06/12
- [Emacs-diffs] Changes to emacs/lisp/info.el, Colin Walters, 2002/06/12
- [Emacs-diffs] Changes to emacs/lisp/info.el, Richard M. Stallman, 2002/06/12
- [Emacs-diffs] Changes to emacs/lisp/info.el, Richard M. Stallman, 2002/06/12
- [Emacs-diffs] Changes to emacs/lisp/info.el, Juanma Barranquero, 2002/06/26