Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

[emacs] perl info file

by LanX (Saint)
on Jul 22, 2009 at 02:53 UTC ( [id://782153]=perlquestion: print w/replies, xml ) Need Help??

LanX has asked for the wisdom of the Perl Monks concerning the following question:

I don't know if it's even worth asking...

cperl-mode in emacs supports querying the symbol or function under cursor within gnu-info-files of perl. They are displayed within the internal info-reader. (actually the gnu-info-reader is nothing else than emacs light, just type "info")

You can find these commands in the menu "perl -> perl doc -> Help on ..."

The problem is to only get "info file perl does not exist"

hmm googling delivers an old cpan version of perl 5.6 info file and nothing newer¹.

I'm sure I could try to translate it on my own from POD, but the questions are

  1. does it worth it to use info, if I can run interactively perldoc from within cperl-mode?
  2. If not, why the hack does cperl-mode still support info files for perl, cluttering the menues?

Cheers Rolf

FOOTNOTES: (1) Found this ftp-dir also reflecting the version from 2001! ... just tried to configuere the path to these files within emacs , without success...

Replies are listed 'Best First'.
Re: [emacs] perl info file
by Utilitarian (Vicar) on Jul 22, 2009 at 07:11 UTC
    M-x cperldoc-mode Then enter the keyword you are using, best kept in a separate buffer or of course you could use perldoc on the command-line. Update LanX below is correct, (a while since I used emacs...vi...editor v's OS...flame war)

    M-x cperl-perldoc was what I meant and perl-perldoc-at-point was what you meant

      There is no cperldoc-mode in the web, did you mean perldoc.el ?

      Or do you mean:  cperl-perldoc or cperl-perldoc-at-point¹ ?

      (I occasionally use  M-x woman)

      I suppose the benefit from info-files comes from better highlighting, being able to navigate with hyperlinks and using a search over all documents, I'm afraid cperl-perldoc can't do this.

      Cheers Rolf

      UPDATES/FOOTNOTES:

      (1) They work fine, but like always the keybindings are ridiculously long C-c C-h p or C-c C-h P, thankfully they can be redefined...

      REPLY TO YOUR UPDATE:

      > perl-perldoc-at-point was what you meant

      No, cperl-info-on-command and  cperl-info-on-current-command was what I meant. 8)

      and cperl-perldoc-at-point was what you meant! ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-12 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found