in reply to Re^2: workaround to fix perldoc -- emacs
in thread workaround to fix perldoc
emacs has a built-in man renderer called "woman".
The following elisp function renders the pod as man and displays it (with meta informations) inside emacs. Tested on windows.
This is far from perfect and meant as a start (release often ... yadda).
The PDE project seems to have more elaborated code, not sure how it blends into cperl-modes code.
(defun perldoc-woman (target) "perldoc displayed via woman" (interactive) (let* ( (buffer-name (concat "*perldoc-" target "*")) (perl-cmd (concat "perl C:/Perl_524/bin/perldoc -MPod::Man " targ +et)) ) (switch-to-buffer (get-buffer-create buffer-name)) (erase-buffer) (shell-command perl-cmd 1) (woman-process-buffer) (list buffer-name perl-cmd) ;dbg ) )
Please note that you can use emacsclient --eval to send elisp code to emacs and display inside the terminal (option '-nw') if needed.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|