diff options
| author | Andreas Schwab | 2003-06-19 20:56:49 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2003-06-19 20:56:49 +0000 |
| commit | fb020fe894db0dfa6d6d2b180a1cf8b489bfccba (patch) | |
| tree | ecb8947d96c86cbe6ac64cbc3bdad8b19fef7167 | |
| parent | a67ae60e4aec6f04fc64fd0f54403250c315a985 (diff) | |
| download | emacs-fb020fe894db0dfa6d6d2b180a1cf8b489bfccba.tar.gz emacs-fb020fe894db0dfa6d6d2b180a1cf8b489bfccba.zip | |
(Info-fontify-node): Improve calculation of other-tag.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/info.el | 20 |
2 files changed, 17 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1464a5ff799..8434d40bbe1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2003-06-19 Andreas Schwab <schwab@suse.de> | ||
| 2 | |||
| 3 | * info.el (Info-fontify-node): Improve calculation of other-tag. | ||
| 4 | |||
| 1 | 2003-06-19 Stefan Monnier <monnier@cs.yale.edu> | 5 | 2003-06-19 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 6 | ||
| 3 | * progmodes/cc-mode.el (c-mode): Reverting last change. | 7 | * progmodes/cc-mode.el (c-mode): Reverting last change. |
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'." | |||
| 2872 | (goto-char start) | 2872 | (goto-char start) |
| 2873 | (skip-syntax-backward " ") | 2873 | (skip-syntax-backward " ") |
| 2874 | (setq other-tag | 2874 | (setq other-tag |
| 2875 | (cond | 2875 | (cond ((memq (char-before) '(nil ?\. ?! ??)) |
| 2876 | ((<= (point) (point-min)) | 2876 | "See ") |
| 2877 | "See ") | 2877 | ((memq (char-before) '(?\, ?\; ?\: ?-)) |
| 2878 | ((memq (char-before) '(nil ?\. ?! )) | 2878 | "see ") |
| 2879 | "See ") | 2879 | ((memq (char-before) '(?\( ?\[ ?\{)) |
| 2880 | ((memq (char-before) '( ?\( ?\[ ?\{ ?\, ?\; ?\: )) | 2880 | ;; Check whether the paren is preceded by |
| 2881 | "see "))) | 2881 | ;; an end of sentence |
| 2882 | (skip-syntax-backward " (") | ||
| 2883 | (if (memq (char-before) '(nil ?\. ?! ??)) | ||
| 2884 | "See " | ||
| 2885 | "see ")) | ||
| 2886 | ((save-match-data (looking-at "\n\n")) | ||
| 2887 | "See "))) | ||
| 2882 | (goto-char next)) | 2888 | (goto-char next)) |
| 2883 | (if hide-tag | 2889 | (if hide-tag |
| 2884 | (add-text-properties (match-beginning 1) (match-end 1) | 2890 | (add-text-properties (match-beginning 1) (match-end 1) |