summaryrefslogtreecommitdiff
path: root/lisp/info.el
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2003-06-19 20:56:49 +0000
committerAndreas Schwab <schwab@suse.de>2003-06-19 20:56:49 +0000
commitfb020fe894db0dfa6d6d2b180a1cf8b489bfccba (patch)
treeecb8947d96c86cbe6ac64cbc3bdad8b19fef7167 /lisp/info.el
parenta67ae60e4aec6f04fc64fd0f54403250c315a985 (diff)
downloademacs-fb020fe894db0dfa6d6d2b180a1cf8b489bfccba.tar.gz
(Info-fontify-node): Improve calculation of other-tag.
Diffstat (limited to 'lisp/info.el')
-rw-r--r--lisp/info.el20
1 files changed, 13 insertions, 7 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 54e6f6d1f02..ce013c7c844 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -2872,13 +2872,19 @@ the variable `Info-file-list-for-emacs'."
(goto-char start)
(skip-syntax-backward " ")
(setq other-tag
- (cond
- ((<= (point) (point-min))
- "See ")
- ((memq (char-before) '(nil ?\. ?! ))
- "See ")
- ((memq (char-before) '( ?\( ?\[ ?\{ ?\, ?\; ?\: ))
- "see ")))
+ (cond ((memq (char-before) '(nil ?\. ?! ??))
+ "See ")
+ ((memq (char-before) '(?\, ?\; ?\: ?-))
+ "see ")
+ ((memq (char-before) '(?\( ?\[ ?\{))
+ ;; Check whether the paren is preceded by
+ ;; an end of sentence
+ (skip-syntax-backward " (")
+ (if (memq (char-before) '(nil ?\. ?! ??))
+ "See "
+ "see "))
+ ((save-match-data (looking-at "\n\n"))
+ "See ")))
(goto-char next))
(if hide-tag
(add-text-properties (match-beginning 1) (match-end 1)