Subject: bug#3717: M-x man completion

From: Kevin Ryde <[email-masked]>
Date: Fri, 18 Dec 2009 07:20:09 +1100

Juri Linkov <[email-masked]> writes:
>
> because `Man-completion-table' currently doesn't allow a command line

I threw down a couple of lines

        (call-process shell-file-name nil t nil
                      shell-command-switch
                      (concat manual-program " -k \"\""))

which get the right effect for me.  Not sure if Man-switches should be
worked in there.  If they're page formatting options they might be bad
with -k.

Man-completion-table would no doubt need a shell-quote-argument or
something to get its match string through the shell.  But I still think
Man-completion-table might better grab the entire list of page names
once.  On my old pc with 13,000 page names (yes, really :-) it's almost
as slow to fetch a few matches or the whole lot.  The cost is the RAM to
keep them all of course.