Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Which IDE's show tooltips for Perl builtins?

by LanX (Saint)
on Jul 26, 2022 at 22:20 UTC ( [id://11145771]=note: print w/replies, xml ) Need Help??


in reply to Re: Which IDE's show tooltips for Perl builtins?
in thread Which IDE's show tooltips for Perl builtins?

> in your example SHORT EXPLANATION IN ONE-LINE, in the minibuffer (as Eldoc usually does).

This could probably be of interest for you, it redirects the help message from the minibuffer to a tooltip at point.

Probably not the best lisp style, I hacked it about ten years ago, but it never failed me.

It's basically monkey-patching cperl-describe-perl-symbol with an around-function to show the tooltip at the point of the cursor.

I think pos-tip.el needs to be installed first.

(require 'pos-tip) (require 'cl) (add-hook 'cperl-mode-hook (lambda () ;; (cperl-toggle-autohelp) (setq cperl-lazy-help-time 2) (defadvice cperl-describe-perl-symbol (around cperl-describe-p +erl-symbol-tooltip activate) "redirect message to tooltip" (flet ((message (fmt &rest args) (pos-tip-show (apply 'format fmt args)))) ad-do-it)) ))

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

Replies are listed 'Best First'.
Re^3: Which IDE's show tooltips for Perl builtins?
by haj (Vicar) on Jul 26, 2022 at 23:27 UTC

    Ah, I was wondering about that patch. Thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-16 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found