On 13 October 2017, Kazunobu Kuriyama <[email protected]>
wrote:
> 2017-10-13 23:24 GMT+09:00 LCD 47 <[email protected]>:
> > "man-db", which is a "man" implementation used on some Linux
> > distributions, sets the environment variable MAN_PN to something
> > like "ls(1)", and passes it to programs run from $MANPAGER. To the
> > best of my knowledge no other "man" implementation does that.
> >
> > The manual asks you to set MAN_PN to 1. If it's still 1 (as
> > opposed to something like "ls(1)") when Vim is run from $MANPAGER,
> > your "man" didn't set MAN_PN to anything useful. When that happens,
> > Vim tries to parse the name and the section of the man page from
> > the first line in the formatted page. However, said line looks
> > something like this:
> >
> > LS(1) General Commands Manual
> > LS(1)
> >
> > To get from "LS(1)" to "ls(1)" Vim uses tolower(). That breaks
> > for man pages such as "Xorg", or "Net::DNS". This is the problem
> > I'm trying to address.
> >
>
> What I found was that your solution wasn't enough for Mac. The header
> which begins with something like LS(1) is not always on line 1 for
> Mac. And the proposed logic making everything lower via tolower()
> doesn't work for handling Xorg or Net::DNS for Mac.
That isn't my solution, it's what Vim does, regardless of my patch.
My solution is to not mutilate "ls(1)" when parsing it from $MAN_PN.
This has nothing to do with the first line in the formatted page.
> My patch is an compliment to yours.
Here we agree: your patch and mine fix unrelated problems. _shrug_
/lcd
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.