From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16722: 24.3.50; `M-x man' does not handle case appropriately Date: Fri, 25 Sep 2020 14:29:51 +0300 Message-ID: <83sgb6rt5c.fsf@gnu.org> References: <85fvnkwarc.fsf@iznogoud.viz> <834n40ayg4.fsf@gnu.org> <858utbkgof.fsf@iznogoud.viz> <831tz3btr8.fsf@gnu.org> <873636rwbw.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28331"; mail-complaints-to="usenet@ciao.gmane.io" Cc: wjenkner@inode.at, 16722@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 25 13:30:30 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLlvp-0007Ey-2L for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Sep 2020 13:30:29 +0200 Original-Received: from localhost ([::1]:59732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLlvo-00023U-4k for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Sep 2020 07:30:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLlvO-00021Z-Sz for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 07:30:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLlvO-0007tu-JK for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 07:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLlvO-0001ck-FR for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 07:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 11:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16722 X-GNU-PR-Package: emacs Original-Received: via spool by 16722-submit@debbugs.gnu.org id=B16722.16010333916205 (code B ref 16722); Fri, 25 Sep 2020 11:30:02 +0000 Original-Received: (at 16722) by debbugs.gnu.org; 25 Sep 2020 11:29:51 +0000 Original-Received: from localhost ([127.0.0.1]:42886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLlvC-0001c1-VM for submit@debbugs.gnu.org; Fri, 25 Sep 2020 07:29:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLlvB-0001bp-HZ for 16722@debbugs.gnu.org; Fri, 25 Sep 2020 07:29:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60114) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLlv5-0007rf-Ei; Fri, 25 Sep 2020 07:29:43 -0400 Original-Received: from [176.228.60.248] (port=4279 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLlv3-0002be-Co; Fri, 25 Sep 2020 07:29:42 -0400 In-Reply-To: <873636rwbw.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 25 Sep 2020 12:21:07 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:188957 Archived-At: > From: Lars Ingebrigtsen > Cc: Wolfgang Jenkner , 16722@debbugs.gnu.org > Date: Fri, 25 Sep 2020 12:21:07 +0200 > > Eli Zaretskii writes: > > >> But `man -k' always works (to the extent we need it to) if the whatis > >> database is correctly installed. > > > > No, it doesn't. For example, it isn't supported with this clone: > > > > http://sourceforge.net/projects/ezwinports/files/man-1.4-bin.zip/download > > > > And, as demonstrated in this bug report, it can backfire when the > > database is not "correctly installed". > > npostavs@users.sourceforge.net writes: > > > I can't reproduce the problem here, as my cygwin's man -k prints only to > > stderr in this case. Does checking exit status help? > > [...] > > > - (setq table (Man-parse-man-k))) > > + (when (eq 0 > > + (ignore-errors > > + (call-process > > + manual-program nil '(t nil) nil > > + "-k" (concat (when (or Man-man-k-use-anchor > > + (string-equal prefix "")) > > + "^") > > + prefix)))) > > + (setq table (Man-parse-man-k))))) > > There was no followup on this patch, and I don't have a Windows system > to test with. Eli, would this patch fix the problem both with the > uninstalled whereis database and the ezwinports version of man? I can only test the ezwinports case: the code proposed by Noam will cause that 'man' to return a non-zero exit status, so it sounds like an okay solution for ezwinports. The use case with uninstalled whatis database you could probably test on your system, by moving the database aside or renaming it? Thanks.