diff lisp/man.el @ 107131:741ff2bdfe79

(Man-completion-table): Don't signal an error if we can't run manual-program (bug#4056).
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 11 Feb 2010 11:00:01 -0500
parents 1d1d5d9bd884
children 0811f079d15e
line wrap: on
line diff
--- a/lisp/man.el	Wed Feb 10 20:13:39 2010 -0800
+++ b/lisp/man.el	Thu Feb 11 11:00:01 2010 -0500
@@ -771,8 +771,13 @@
           ;; quote anything.
           (let ((process-environment (copy-sequence process-environment)))
             (setenv "COLUMNS" "999") ;; don't truncate long names
-            (call-process manual-program nil '(t nil) nil
-                          "-k" (concat "^" prefix)))
+            ;; manual-program might not even exist.  And since it's
+            ;; run differently in Man-getpage-in-background, an error
+            ;; here may not necessarily mean that we'll also get an
+            ;; error later.
+            (ignore-errors
+              (call-process manual-program nil '(t nil) nil
+                            "-k" (concat "^" prefix))))
           (goto-char (point-min))
           (while (re-search-forward "^\\([^ \t\n]+\\)\\(?: ?\\((.+?)\\)\\(?:[ \t]+- \\(.*\\)\\)?\\)?" nil t)
             (push (propertize (concat (match-string 1) (match-string 2))