# HG changeset patch # User Eli Zaretskii # Date 1105797603 0 # Node ID 5d4f8c85454f2d0541a9023811b1d8d4d93d743e # Parent 0d43dbf12c9815e8da0685d9e290109a19aaf865 (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 -r 0d43dbf12c98 -r 5d4f8c85454f lisp/info-look.el --- a/lisp/info-look.el Sat Jan 15 13:52:26 2005 +0000 +++ b/lisp/info-look.el Sat Jan 15 14:00:03 2005 +0000 @@ -634,8 +634,15 @@ :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