From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#16722: 24.3.50; `M-x man' does not handle case appropriately Date: Fri, 25 Sep 2020 12:21:07 +0200 Message-ID: <873636rwbw.fsf@gnus.org> References: <85fvnkwarc.fsf@iznogoud.viz> <834n40ayg4.fsf@gnu.org> <858utbkgof.fsf@iznogoud.viz> <831tz3btr8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3659"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Wolfgang Jenkner , 16722@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 25 12:30:27 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 1kLkzj-0000qk-3l for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Sep 2020 12:30:27 +0200 Original-Received: from localhost ([::1]:49796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLkzi-0007wZ-5X for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Sep 2020 06:30:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLkrc-0007eo-H9 for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 06:22:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59453) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLkra-0007yK-EH for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 06:22:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLkra-0003wV-9d for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2020 06:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 10:22: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.160102928015094 (code B ref 16722); Fri, 25 Sep 2020 10:22:02 +0000 Original-Received: (at 16722) by debbugs.gnu.org; 25 Sep 2020 10:21:20 +0000 Original-Received: from localhost ([127.0.0.1]:42766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLkqt-0003vN-QH for submit@debbugs.gnu.org; Fri, 25 Sep 2020 06:21:20 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:38390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLkqr-0003v8-Lz for 16722@debbugs.gnu.org; Fri, 25 Sep 2020 06:21:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bhS4RmNCRCYBXMXFs9aYQm0Fl2bnLxgnwv4DYlNVu68=; b=jNw9djylvr0tk6pFUfU7xNFJrt 5kwXbuOldbwXuRfxJdI1/SO7JCHlMXG2A/sqlrb/gJHfJjKUoYPUVYIMmTMxfowoVqbhAFXCpx4Mb li5+PZI5S3z7Siga+Yul2VB5NAZpi4zMV8WWUmIB+M1anHTj0WjL+q/bB1F87S6OK3pE=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLkqi-00015q-Me; Fri, 25 Sep 2020 12:21:11 +0200 X-Now-Playing: Thievery Corporation's _The Mirror Conspiracy_: "The Mirror Conspiracy" In-Reply-To: <831tz3btr8.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 16 Feb 2014 05:50:51 +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:188943 Archived-At: 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? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no