mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-09 09:16:02 -08:00
(Info-fontify-node): Improve calculation of other-tag.
This commit is contained in:
parent
a67ae60e4a
commit
fb020fe894
2 changed files with 17 additions and 7 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2003-06-19 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* info.el (Info-fontify-node): Improve calculation of other-tag.
|
||||
|
||||
2003-06-19 Stefan Monnier <monnier@cs.yale.edu>
|
||||
|
||||
* progmodes/cc-mode.el (c-mode): Reverting last change.
|
||||
|
|
|
|||
20
lisp/info.el
20
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue