Man-parse-man-k is a compiled Lisp function in `man.el'.


Parse "man -k" output and return the list of page names.

The current buffer should contain the output of a command of the
form "man -k keyword", which is traditionally also available with

While POSIX man(1p) is a bit vague about what to expect here,
this function tries to parse some commonly used formats, which
can be described in the following informal way, with square brackets
indicating optional parts and whitespace being interpreted
somewhat loosely.

foo[, bar [, ...]] [other stuff] (sec) - description
foo(sec)[, bar(sec) [, ...]] [other stuff] - description

For more details and some regression tests, please see
test/automated/man-tests.el in the emacs repository.