aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-10-26 16:39:23 +0000
committerRichard M. Stallman2005-10-26 16:39:23 +0000
commitd75baf12216600cbe35b927f0c1b3d60cd8862fe (patch)
treee7c90018481e7341adc258944d5253739ba99ff2
parent9700a45fa2670160991351d687ce5d2509b05393 (diff)
downloademacs-d75baf12216600cbe35b927f0c1b3d60cd8862fe.tar.gz
emacs-d75baf12216600cbe35b927f0c1b3d60cd8862fe.zip
(Info-fontify-node): Fix detection of sentence-break before *Note.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/info.el20
2 files changed, 15 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3f35fff8a33..1aec594adbe 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,11 @@
12005-10-26 Richard M. Stallman <rms@gnu.org>
2
3 * info.el (Info-fontify-node): Fix detection of sentence-break
4 before *Note.
5
12005-10-26 Romain Francoise <romain@orebokech.com> 62005-10-26 Romain Francoise <romain@orebokech.com>
2 7
3 * smerge-mode.el: Add 'tools' to file keywords. 8 * smerge-mode.el: Add `tools' to file keywords.
4 9
52005-10-26 Nick Roberts <nickrob@snap.net.nz> 102005-10-26 Nick Roberts <nickrob@snap.net.nz>
6 11
diff --git a/lisp/info.el b/lisp/info.el
index c94e4121dc8..ec74160188a 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -3736,20 +3736,18 @@ the variable `Info-file-list-for-emacs'."
3736 ;; *Note is often used where *note should have been 3736 ;; *Note is often used where *note should have been
3737 (goto-char start) 3737 (goto-char start)
3738 (skip-syntax-backward " ") 3738 (skip-syntax-backward " ")
3739 (when (memq (char-before) '(?\( ?\[ ?\{))
3740 ;; Check whether the paren is preceded by
3741 ;; an end of sentence
3742 (skip-syntax-backward " ("))
3739 (setq other-tag 3743 (setq other-tag
3740 (cond ((memq (char-before) '(nil ?\. ?! ??)) 3744 (cond ((memq (char-before) '(nil ?\. ?! ??))
3741 "See ") 3745 "See ")
3742 ((memq (char-before) '(?\, ?\; ?\: ?-)) 3746 ((save-match-data
3743 "see ") 3747 (save-excursion
3744 ((memq (char-before) '(?\( ?\[ ?\{)) 3748 (search-forward "\n\n" start t)))
3745 ;; Check whether the paren is preceded by 3749 "See ")
3746 ;; an end of sentence 3750 (t "see "))))
3747 (skip-syntax-backward " (")
3748 (if (memq (char-before) '(nil ?\. ?! ??))
3749 "See "
3750 "see "))
3751 ((save-match-data (looking-at "\n\n"))
3752 "See "))))
3753 (goto-char next) 3751 (goto-char next)
3754 (add-text-properties 3752 (add-text-properties
3755 (match-beginning 1) 3753 (match-beginning 1)