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

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

Re: What does 'run' do in cperl-mode?


From: Thierry Volpiatto
Subject: Re: What does 'run' do in cperl-mode?
Date: Sun, 27 Jul 2008 13:56:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

> formido wrote:
>>>> More generally, when confronted by a menu command, how can I easily go
>>>> to its definition?
>>> Type Alt+x describe-key, then pull the menu. Then, you'll get the
>>> command name run by that menu. Then, type Alt+x describe-function.
>>> It'll pop up the online doc of the function with link to the source
>>> code where the function is defined.
>>>
>>>   Xah
>>> ∑http://xahlee.org/
>
>
> You can also
>
>   C-h k
>
> and then pull the menu. (Or `F1 k' which is equivalent.) This will
> directly show then function documentation.
>
>

And to see the function itself you can do

M-x find-function-on-key RET your_key RET

,----[ C-h f find-function-on-key RET ]
| find-function-on-key is an interactive compiled Lisp function in
| `find-func.el'.
| 
| It is bound to C-h K, <f1> K, <help> K.
| 
| (find-function-on-key key)
| 
| Find the function that key invokes.  key is a string.
| Set mark before moving, if the buffer already existed.
| 
| [back]
`----

And bind it to for exemple:

,----
| (global-set-key (kbd "\C-hK") 'find-function-on-key)
`----


-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France




reply via email to

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