help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED with eev] Re: How to quicker jump to function definition tha


From: Eduardo Ochs
Subject: Re: [SOLVED with eev] Re: How to quicker jump to function definition than C-h k ?
Date: Fri, 16 Dec 2022 17:28:14 -0300

On Fri, 16 Dec 2022 at 11:45, Jean Louis <bugs@gnu.support> wrote:
>
> * Eduardo Ochs <eduardoochs@gmail.com> [2022-12-16 11:14]:
> > ;; Try: (eek "M-h M-k  <right>")
> > ;;      (eek "M-h M-k  <right>   12*<down>")
> > ;;      (eek "M-h M-k  <right>   12*<down> M-e")
> > ;;      (eek "M-h M-k  M-h M-k  ;; find-ekey-links")
> > ;;      (find-efunction 'find-ekey-links)
> > ;;      (find-efunction 'ee-find-eboundkey-links)
> > ;;      (find-definition-for-key (kbd "<right>"))
> >
>  (defun find-definition-for-key (key &rest pos-spec-list)
>  "Based on `find-ekey-links' (`M-h M-k') and `find-efunction'."
>    (interactive "kFunction definition for Key: ")
>    (find-efunction (key-binding key)))
>
>  (defalias 'fdk 'find-definition-for-key)
>
> Much thanks.
>
> (global-set-key (kbd "C-c k") 'find-definition-for-key)
>
> Now I can jump straight to function definition.

Great! Thanks for the feedback! =)

I try to make the functions and features of eev as composable as
possible - in this sense -

  https://lambdaland.org/posts/2022-11-07_unix_philosophy/

and

  (find-efunction 'right-char)

does _a part_ of what happens when we type `M-h k <right>' and we
click on the link that goes to the source code. I remember vaguely
that I struggled a log in the 90s to discover how to go to the source
without clicking on a button...

  Cheers =),
    Eduardo Ochs
    http://angg.twu.net/#eev
    http://angg.twu.net/eepitch.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]