Lines Matching defs:page
36 OPT_SET_UINT('m', "man", &help_format, "show man page", HELP_FORMAT_MAN),
39 OPT_SET_UINT('i', "info", &help_format, "show info page",
117 static void exec_woman_emacs(const char *path, const char *page)
125 strbuf_addf(&man_page, "(woman \"%s\")", page);
131 static void exec_man_konqueror(const char *path, const char *page)
153 strbuf_addf(&man_page, "man:%s(1)", page);
159 static void exec_man_man(const char *path, const char *page)
163 execlp(path, "man", page, NULL);
167 static void exec_man_cmd(const char *cmd, const char *page)
170 strbuf_addf(&shell_cmd, "%s %s", cmd, page);
327 * system-wide paths after ours to find the manual page. If
339 static void exec_viewer(const char *name, const char *page)
344 exec_man_man(info, page);
346 exec_woman_emacs(info, page);
348 exec_man_konqueror(info, page);
350 exec_man_cmd(info, page);
358 const char *page = cmd_to_page(perf_cmd);
363 exec_viewer(viewer->name, page); /* will return when unable */
366 exec_viewer(fallback, page);
367 exec_viewer("man", page);
373 const char *page = cmd_to_page(perf_cmd);
375 execlp("info", "info", "perfman", page, NULL);
378 static void get_html_page_path(struct strbuf *page_path, const char *page)
389 strbuf_addf(page_path, "%s/%s.html", html_path, page);
406 const char *page = cmd_to_page(perf_cmd);
409 get_html_page_path(&page_path, page);