in reply to [emacs] perldoc on windows (update)

Hello LanX,

dunno if useful but UnxUtils has a working man not a nroff although.

To see documentation I use Jenda's macro  pdoc=perldoc -o html -T -w index $* > %TEMP%\perldoc_temp.html && start %TEMP%\perldoc_temp.html Maybe you can spawn an html page and stop.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: [emacs] perldoc on windows
by LanX (Saint) on Mar 23, 2018 at 16:31 UTC
    Thanks, but spawning a browser to show an html-page is already easy, I use it to inspect the POD of the files I'm editing.

    Having the perldoc directly in another Emacs pane without switching the application has many advantages:

    • you can edit the file directly, for instance search and cut and paste code examples from a module
    • I can build keyboard-macros which use this text
    • you get an index inside imenu to navigate it
    • this imenu index is shown in a left pane for navigation when ECB or similar is activated
    • auto-expansion like dabbrev-expand is parsing the man buffer for possible expansions
    • revisiting the man-page is faster if the man-buffer already exists inside emacs
    • the internal window-management sparse me from adjusting the browser and editor window
    • ... (certainly forgot to mention other stuff)

    Additionally does cperl-mode come with more DWIM logic, like cperl-perldoc-at-point which reads the word under the cursor and automatically calls perldoc -f <word> instead of perldoc <word> if it's a function.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Wikisyntax for the Monastery