···11-Add the -m option to man's command line to augment the list of paths22-searched by man. The string "OUT" must be substituted with chawan's $out33-path after patching.11+Add the -m option to man's command line to augment the list of paths searched by man.42The required -m option is only available in the mandoc implementation.55---- a/adapter/protocol/man66-+++ b/adapter/protocol/man77-@@ -75,7 +75,7 @@ EOF33+--- a/adapter/protocol/man.nim44++++ b/adapter/protocol/man.nim55+@@ -264,7 +264,7 @@ proc myOpen(cmd: string): tuple[ofile, efile: File] =8699- $section =~ s:([^-\w\200-\377.,])::g;1010- $man =~ s:([^-\w\200-\377.,])::g;1111-- open(F, "GROFF_NO_SGR=1 MAN_KEEP_FORMATTING=1 $MAN $section $man 2> /dev/null |");1212-+ open(F, "GROFF_NO_SGR=1 MAN_KEEP_FORMATTING=1 $MAN -m OUT/share/man $section $man 2> /dev/null |");1313- }1414-1515- $ok = 0;77+ proc doMan(man, keyword, section: string) =88+ let sectionOpt = if section == "": "" else: ' ' & quoteShellPosix(section)99+ let cmd = "MANCOLOR=1 GROFF_NO_SGR=1 MAN_KEEP_FORMATTING=1 " &1010+- man & sectionOpt & ' ' & quoteShellPosix(keyword)1111++ man & sectionOpt & " -m @out@ " & quoteShellPosix(keyword)1212+ let (ofile, efile) = myOpen(cmd)1313+ if ofile == nil: