Subject: Re: bug#5578: 23.1.92; M-x man should consider $MANPATH when making completions

From: [email-masked]
Date: Sun, 14 Feb 2010 14:12:31 +0800

>>>>> "CY" == Chong Yidong <[email-masked]> writes:
CY> [email-masked] writes:

>> M-x man should consider $MANPATH when making completions. It (via
>> /usr/bin/man) finds the pages fine, but one must type them in without
>> any TAB completion help. The TAB completion should examine one's e.g.,
>> MANPATH=/usr/local/man:/home/jidanni/.spamassassin-tree/man: too.

CY> It does complete, using `man -k'.  Please provide a proper bug report.

$ man -w whoami
/usr/share/man/man1/whoami.1.gz
$ man -k whoami
whoami (1)           - print effective userid
$ man -w sa-update
/home/jidanni/.spamassassin-tree/man/man1/sa-update.1p
$ man -k sa-update
$

Well, OK, but to change things, the user must probably fiddle with
/etc/manpath.config and run roots cronjob, when all he wants to do is
expand the names and not look at the definitions...

Just like one can expand the names of $PATH, why not $MANPATH...