aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Ryde2011-05-16 14:41:03 -0300
committerStefan Monnier2011-05-16 14:41:03 -0300
commit3bfacb2fee4c762b7b8e22ae3728607708c9d206 (patch)
tree49411da3991672a8cb9fc7c382c3c7047f1f59f3
parent7887e229fd0da2b55cc927bf1ad80dacae8e81b1 (diff)
downloademacs-3bfacb2fee4c762b7b8e22ae3728607708c9d206.tar.gz
emacs-3bfacb2fee4c762b7b8e22ae3728607708c9d206.zip
* lisp/info-look.el (makefile-automake-mode): New setups, looking in
automake manual, then makefile-mode. (makefile-mode): Remove automake manual, have it just in makefile-automake-mode since there's various things different or not relevant to plain make. (makefile-mode): Remove "other-modes" non-existent automake-mode, believe a hypothetical automake-mode would go to makefile-mode, not the other way around.
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/info-look.el28
2 files changed, 35 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2e0e7f99e56..05a2ceefdf4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,14 @@
12011-05-16 Kevin Ryde <user42@zip.com.au>
2
3 * info-look.el (makefile-automake-mode): New setups, looking in
4 automake manual, then makefile-mode.
5 (makefile-mode): Remove automake manual, have it just in
6 makefile-automake-mode since there's various things different or
7 not relevant to plain make.
8 (makefile-mode): Remove "other-modes" non-existent automake-mode,
9 believe a hypothetical automake-mode would go to makefile-mode,
10 not the other way around.
11
12011-05-15 Chong Yidong <cyd@stupidchicken.com> 122011-05-15 Chong Yidong <cyd@stupidchicken.com>
2 13
3 * vc/diff-mode.el (diff-fixup-modifs): Locate correct position for 14 * vc/diff-mode.el (diff-fixup-modifs): Locate correct position for
diff --git a/lisp/info-look.el b/lisp/info-look.el
index 6baed1c422d..5e51fcc9b9d 100644
--- a/lisp/info-look.el
+++ b/lisp/info-look.el
@@ -720,11 +720,31 @@ Return nil if there is nothing appropriate in the buffer near point."
720 :mode 'makefile-mode 720 :mode 'makefile-mode
721 :regexp "\\$[^({]\\|\\.[_A-Z]*\\|[_a-zA-Z][_a-zA-Z0-9-]*" 721 :regexp "\\$[^({]\\|\\.[_A-Z]*\\|[_a-zA-Z][_a-zA-Z0-9-]*"
722 :doc-spec '(("(make)Name Index" nil 722 :doc-spec '(("(make)Name Index" nil
723 "^[ \t]*`" "'")
724 ("(automake)Macro and Variable Index" nil
725 "^[ \t]*`" "'")) 723 "^[ \t]*`" "'"))
726 :parse-rule "\\$[^({]\\|\\.[_A-Z]*\\|[_a-zA-Z0-9-]+" 724 :parse-rule "\\$[^({]\\|\\.[_A-Z]*\\|[_a-zA-Z0-9-]+")
727 :other-modes '(automake-mode)) 725
726(info-lookup-maybe-add-help
727 :topic 'symbol
728 :mode 'makefile-automake-mode
729 ;; similar regexp/parse-rule as makefile-mode, but also the following
730 ;; (which have index entries),
731 ;; "##" special automake comment
732 ;; "+=" append operator, separate from the GNU make one
733 :regexp "\\$[^({]\\|\\.[_A-Z]*\\|[_a-zA-Z][_a-zA-Z0-9-]*\\|##\\|\\+="
734 :parse-rule "\\$[^({]\\|\\.[_A-Z]*\\|[_a-zA-Z0-9-]+\\|##\\|\\+="
735 :doc-spec '(
736 ;; "(automake)Macro Index" is autoconf macros used in
737 ;; configure.in, not Makefile.am, so don't have that here.
738 ("(automake)Variable Index" nil "^[ \t]*`" "'")
739 ;; In automake 1.4 macros and variables were a combined node.
740 ("(automake)Macro and Variable Index" nil "^[ \t]*`" "'")
741 ;; Directives like "if" are in the "General Index".
742 ;; Prefix "`" since the text for say `+=' isn't always an
743 ;; @item etc and so not always at the start of a line.
744 ("(automake)General Index" nil "`" "'")
745 ;; In automake 1.3 there was just a single "Index" node.
746 ("(automake)Index" nil "`" "'"))
747 :other-modes '(makefile-mode))
728 748
729(info-lookup-maybe-add-help 749(info-lookup-maybe-add-help
730 :mode 'texinfo-mode 750 :mode 'texinfo-mode