aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2003-06-03 20:56:59 +0000
committerStefan Monnier2003-06-03 20:56:59 +0000
commit472d38201d69d82ad5ccce99c7d4a074701e7b1b (patch)
treef3deb826e1098573cda14a20c02ba7e08ae9b13d
parent0c3aa29ef824c7ffabc7e3e1cbd04e29644753f2 (diff)
downloademacs-472d38201d69d82ad5ccce99c7d4a074701e7b1b.tar.gz
emacs-472d38201d69d82ad5ccce99c7d4a074701e7b1b.zip
(info-fontify-node): Use better help-echo text.
-rw-r--r--lisp/info.el35
1 files changed, 21 insertions, 14 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 6deb7ca70c0..caf4559b6a7 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -2866,20 +2866,22 @@ the variable `Info-file-list-for-emacs'."
2866 (skip-syntax-backward " ") 2866 (skip-syntax-backward " ")
2867 (setq other-tag 2867 (setq other-tag
2868 (cond 2868 (cond
2869 ((or (<= (point) (point-min)) 2869 ((memq (char-before) '(nil ?\. ?! ))
2870 (memq (char-after (1- (point))) '( ?\. ?! ))) 2870 "See "
2871 "See ") 2871 ((memq (char-before) '( ?\( ?\[ ?\{ ?\, ?\; ?\: ))
2872 ((memq (char-after (1- (point))) '( ?\( ?\[ ?\{ ?\, ?\; ?\: )) 2872 "see ")))
2873 "see ")
2874 (t nil)))
2875 (goto-char next)) 2873 (goto-char next))
2876 (if hide-tag 2874 (if hide-tag
2877 (add-text-properties (match-beginning 1) (match-end 1) 2875 (add-text-properties (match-beginning 1) (match-end 1)
2878 '(invisible t))) 2876 '(invisible t)))
2879 (add-text-properties (match-beginning 2) (match-end 2) 2877 (add-text-properties
2880 '(font-lock-face info-xref 2878 (match-beginning 2) (match-end 2)
2881 mouse-face highlight 2879 (cons 'help-echo
2882 help-echo "mouse-2: go to this node")) 2880 (cons (if (match-end 4)
2881 (concat "mouse-2: go to " (match-string 4))
2882 "mouse-2: go to this node")
2883 '(font-lock-face info-xref
2884 mouse-face highlight))))
2883 (when (eq Info-hide-note-references t) 2885 (when (eq Info-hide-note-references t)
2884 (add-text-properties (match-beginning 3) (match-end 3) 2886 (add-text-properties (match-beginning 3) (match-end 3)
2885 '(invisible t))) 2887 '(invisible t)))
@@ -2915,10 +2917,15 @@ the variable `Info-file-list-for-emacs'."
2915 (put-text-property (match-beginning 0) 2917 (put-text-property (match-beginning 0)
2916 (1+ (match-beginning 0)) 2918 (1+ (match-beginning 0))
2917 'font-lock-face 'info-menu-5)) 2919 'font-lock-face 'info-menu-5))
2918 (add-text-properties (match-beginning 1) (match-end 1) 2920 (add-text-properties
2919 '(font-lock-face info-xref 2921 (match-beginning 1) (match-end 1)
2920 mouse-face highlight 2922 (cons 'help-echo
2921 help-echo "mouse-2: go to this node")) 2923 (cons
2924 (if (match-end 3)
2925 (concat "mouse-2: go to " (match-string 3))
2926 "mouse-2: go to this node")
2927 '(font-lock-face info-xref
2928 mouse-face highlight))))
2922 (when (eq Info-hide-note-references t) 2929 (when (eq Info-hide-note-references t)
2923 (put-text-property (match-beginning 2) (match-beginning 4) 2930 (put-text-property (match-beginning 2) (match-beginning 4)
2924 'invisible t) 2931 'invisible t)