in reply to Reading Perl documentation in Emacs
No not necessarily, you can make perl build the nroff in a buffer and tell woman to render it
Here a minimal solution (I'm still an amateur with elisp)
to try:
(defun perldoc-woman (target) "perldoc displayed via woman" (interactive "sPod: ") (let* ( (buffer-name (concat "*perldoc-" target "*")) (perl-cmd (concat "perldoc -MPod::Man " target)) ) (require 'woman) (switch-to-buffer (get-buffer-create buffer-name)) (erase-buffer) (shell-command perl-cmd 1) (woman-process-buffer) (list buffer-name perl-cmd) ;dbg ) )
Caveat: navigation to other PODs like referenced Modules by clicking/return doesn't work yet, I'm ignorant about a way to hook into woman for that.
Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading Perl documentation in Emacs
by haj (Vicar) on Mar 11, 2023 at 22:03 UTC | |
by LanX (Saint) on Mar 13, 2023 at 14:43 UTC | |
by haj (Vicar) on Mar 13, 2023 at 22:08 UTC |