aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2003-05-25 21:08:21 +0000
committerJuanma Barranquero2003-05-25 21:08:21 +0000
commit01e1a81920aa4e805b1c2ab0e13472094e991979 (patch)
tree1e65df05f1068874f60d9c7b3e8b5efab76e1047
parent56613f06dc32f78043cae1d4dbb5a59cc2b98b62 (diff)
downloademacs-01e1a81920aa4e805b1c2ab0e13472094e991979.tar.gz
emacs-01e1a81920aa4e805b1c2ab0e13472094e991979.zip
(autoconf-mode setups): Recognise AH_ and AU_ entries in "(autoconf)Autoconf
Macro Index". Add "(autoconf)M4 Macro Index" and "(autoconf)Autotest Macro Index". Remove duplicate copy of "(automake)Macro and Variable Index". Keep automake after all autoconf possibilities, so as to prefer those.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/info-look.el32
2 files changed, 36 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c5a6800cce9..4b552b253c6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12003-05-25 Kevin Ryde <user42@zip.com.au>
2
3 * info-look.el (autoconf-mode setups): Recognise AH_ and AU_ entries
4 in "(autoconf)Autoconf Macro Index". Add "(autoconf)M4 Macro Index"
5 and "(autoconf)Autotest Macro Index". Remove duplicate copy of
6 "(automake)Macro and Variable Index". Keep automake after all
7 autoconf possibilities, so as to prefer those.
8
12003-05-25 Nick Roberts <nick@nick.uklinux.net> 92003-05-25 Nick Roberts <nick@nick.uklinux.net>
2 10
3 * gdb-ui.el (gdb-info-breakpoints-custom, gdb-assembler-custom): 11 * gdb-ui.el (gdb-info-breakpoints-custom, gdb-assembler-custom):
diff --git a/lisp/info-look.el b/lisp/info-look.el
index e81d33e65f2..afdf123ecb0 100644
--- a/lisp/info-look.el
+++ b/lisp/info-look.el
@@ -682,13 +682,37 @@ Return nil if there is nothing appropriate in the buffer near point."
682(info-lookup-maybe-add-help 682(info-lookup-maybe-add-help
683 :mode 'autoconf-mode 683 :mode 'autoconf-mode
684 :regexp "A[CM]_[_A-Z0-9]+" 684 :regexp "A[CM]_[_A-Z0-9]+"
685 :doc-spec '(("(autoconf)Autoconf Macro Index" "AC_" 685 :doc-spec '(;; Autoconf Macro Index entries are without an "AC_" prefix,
686 ;; but with "AH_" or "AU_" for those. So add "AC_" if there
687 ;; isn't already an "A._".
688 ("(autoconf)Autoconf Macro Index"
689 (lambda (item)
690 (if (string-match "^A._" item) item (concat "AC_" item)))
686 "^[ \t]+- \\(Macro\\|Variable\\): .*\\<" "\\>") 691 "^[ \t]+- \\(Macro\\|Variable\\): .*\\<" "\\>")
687 ("(automake)Macro and Variable Index" nil 692 ;; M4 Macro Index entries are without "AS_" prefixes, and
688 "^[ \t]*`" "'") 693 ;; mostly without "m4_" prefixes. "dnl" is an exception, not
689 ;; These are for older versions (probably pre autoconf 2.5x): 694 ;; wanting any prefix. So AS_ is added back to upper-case
695 ;; names, m4_ to others which don't already an m4_.
696 ("(autoconf)M4 Macro Index"
697 (lambda (item)
698 (let ((case-fold-search nil))
699 (cond ((or (string-equal item "dnl")
700 (string-match "^m4_" item))
701 item)
702 ((string-match "^[A-Z0-9_]+$" item)
703 (concat "AS_" item))
704 (t
705 (concat "m4_" item)))))
706 "^[ \t]+- Macro: .*\\<" "\\>")
707 ;; Autotest Macro Index entries are without "AT_".
708 ("(autoconf)Autotest Macro Index" "AT_"
709 "^[ \t]+- Macro: .*\\<" "\\>")
710 ;; This is for older versions (probably pre autoconf 2.5x):
690 ("(autoconf)Macro Index" "AC_" 711 ("(autoconf)Macro Index" "AC_"
691 "^[ \t]+- \\(Macro\\|Variable\\): .*\\<" "\\>") 712 "^[ \t]+- \\(Macro\\|Variable\\): .*\\<" "\\>")
713 ;; Automake has index entries for its notes on various autoconf
714 ;; macros (eg. AC_PROG_CC). Ensure this is after the autoconf
715 ;; index, so as to prefer the autoconf docs.
692 ("(automake)Macro and Variable Index" nil 716 ("(automake)Macro and Variable Index" nil
693 "^[ \t]*`" "'")) 717 "^[ \t]*`" "'"))
694 ;; Autoconf symbols are M4 macros. Thus use M4's parser. 718 ;; Autoconf symbols are M4 macros. Thus use M4's parser.