[emacs-w3m:13577] [emacs-w3m/emacs-w3m] Improve perldoc with customizable variable, and saner default. (#72)
Spenser Truex <[email protected]>
| Newsgroups | gmane.emacs.w3m |
|---|---|
| Message-ID | <emacs-w3m/emacs-w3m/pull/[email protected]> |
Currently the `w3m-perldoc` command has the base URL `about://perldoc/` hardcoded into the function call. I added a `defcustom`, changed the default to `https://perldoc.perl.org/`, and added a function that attempts to cleanup user input in a way more likely to match a page.
Try running:
`(w3m-perldoc "Pod Checker")`
which will send you off to https://perldoc.perl.org/Pod/Checker.html#NAME
TODO:
- Improve the cleanup to deal with other things (like case), and query the user when the input lead to a 404 page.
You can view, comment on, or merge this pull request online at:
https://github.com/emacs-w3m/emacs-w3m/pull/72
-- Commit Summary --
* Improve perldoc with customizable variable, and saner default.
-- File Changes --
M w3m-perldoc.el (25)
M w3m-util.el (6)
-- Patch Links --
https://github.com/emacs-w3m/emacs-w3m/pull/72.patch
https://github.com/emacs-w3m/emacs-w3m/pull/72.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/emacs-w3m/emacs-w3m/pull/72