in reply to workaround to fix perldoc

Hello LanX,

I can confirm that is buggy in 5.24 strawberry..

io@COMP:c>perldoc -V Perldoc v3.27, under perl v5.024001 for MSWin32 io@COMP:c>perldoc -f seek Parametro non valido - -R

It runs ok in 5.28

io@COMP:C>perldoc -V Perldoc v3.2801, under perl v5.028001 for MSWin32 io@COMP:C>perldoc -f seek seek FILEHANDLE,POSITION,WHENCE [...] -- More --

Strange I never noticed: I use it.. but probably I never noticed because I use the ancient Jenda's macro everytime since 2010 ;) dunno if you was refering to this one..

pdoc=perldoc -o html -T -w index $* > %TEMP%\perldoc_temp.html && start %TEMP%\perldoc_temp.html

Windows macros are ridicule things and do you need to reload the file (if you have them in file) everytime to have them applied. You can modify the link to your cmd.exe to use doskey with the above macro specified or a file to read.

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: workaround to fix perldoc -- emacs
by LanX (Saint) on Mar 16, 2019 at 14:43 UTC
    Thanks, it's activestate in my case and I came up with an alias too

    doskey perldoc=perldoc -T $* ^| more

    But I'm still not a fan of more , missing all the options less offers.

    Now trying to create an texinfo output and render the output in emacs as pager

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      > Now trying to create an texinfo output and render the output in emacs as pager

      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