From: Eli Zaretskii Date: Sat, 15 Jan 2005 14:00:03 +0000 (+0000) Subject: (c-mode/symbol): Add ^` to prefix, and change X-Git-Tag: ttn-vms-21-2-B4~2743 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3b90e93257232129b3d1243df018e3d731f2b883;p=emacs.git (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. --- 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." :regexp "\\(struct \\|union \\|enum \\)?[_a-zA-Z][_a-zA-Z0-9]*" :doc-spec '(("(libc)Function Index" nil "^[ \t]+-+ \\(Function\\|Macro\\): .*\\<" "\\>") + ;; prefix/suffix has to match things like + ;; " -- Macro: int F_DUPFD" + ;; " -- Variable: char * tzname [2]" + ;; "`DBL_MAX'" (texinfo @table) + ;; suffix "\\>" is not used because that sends DBL_MAX to + ;; DBL_MAX_EXP ("_" is a non-word char) ("(libc)Variable Index" nil - "^[ \t]+-+ \\(Variable\\|Macro\\): .*\\<" "\\>") + "^\\([ \t]+-+ \\(Variable\\|Macro\\): .*\\<\\|`\\)" + "\\( \\|'?$\\)") ("(libc)Type Index" nil "^[ \t]+-+ Data Type: \\<" "\\>") ("(termcap)Var Index" nil