]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle AS_* in Autoconf 2.62's index for `info-lookup-symbol'.
authorThien-Thi Nguyen <ttn@gnuvola.org>
Wed, 30 Jul 2008 20:29:54 +0000 (20:29 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Wed, 30 Jul 2008 20:29:54 +0000 (20:29 +0000)
* lisp/info-look.el (autoconf-mode :doc-spec): For
"(autoconf)M4 Macro Index", if the item already
begins with "AS_", don't prefix that string again.

lisp/ChangeLog
lisp/info-look.el

index 3ff09a26e67240dca75bd645287563fdbb437fab..8a90db4c6d9ef4c1888160d375243ac69fe75070 100644 (file)
@@ -1,3 +1,9 @@
+2008-07-30  Thien-Thi Nguyen  <ttn@gnuvola.org>
+
+       * info-look.el (autoconf-mode :doc-spec): For
+       "(autoconf)M4 Macro Index", if the item already
+       begins with "AS_", don't prefix that string again.
+
 2008-07-30  Juri Linkov  <juri@jurta.org>
 
        * info.el (info, Info-mode): Doc fix.
index e7ac5bd0d54e5ce97597e704828069f1092e4cc5..fc8ff1e578b002ef87e527697ca0a644d6e99c4e 100644 (file)
@@ -755,12 +755,15 @@ Return nil if there is nothing appropriate in the buffer near point."
              ;; M4 Macro Index entries are without "AS_" prefixes, and
              ;; mostly without "m4_" prefixes.  "dnl" is an exception, not
              ;; wanting any prefix.  So AS_ is added back to upper-case
-             ;; names, m4_ to others which don't already an m4_.
+             ;; names (if needed), m4_ to others which don't already an m4_.
              ("(autoconf)M4 Macro Index"
               (lambda (item)
                 (let ((case-fold-search nil))
                   (cond ((or (string-equal item "dnl")
-                             (string-match "^m4_" item))
+                             (string-match "^m4_" item)
+                             ;; Autoconf 2.62 index includes some macros
+                             ;; (e.g., AS_HELP_STRING), so avoid prefixing.
+                             (string-match "^AS_" item))
                          item)
                         ((string-match "^[A-Z0-9_]+$" item)
                          (concat "AS_" item))