Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

[emacs] perl info file

by LanX (Saint)
on Jul 22, 2009 at 02:53 UTC ( #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 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


      (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...


      > 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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2023-12-05 19:45 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (27 votes). Check out past polls.