[emacs-w3m:13938] [emacs-w3m/emacs-w3m] Feature request: support for w3mman (Issue #119)

Yikai Zhao <[email protected]> Sun, 11 May 2025 19:17:10 -0700
Newsgroups gmane.emacs.w3m
Message-ID <emacs-w3m/emacs-w3m/issues/[email protected]>
----==_mimepart_68215a26ebfaf_dd101813391
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

blahgeek created an issue (emacs-w3m/emacs-w3m#119)

w3m ships with a CGI tool `w3mman2html.cgi` and a helper script `w3mman` to view manpages in w3m. Essentially one can use URL like `file:///path/to/w3mman2html.cgi?man=ls` to view the manpage. It would be great if emacs-w3m can support this use case.

Currently if I visit the above URL using emacs-w3m directly, it would fail to fetch the content, because it will be treated as a local url. Modifying `w3m-url-local-p` to have it return nil can fix the issue.

Furthermore, instead of visiting the above URL explicitly, it would be great if emacs-w3m provide extra support. Sort of like `w3m-search`, maybe provide a function named `w3m-man` that can construct the above URL with input completion etc.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/emacs-w3m/emacs-w3m/issues/119
You are receiving this because you are subscribed to this thread.

Message ID: <emacs-w3m/emacs-w3m/issues/[email protected]>
----==_mimepart_68215a26ebfaf_dd101813391
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit


<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/1308450?s=20&amp;v=4" /><strong>blahgeek</strong> created an issue <a href="https://github.com/emacs-w3m/emacs-w3m/issues/119">(emacs-w3m/emacs-w3m#119)</a></div>
<p dir="auto">w3m ships with a CGI tool <code class="notranslate">w3mman2html.cgi</code> and a helper script <code class="notranslate">w3mman</code> to view manpages in w3m. Essentially one can use URL like <code class="notranslate">file:///path/to/w3mman2html.cgi?man=ls</code> to view the manpage. It would be great if emacs-w3m can support this use case.</p>
<p dir="auto">Currently if I visit the above URL using emacs-w3m directly, it would fail to fetch the content, because it will be treated as a local url. Modifying <code class="notranslate">w3m-url-local-p</code> to have it return nil can fix the issue.</p>
<p dir="auto">Furthermore, instead of visiting the above URL explicitly, it would be great if emacs-w3m provide extra support. Sort of like <code class="notranslate">w3m-search</code>, maybe provide a function named <code class="notranslate">w3m-man</code> that can construct the above URL with input completion etc.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />Reply to this email directly, <a href="https://github.com/emacs-w3m/emacs-w3m/issues/119">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ALIUPNYCCWENUSRVXPUINWL26AACNAVCNFSM6AAAAAB44WE7YKVHI2DSMVQWIX3LMV43ASLTON2WKOZTGA2TKNBUGM4DQNQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ALIUPN72A72RUBNNO3GYOCD26AACNA5CNFSM6AAAAAB44WE7YKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLMHS7VY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-h
 ide: all">Message ID: <span>&lt;emacs-w3m/emacs-w3m/issues/119</span><span>@</span><span>github</span><span>.</span><span>com&gt;</span></span></p>

<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/emacs-w3m/emacs-w3m/issues/119",
"url": "https://github.com/emacs-w3m/emacs-w3m/issues/119",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>

----==_mimepart_68215a26ebfaf_dd101813391--