]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-mode/symbol): Add ^` to prefix, and change
authorEli Zaretskii <eliz@gnu.org>
Sat, 15 Jan 2005 14:00:03 +0000 (14:00 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 15 Jan 2005 14:00:03 +0000 (14:00 +0000)
suffix to space, $ or '$, to correctly position point when going
to @table style constants like DBL_MAX.

lisp/info-look.el

index bc886f0320cac7780f3fa91c28e13b04c7471a62..40bfaef4732ab963f62ea7821d4f94948267afae 100644 (file)
@@ -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