aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Ryde2009-12-26 21:14:25 +0000
committerKevin Ryde2009-12-26 21:14:25 +0000
commit39764e76410ea566484a756350139b83c729eede (patch)
tree5f6767b3f7c38d0569257163854e9225069a0c90
parent7f4d4a978d1c7357177494cb8297873f28bd73b1 (diff)
downloademacs-39764e76410ea566484a756350139b83c729eede.tar.gz
emacs-39764e76410ea566484a756350139b83c729eede.zip
* info-look.el (sh-mode): Look for coreutils new "Concept Index"
node. Keep previous "Index" name to work with past coreutils too.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/info-look.el7
2 files changed, 12 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5783c211812..a2710d59b7e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-12-26 Kevin Ryde <user42@zip.com.au>
2
3 * info-look.el (sh-mode): Look for coreutils new "Concept Index"
4 node. Keep previous "Index" name to work with past coreutils too.
5
12009-12-26 Michael Albinus <michael.albinus@gmx.de> 62009-12-26 Michael Albinus <michael.albinus@gmx.de>
2 7
3 * net/tramp.el (tramp-handle-insert-directory): Quote "'" in the 8 * net/tramp.el (tramp-handle-insert-directory): Quote "'" in the
diff --git a/lisp/info-look.el b/lisp/info-look.el
index 7c9c124eb39..12169f6f107 100644
--- a/lisp/info-look.el
+++ b/lisp/info-look.el
@@ -936,11 +936,18 @@ Return nil if there is nothing appropriate in the buffer near point."
936 :doc-spec '(("(bash)Builtin Index" nil "^`" "[ .']") 936 :doc-spec '(("(bash)Builtin Index" nil "^`" "[ .']")
937 ("(bash)Reserved Word Index" nil "^`" "[ .']") 937 ("(bash)Reserved Word Index" nil "^`" "[ .']")
938 ("(bash)Variable Index" nil "^`" "[ .']") 938 ("(bash)Variable Index" nil "^`" "[ .']")
939
939 ;; coreutils (version 4.5.10) doesn't have a separate program 940 ;; coreutils (version 4.5.10) doesn't have a separate program
940 ;; index, so exclude extraneous stuff (most of it) by demanding 941 ;; index, so exclude extraneous stuff (most of it) by demanding
941 ;; "[a-z]+" in the trans-func. 942 ;; "[a-z]+" in the trans-func.
943 ;; coreutils version 8.1 has node "Concept Index" and past
944 ;; versions have node "Index", look for both, whichever is
945 ;; absent is quietly ignored
942 ("(coreutils)Index" 946 ("(coreutils)Index"
943 (lambda (item) (if (string-match "\\`[a-z]+\\'" item) item))) 947 (lambda (item) (if (string-match "\\`[a-z]+\\'" item) item)))
948 ("(coreutils)Concept Index"
949 (lambda (item) (if (string-match "\\`[a-z]+\\'" item) item)))
950
944 ;; diff (version 2.8.1) has only a few programs, index entries 951 ;; diff (version 2.8.1) has only a few programs, index entries
945 ;; are things like "foo invocation". 952 ;; are things like "foo invocation".
946 ("(diff)Index" 953 ("(diff)Index"