aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/man.el9
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 83800e9cb77..e5ad1f14462 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * man.el (Man-completion-table): Don't signal an error if we can't run
4 manual-program (bug#4056).
5
12010-02-10 Juanma Barranquero <lekktu@gmail.com> 62010-02-10 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * textmodes/artist.el (artist-mt): Fix typos in docstring. 8 * textmodes/artist.el (artist-mt): Fix typos in docstring.
diff --git a/lisp/man.el b/lisp/man.el
index e729e11b6ca..dd64fbda574 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -771,8 +771,13 @@ POS defaults to `point'."
771 ;; quote anything. 771 ;; quote anything.
772 (let ((process-environment (copy-sequence process-environment))) 772 (let ((process-environment (copy-sequence process-environment)))
773 (setenv "COLUMNS" "999") ;; don't truncate long names 773 (setenv "COLUMNS" "999") ;; don't truncate long names
774 (call-process manual-program nil '(t nil) nil 774 ;; manual-program might not even exist. And since it's
775 "-k" (concat "^" prefix))) 775 ;; run differently in Man-getpage-in-background, an error
776 ;; here may not necessarily mean that we'll also get an
777 ;; error later.
778 (ignore-errors
779 (call-process manual-program nil '(t nil) nil
780 "-k" (concat "^" prefix))))
776 (goto-char (point-min)) 781 (goto-char (point-min))
777 (while (re-search-forward "^\\([^ \t\n]+\\)\\(?: ?\\((.+?)\\)\\(?:[ \t]+- \\(.*\\)\\)?\\)?" nil t) 782 (while (re-search-forward "^\\([^ \t\n]+\\)\\(?: ?\\((.+?)\\)\\(?:[ \t]+- \\(.*\\)\\)?\\)?" nil t)
778 (push (propertize (concat (match-string 1) (match-string 2)) 783 (push (propertize (concat (match-string 1) (match-string 2))