From: Glenn Morris <rgm@gnu.org>
To: Wolfgang Jenkner <wjenkner@inode.at>
Cc: 13160@debbugs.gnu.org, Kevin Ryde <user42@zip.com.au>
Subject: bug#13160: 24.3.50; [PATCH] man page completion support beyond man-db
Date: Wed, 12 Dec 2012 14:31:38 -0500 [thread overview]
Message-ID: <n9sj7bm5id.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <856247krc6.fsf@iznogoud.viz> (Wolfgang Jenkner's message of "Wed, 12 Dec 2012 20:16:45 +0100")
Wolfgang Jenkner wrote:
> In lisp/man.el, completion of man pages and sections depends on parsing
> the output of `man -k'. As a bonus, this method provides short
> descriptions in the form of tooltips in the *Completions* buffer.
IMO it should just search MANPATH, like bash_completion does.
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10712#11
This is perhaps a separate issue, but would avoid all of this:
> However, the code only handles the `man -k' output format peculiar to
> the man-db package, which, even on GNU/Linux, is not the only one used
> for this purpose.
>
> For example, Slackware seems to use man-1.6g, whose `man -k' output can
> have an additional reference in square brackets between the page name
> and the section, so that man topic completion does work in this case,
> but neither sections nor descriptions are parsed.
>
> The situation is even worse for FreeBSD, where multiple comma-separated
> page names can be shown on the same line (which is arguably against the
> spirit of POSIX man(1p), but that's not quite clear and doesn't help
> much).
next prev parent reply other threads:[~2012-12-12 19:31 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-12 19:16 bug#13160: 24.3.50; [PATCH] man page completion support beyond man-db Wolfgang Jenkner
2012-12-12 19:31 ` Glenn Morris [this message]
2012-12-12 20:30 ` Stefan Monnier
2012-12-14 21:19 ` Kevin Ryde
2012-12-14 21:35 ` Wolfgang Jenkner
2012-12-15 0:59 ` Kevin Ryde
2012-12-16 18:07 ` Wolfgang Jenkner
2012-12-22 15:27 ` Wolfgang Jenkner
2012-12-22 17:11 ` Stefan Monnier
2012-12-22 17:58 ` Wolfgang Jenkner
2012-12-23 13:46 ` Stefan Monnier
2012-12-23 19:49 ` Wolfgang Jenkner
2012-12-23 20:59 ` Wolfgang Jenkner
2012-12-24 0:00 ` Stefan Monnier
2013-01-06 19:27 ` Wolfgang Jenkner
2012-12-24 1:20 ` Stefan Monnier
2012-12-24 2:23 ` Wolfgang Jenkner
2012-12-24 4:34 ` Stefan Monnier
2013-01-06 19:48 ` Wolfgang Jenkner
2013-01-10 15:01 ` Stefan Monnier
2012-12-30 0:10 ` Kevin Ryde
2012-12-23 0:16 ` Kevin Ryde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=n9sj7bm5id.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=13160@debbugs.gnu.org \
--cc=user42@zip.com.au \
--cc=wjenkner@inode.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.