From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Colin Watson Newsgroups: gmane.emacs.bugs Subject: bug#5578: 23.1.92; M-x man should consider $MANPATH when making completions Date: Sun, 14 Feb 2010 08:57:23 +0000 Message-ID: <20100214085721.GX4484@riva.ucam.org> References: <87r5oohafl.fsf@stupidchicken.com> <87tytkpcq8.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266167499 11287 80.91.229.12 (14 Feb 2010 17:11:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Feb 2010 17:11:39 +0000 (UTC) Cc: cyd@stupidchicken.com, rfrancoise@debian.org, man-db@packages.debian.org, 5578@debbugs.gnu.org To: jidanni@jidanni.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 14 18:11:23 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ngi03-0002dA-Sg for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Feb 2010 18:11:17 +0100 Original-Received: from localhost ([127.0.0.1]:54257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nghns-00074u-5H for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Feb 2010 11:58:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ngagb-00044p-J4 for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2010 04:22:41 -0500 Original-Received: from [140.186.70.92] (port=57835 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ngaga-00042M-7j for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2010 04:22:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NgagX-0006FS-Ls for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2010 04:22:40 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39185) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgagW-0006FK-Ia for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2010 04:22:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NgaIk-00063C-CU; Sun, 14 Feb 2010 03:58:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Colin Watson Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Feb 2010 08:58:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5578 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5578-submit@debbugs.gnu.org id=B5578.126613787123246 (code B ref 5578); Sun, 14 Feb 2010 08:58:02 +0000 Original-Received: (at 5578) by debbugs.gnu.org; 14 Feb 2010 08:57:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgaIZ-00062t-HR for submit@debbugs.gnu.org; Sun, 14 Feb 2010 03:57:51 -0500 Original-Received: from smarthost01.mail.zen.net.uk ([212.23.3.140]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgaIX-00062m-QN for 5578@debbugs.gnu.org; Sun, 14 Feb 2010 03:57:50 -0500 Original-Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost01.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1NgaIR-00013L-B2; Sun, 14 Feb 2010 08:57:43 +0000 Original-Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) id 1NgaI9-0002EA-00; Sun, 14 Feb 2010 08:57:25 +0000 Content-Disposition: inline In-Reply-To: <87tytkpcq8.fsf@jidanni.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost01-IP: [82.69.40.219] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 14 Feb 2010 03:58:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sun, 14 Feb 2010 11:57:41 -0500 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35114 Archived-At: On Sun, Feb 14, 2010 at 02:12:31PM +0800, jidanni@jidanni.org wrote: > $ 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... Not at all. Run mandb as your ordinary user and then 'man -k' will work. You may only care about the names, but if M-x man currently searches definitions as well then that means a number of users have almost certainly got used to that, and 'man -k' seems like a reasonable way to do that kind of thing. Having to make sure the database is up to date seems like a not unreasonable price to pay, given that user manual hierarchies are comparatively rare. -- Colin Watson [cjwatson@debian.org]