From 3b90e93257232129b3d1243df018e3d731f2b883 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 15 Jan 2005 14:00:03 +0000 Subject: [PATCH] (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. --- lisp/info-look.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.39.2