summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2009-12-26 21:13:21 +0000
committerKevin Ryde <user42@zip.com.au>2009-12-26 21:13:21 +0000
commit48a438d79b411371e15c2e281d02f009448f14ee (patch)
tree6d6813aea2be00192fcee1433736e0fdae033b1e
parenta9bbe218131fefad6a09c381810504b7a07a176f (diff)
downloademacs-48a438d79b411371e15c2e281d02f009448f14ee.tar.gz
* 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/info-look.el7
1 files changed, 7 insertions, 0 deletions
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."
:doc-spec '(("(bash)Builtin Index" nil "^`" "[ .']")
("(bash)Reserved Word Index" nil "^`" "[ .']")
("(bash)Variable Index" nil "^`" "[ .']")
+
;; coreutils (version 4.5.10) doesn't have a separate program
;; index, so exclude extraneous stuff (most of it) by demanding
;; "[a-z]+" in the trans-func.
+ ;; coreutils version 8.1 has node "Concept Index" and past
+ ;; versions have node "Index", look for both, whichever is
+ ;; absent is quietly ignored
("(coreutils)Index"
(lambda (item) (if (string-match "\\`[a-z]+\\'" item) item)))
+ ("(coreutils)Concept Index"
+ (lambda (item) (if (string-match "\\`[a-z]+\\'" item) item)))
+
;; diff (version 2.8.1) has only a few programs, index entries
;; are things like "foo invocation".
("(diff)Index"