diff options
author | Richard M. Stallman <rms@gnu.org> | 2005-10-26 16:39:23 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2005-10-26 16:39:23 +0000 |
commit | d75baf12216600cbe35b927f0c1b3d60cd8862fe (patch) | |
tree | e7c90018481e7341adc258944d5253739ba99ff2 /lisp/info.el | |
parent | 9700a45fa2670160991351d687ce5d2509b05393 (diff) | |
download | emacs-d75baf12216600cbe35b927f0c1b3d60cd8862fe.tar.gz |
(Info-fontify-node): Fix detection of sentence-break before *Note.
Diffstat (limited to 'lisp/info.el')
-rw-r--r-- | lisp/info.el | 20 |
1 files changed, 9 insertions, 11 deletions
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'." ;; *Note is often used where *note should have been (goto-char start) (skip-syntax-backward " ") + (when (memq (char-before) '(?\( ?\[ ?\{)) + ;; Check whether the paren is preceded by + ;; an end of sentence + (skip-syntax-backward " (")) (setq other-tag (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 ")))) + ((save-match-data + (save-excursion + (search-forward "\n\n" start t))) + "See ") + (t "see ")))) (goto-char next) (add-text-properties (match-beginning 1) |