Commit c07ff221 authored by Stefan Monnier's avatar Stefan Monnier

(Man-completion-table): Don't signal an error if we can't run

manual-program (bug#4056).
parent ac9ffe99
2010-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
* man.el (Man-completion-table): Don't signal an error if we can't run
manual-program (bug#4056).
2010-02-10 Juanma Barranquero <lekktu@gmail.com>
* textmodes/artist.el (artist-mt): Fix typos in docstring.
......
......@@ -771,8 +771,13 @@ POS defaults to `point'."
;; quote anything.
(let ((process-environment (copy-sequence process-environment)))
(setenv "COLUMNS" "999") ;; don't truncate long names
;; 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)))
"-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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment