Re: manual section search order

2016-04-12 Thread Mike Belopuhov
On 12 April 2016 at 21:49, Theo Buehler wrote: > On Tue, Apr 12, 2016 at 03:37:42PM -0400, Ted Unangst wrote: >> Marc Espie wrote: >> > Parentheses are okay in urls, so I see no reason why: >> > >> > man.openbsd.org/carp(4) >> > >> > shouldn't work. >> >> There are an astounding number of text to

Re: manual section search order

2016-04-12 Thread Marc Espie
On Tue, Apr 12, 2016 at 09:50:44PM +0200, Ingo Schwarze wrote: > Exactly what i did. It already works. Try it. Ah, but the .Xr inside the renderer html still use the old ?query syntax, so it is not exactly obvious this is going to work!

Re: manual section search order

2016-04-12 Thread Ingo Schwarze
Hi, Ted Unangst wrote on Tue, Apr 12, 2016 at 03:37:42PM -0400: > Marc Espie wrote: >> I think that in this day and age, the query? syntax is cumbersome I fully agree, the query syntax is obsolete for deep linking. It is supported for the HTML form frontend and for backward compatibility only.

Re: manual section search order

2016-04-12 Thread Theo Buehler
On Tue, Apr 12, 2016 at 03:37:42PM -0400, Ted Unangst wrote: > Marc Espie wrote: > > Parentheses are okay in urls, so I see no reason why: > > > > man.openbsd.org/carp(4) > > > > shouldn't work. > > There are an astounding number of text to html URL parsers/highlighters that > cannot quite handl

Re: manual section search order

2016-04-12 Thread Ted Unangst
Marc Espie wrote: > Parentheses are okay in urls, so I see no reason why: > > man.openbsd.org/carp(4) > > shouldn't work. There are an astounding number of text to html URL parsers/highlighters that cannot quite handle parentheses. That's not our problem, but instead of trying to boil the ocean,

Re: manual section search order

2016-04-12 Thread Marc Espie
Hardcoding stuff makes no sense. There are enough variations out there. Default + config probably. As far as putting links in the faq, does it make sense to let man resolve stuff instead of providing the redirection link directly ? Actually, I think that in this day and age, the query? syntax is

Re: manual section search order

2016-04-12 Thread Ingo Schwarze
Hi Mike, Mike Belopuhov wrote on Tue, Apr 12, 2016 at 08:41:16PM +0200: > why is 3p still on the "sections" list in the fs_search? > Just a lookup optimization? No. The purpose of the function fs_search() is not optimization, but fallback. If the requested manual is found in a database, that v

Re: manual section search order

2016-04-12 Thread Mike Belopuhov
On Tue, Apr 12, 2016 at 20:27 +0200, Ingo Schwarze wrote: > Hi Mike, > > Mike Belopuhov wrote on Tue, Apr 12, 2016 at 08:01:23PM +0200: > > > IMO it's a very bad idea to hardcode "3p/" like that. > > Aren't there packages using other funny section names? > > Packages are in a different manual tr

Re: manual section search order

2016-04-12 Thread Ingo Schwarze
Hi Mike, Mike Belopuhov wrote on Tue, Apr 12, 2016 at 08:01:23PM +0200: > IMO it's a very bad idea to hardcode "3p/" like that. > Aren't there packages using other funny section names? Packages are in a different manual tree /usr/local/man/, which gets lower priority than /usr/share/man/ in the

Re: manual section search order

2016-04-12 Thread Mike Belopuhov
On Tue, Apr 12, 2016 at 19:14 +0200, Ingo Schwarze wrote: > [moved to tech@, source-changes is not ideal for discussions] > > Marc Espie wrote on Tue, Apr 12, 2016 at 03:44:34PM +0200: > > On Tue, Apr 12, 2016 at 11:24:40PM +1000, Jonathan Gray wrote: > >> On Tue, Apr 12, 2016 at 02:36:09PM +0200,

Re: manual section search order

2016-04-12 Thread Andrew Fresh
On Tue, Apr 12, 2016 at 07:14:16PM +0200, Ingo Schwarze wrote: > [moved to tech@, source-changes is not ideal for discussions] > > Marc Espie wrote on Tue, Apr 12, 2016 at 03:44:34PM +0200: > > On Tue, Apr 12, 2016 at 11:24:40PM +1000, Jonathan Gray wrote: > >> On Tue, Apr 12, 2016 at 02:36:09PM +

manual section search order

2016-04-12 Thread Ingo Schwarze
[moved to tech@, source-changes is not ideal for discussions] Marc Espie wrote on Tue, Apr 12, 2016 at 03:44:34PM +0200: > On Tue, Apr 12, 2016 at 11:24:40PM +1000, Jonathan Gray wrote: >> On Tue, Apr 12, 2016 at 02:36:09PM +0200, Marc Espie wrote: >>> On Tue, Apr 12, 2016 at 08:18:33PM +1000, Jon