From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#5347: 23.1; M-x man: misreports absent man(1) as absent manpage. Date: Sun, 10 Jan 2010 19:48:34 +0200 Message-ID: <83ocl197gt.fsf@gnu.org> References: <4b48732e.e701be0a.4cf2.3e5c@mx.google.com> <83skaf8jgv.fsf@gnu.org> <20100110030538.GB2083@Clio> <83pr5i8v07.fsf@gnu.org> <20100110043036.GA3424@Clio> Reply-To: Eli Zaretskii , 5347@debbugs.gnu.org NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1263147611 5738 80.91.229.12 (10 Jan 2010 18:20:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jan 2010 18:20:11 +0000 (UTC) Cc: 5347@debbugs.gnu.org To: "Trent W. Buck" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 10 19:20:03 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.50) id 1NU2OM-0002nu-0t for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jan 2010 19:19:58 +0100 Original-Received: from localhost ([127.0.0.1]:48977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NU2OM-0005VS-K4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jan 2010 13:19:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NU2Nc-0004xF-Iy for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2010 13:19:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NU2NX-0004tF-Tk for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2010 13:19:11 -0500 Original-Received: from [199.232.76.173] (port=34727 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NU2NX-0004sz-ME for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2010 13:19:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36078) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NU2NX-0008Cd-DN for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2010 13:19:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NU1uQ-0006fL-S0; Sun, 10 Jan 2010 12:49:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: Eli Zaretskii , 5347@debbugs.gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jan 2010 17:49:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5347 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5347-submit@debbugs.gnu.org id=B5347.126314573025586 (code B ref 5347); Sun, 10 Jan 2010 17:49:02 +0000 Original-Received: (at 5347) by debbugs.gnu.org; 10 Jan 2010 17:48:50 +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 1NU1u1-0006ea-Ue for submit@debbugs.gnu.org; Sun, 10 Jan 2010 12:48:50 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU1tz-0006eS-HO for 5347@debbugs.gnu.org; Sun, 10 Jan 2010 12:48:36 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KW100700LEFNV00@a-mtaout20.012.net.il> for 5347@debbugs.gnu.org; Sun, 10 Jan 2010 19:47:59 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.222.44]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KW1005XMLFYJ160@a-mtaout20.012.net.il>; Sun, 10 Jan 2010 19:47:59 +0200 (IST) In-reply-to: <20100110043036.GA3424@Clio> X-012-Sender: halo1@inter.net.il X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.0 (--) Resent-Date: Sun, 10 Jan 2010 12:49:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:34170 Archived-At: > Date: Sun, 10 Jan 2010 15:30:38 +1100 > From: "Trent W. Buck" > Cc: 5347@debbugs.gnu.org > > Eli Zaretskii wrote: > >> I realize that. This issue is because M-x man RET foo RET reports > >> error in process sentinel: Can't find the foo manpage > >> but it should report something like > >> error in process sentinel: Can't find man(1) > > > > It cannot know. > > I don't understand why. Surely it can (executable-find "man") or even > simply check the exit status (which will be 126 or 127 if man isn't > executable). But "M-x man" does not just run man(1), it runs a whole pipeline of different commands, including Sed and Awk. And that's just by default; some parts of the pipeline can be customized to invoke other commands. Testing each one of them via executable-find would be impractical. Testing for exit status of 127 or 126 is system-dependent, so it won't work on all systems. And since "M-x man" invokes the pipeline asynchronously, all it sees is an empty buffer or buffer with contents it doesn't expect. Why is the use-case of having man pages but not man(1) so important that it's worth catering to? Maybe it would be good enough to change (error "Can't find the %s manpage" args) into (error "Can't find the %s manpage or no man(1)" args)