From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.bugs Subject: bug#16722: 24.3.50; `M-x man' does not handle case appropriately Date: Sun, 16 Feb 2014 02:08:32 +0100 Message-ID: <858utbkgof.fsf@iznogoud.viz> References: <85fvnkwarc.fsf@iznogoud.viz> <834n40ayg4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392512949 8647 80.91.229.3 (16 Feb 2014 01:09:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Feb 2014 01:09:09 +0000 (UTC) Cc: 16722@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 16 02:09:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WEqEP-0003Aj-LH for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Feb 2014 02:09:17 +0100 Original-Received: from localhost ([::1]:59180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEqEO-00016B-Vk for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Feb 2014 20:09:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEqEG-000161-Vd for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 20:09:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEqEB-0002uZ-1Y for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 20:09:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEqEA-0002uT-Up for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 20:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WEqEA-0002we-HP for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 20:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Wolfgang Jenkner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Feb 2014 01:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16722 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16722-submit@debbugs.gnu.org id=B16722.139251292211281 (code B ref 16722); Sun, 16 Feb 2014 01:09:02 +0000 Original-Received: (at 16722) by debbugs.gnu.org; 16 Feb 2014 01:08:42 +0000 Original-Received: from localhost ([127.0.0.1]:54020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEqDp-0002vs-Tu for submit@debbugs.gnu.org; Sat, 15 Feb 2014 20:08:42 -0500 Original-Received: from b2bfep13.mx.upcmail.net ([62.179.121.58]:36959) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEqDm-0002vd-SN for 16722@debbugs.gnu.org; Sat, 15 Feb 2014 20:08:39 -0500 Original-Received: from edge11.upcmail.net ([192.168.13.81]) by b2bfep13-int.chello.at (InterMail vM.8.01.05.11 201-2260-151-128-20120928) with ESMTP id <20140216010832.DGFN3931.b2bfep13-int.chello.at@edge11.upcmail.net>; Sun, 16 Feb 2014 02:08:32 +0100 Original-Received: from iznogoud.viz ([91.119.197.0]) by edge11.upcmail.net with edge id Sp8Y1n00G00zuln0Bp8Ywn; Sun, 16 Feb 2014 02:08:32 +0100 X-SourceIP: 91.119.197.0 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.82 (FreeBSD)) (envelope-from ) id 1WEqDg-0000Rr-2x; Sun, 16 Feb 2014 02:08:32 +0100 In-Reply-To: <834n40ayg4.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 Feb 2014 22:54:51 +0200") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (berkeley-unix) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85651 Archived-At: On Sat, Feb 15 2014, Eli Zaretskii wrote: >> It seems (http://cygwin.com/packages/) that man-1.* is the man package >> provided by default in cygwin, but I suppose cygwin packages could also >> be used with a non-cygwin emacs? Would it be reasonable to set the >> default for `Man-man-k-use-anchor' to non-nil if the system type is >> `cygwin' or `windows-nt' or `ms-dos'? > > It is much better, IMO, to probe for "man -k" support the first time > "M-x man" is invoked, like we do with "M-x grep". Relying on > system-type should only be a very distant second candidate (e.g., what > if Windows machines will get a proper 'man' command that does supports > apropos databases?). But `man -k' always works (to the extent we need it to) if the whatis database is correctly installed. In particular, for Drew's case, please see http://permalink.gmane.org/gmane.emacs.bugs/68879 As the doc string of `Man-man-k-use-anchor' states, Setting the value to nil always gives correct results but computing the list of completions may take a bit longer. The problem is just a bug in this particular implementation, viz., `man -k' sends error messages to stdout. Strictly speaking, POSIX requires emacs to assume that everything in stdout represents content from the whatis database, but this is not desirable in this case. Setting `Man-man-k-use-anchor' to non-nil works around this annoyance, for the reasons I explained in this bug thread. Wolfgang