comparison lisp/man.el @ 106648:bef8989591e3

Tweak a comment: it's man-db on gnu/linux which agrees with posix that man -k arg is an egrep regexp. (No need to changelog something this small is there?)
author Kevin Ryde <user42@zip.com.au>
date Sat, 26 Dec 2009 21:32:51 +0000
parents dfa5f38a6a2a
children 11605ddedbe6
comparison
equal deleted inserted replaced
106647:15f0de42e686 106648:bef8989591e3
761 (setq section (match-string 1 string)) 761 (setq section (match-string 1 string))
762 (setq prefix (substring string (match-end 0)))) 762 (setq prefix (substring string (match-end 0))))
763 (unless (and Man-completion-cache 763 (unless (and Man-completion-cache
764 (string-prefix-p (car Man-completion-cache) prefix)) 764 (string-prefix-p (car Man-completion-cache) prefix))
765 (with-temp-buffer 765 (with-temp-buffer
766 (setq default-directory "/") ;; in case inherited doesn't 766 (setq default-directory "/") ;; in case inherited doesn't exist
767 ;; exist Actually for my `man' the arg is a regexp. 767 ;; Actually for my `man' the arg is a regexp.
768 ;; POSIX says it must be ERE and GNU/Linux seems to agree, 768 ;; POSIX says it must be ERE and "man-db" seems to agree,
769 ;; whereas under MacOSX it seems to be BRE-style and doesn't 769 ;; whereas under MacOSX it seems to be BRE-style and doesn't
770 ;; accept backslashes at all. Let's not bother to 770 ;; accept backslashes at all. Let's not bother to
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