From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#3717: M-x man completion Date: Wed, 16 Dec 2009 02:42:17 +0200 Organization: JURTA Message-ID: <87hbrrpwou.fsf@mail.jurta.org> References: <87hbsepfst.fsf@blah.blah> <87hbrsn4jf.fsf@jidanni.org> Reply-To: Juri Linkov , 3717@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260926891 10891 80.91.229.12 (16 Dec 2009 01:28:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2009 01:28:11 +0000 (UTC) Cc: 3717@emacsbugs.donarmstrong.com, user42@zip.com.au, jidanni@jidanni.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 16 02:28:04 2009 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 1NKigN-0007Hf-L9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Dec 2009 02:28:03 +0100 Original-Received: from localhost ([127.0.0.1]:46280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKigN-0004dd-Hq for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Dec 2009 20:28:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKifx-0004Qu-Lm for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2009 20:27:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKifs-0004Ok-Vf for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2009 20:27:37 -0500 Original-Received: from [199.232.76.173] (port=42077 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKifs-0004Oh-TV for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2009 20:27:32 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34015) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NKifs-0004fQ-Bc for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2009 20:27:32 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBG1RTW8020330; Tue, 15 Dec 2009 17:27:30 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nBG1A55b018837; Tue, 15 Dec 2009 17:10:05 -0800 Resent-Date: Tue, 15 Dec 2009 17:10:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 16 Dec 2009 01:10:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3717 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3717-submit@emacsbugs.donarmstrong.com id=B3717.126092550217608 (code B ref 3717); Wed, 16 Dec 2009 01:10:04 +0000 Original-Received: (at 3717) by emacsbugs.donarmstrong.com; 16 Dec 2009 01:05:02 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBG150Vo017572 for <3717@emacsbugs.donarmstrong.com>; Tue, 15 Dec 2009 17:05:01 -0800 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.94.242.cable.starman.ee [82.131.94.242]) by mx1.starman.ee (Postfix) with ESMTP id 2D2EA3F415E; Wed, 16 Dec 2009 03:04:52 +0200 (EET) In-Reply-To: (Eli Zaretskii's message of "Tue, 15 Dec 2009 03:04:30 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 15 Dec 2009 20:27:37 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:33622 Archived-At: >> I get >> completion--some: Searching for program: no such file or directory, LC_CTYPE=C man >> when I do M-x man ca >> Because I do (setq manual-program "LC_CTYPE=C man") > > That's an abuse of manual-program: it is supposed to be the name of a > program, not a command string. I wonder why such abuse works for the normal use of `M-x man', but doesn't work for man completions that run "man -k". I see that `Man-getpage-in-background' calls `start-process' (with a shell command name prepended) to run "man", but `Man-completion-table' calls `call-process' (without a shell command prepended) to run "man -k". That's the difference. Shouldn't `Man-completion-table' prepend a shell command name to not fail when `manual-program' is "LC_CTYPE=C man"? Isn't it easier just to do this than to declare it as an abuse? If we declare such use of `manual-program' as an abuse, what we can suggest to use instead? -- Juri Linkov http://www.jurta.org/emacs/