GNU bug report logs -
#16722
[(old?) cygwin] `M-x man' completion doesn't handle broken `man -k' gracefully
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Tue, 11 Feb 2014 14:47:02 UTC
Severity: minor
Tags: fixed
Found in version 24.3.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #46 received at 16722 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> 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 <at> 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
This bug report was last modified 4 years and 301 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.