aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2005-01-15 14:00:03 +0000
committerEli Zaretskii2005-01-15 14:00:03 +0000
commit3b90e93257232129b3d1243df018e3d731f2b883 (patch)
tree3281e11e89dd49351e544907d574004e91f6e7ee
parent8905403474b5dab954f58f2be0ca3e3095bbec75 (diff)
downloademacs-3b90e93257232129b3d1243df018e3d731f2b883.tar.gz
emacs-3b90e93257232129b3d1243df018e3d731f2b883.zip
(c-mode/symbol): Add ^` to prefix, and change
suffix to space, $ or '$, to correctly position point when going to @table style constants like DBL_MAX.
-rw-r--r--lisp/info-look.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/info-look.el b/lisp/info-look.el
index bc886f0320c..40bfaef4732 100644
--- a/lisp/info-look.el
+++ b/lisp/info-look.el
@@ -634,8 +634,15 @@ Return nil if there is nothing appropriate in the buffer near point."
634 :regexp "\\(struct \\|union \\|enum \\)?[_a-zA-Z][_a-zA-Z0-9]*" 634 :regexp "\\(struct \\|union \\|enum \\)?[_a-zA-Z][_a-zA-Z0-9]*"
635 :doc-spec '(("(libc)Function Index" nil 635 :doc-spec '(("(libc)Function Index" nil
636 "^[ \t]+-+ \\(Function\\|Macro\\): .*\\<" "\\>") 636 "^[ \t]+-+ \\(Function\\|Macro\\): .*\\<" "\\>")
637 ;; prefix/suffix has to match things like
638 ;; " -- Macro: int F_DUPFD"
639 ;; " -- Variable: char * tzname [2]"
640 ;; "`DBL_MAX'" (texinfo @table)
641 ;; suffix "\\>" is not used because that sends DBL_MAX to
642 ;; DBL_MAX_EXP ("_" is a non-word char)
637 ("(libc)Variable Index" nil 643 ("(libc)Variable Index" nil
638 "^[ \t]+-+ \\(Variable\\|Macro\\): .*\\<" "\\>") 644 "^\\([ \t]+-+ \\(Variable\\|Macro\\): .*\\<\\|`\\)"
645 "\\( \\|'?$\\)")
639 ("(libc)Type Index" nil 646 ("(libc)Type Index" nil
640 "^[ \t]+-+ Data Type: \\<" "\\>") 647 "^[ \t]+-+ Data Type: \\<" "\\>")
641 ("(termcap)Var Index" nil 648 ("(termcap)Var Index" nil