Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by LanX (Sage)
on Jul 26, 2022 at 22:20 UTC ( #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 (Priest) 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? | Other CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2023-06-07 03:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (29 votes). Check out past polls.

    Notices?