# HG changeset patch # User Kevin Ryde # Date 1261862001 0 # Node ID 3e902d81441e5e231b60294f1a267f362f6c9e7f # Parent 9e3bbd77797cf624e7b8b8a4c41d55119599e02f * info-look.el (sh-mode): Look for coreutils new "Concept Index" node. Keep previous "Index" name to work with past coreutils too. diff -r 9e3bbd77797c -r 3e902d81441e lisp/info-look.el --- a/lisp/info-look.el Sat Dec 26 20:04:43 2009 +0000 +++ b/lisp/info-look.el Sat Dec 26 21:13:21 2009 +0000 @@ -936,11 +936,18 @@ :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"