Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: [emacs] perldoc on windows

by Discipulus (Canon)
on Mar 23, 2018 at 16:13 UTC ( [id://1211615]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1211615]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found