* How to use describe-key with multi-key sequences?
@ 2002-11-14 18:17 bill
2002-11-14 18:50 ` Michael Slass
0 siblings, 1 reply; 2+ messages in thread
From: bill @ 2002-11-14 18:17 UTC (permalink / raw)
How can one describe-key with "compound commands" such as "C-u f" in
mail-mode? If I try C-h k C-u f, I get the description of C-u, not
the description of C-u f...
Thanks in advance!
bill
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to use describe-key with multi-key sequences?
2002-11-14 18:17 How to use describe-key with multi-key sequences? bill
@ 2002-11-14 18:50 ` Michael Slass
0 siblings, 0 replies; 2+ messages in thread
From: Michael Slass @ 2002-11-14 18:50 UTC (permalink / raw)
bill <bill_knight2@yahoo.com> writes:
>How can one describe-key with "compound commands" such as "C-u f" in
>mail-mode? If I try C-h k C-u f, I get the description of C-u, not
>the description of C-u f...
>
>Thanks in advance!
>
>bill
>
C-u runs universal-prefix-arg. What you want to do is to get the
description of the function run by the key "f", and read that to see
how the behavior is modified by a prefix arg. For example to see what
happens with C-u M-; ...
C-h k M-;
,----
| M-; runs the command comment-dwim
| which is an interactive compiled Lisp function in `newcomment'.
| (comment-dwim ARG)
|
| Call the comment command you want (Do What I Mean).
| If the region is active and `transient-mark-mode' is on, call
| `comment-region' (unless it only consists of comments, in which
| case it calls `uncomment-region').
| Else, if the current line is empty, insert a comment and indent it.
| Else if a prefix ARG is specified, call `comment-kill'.
| Else, call `comment-indent'.
`----
This tells me that M-; runs comment-dwim (do what i mean). The second
line up from the bottom says that with a prefix arg (meaning that I
hit C-u first), it will run comment-kill instead.
--
Mike Slass
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-14 18:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-14 18:17 How to use describe-key with multi-key sequences? bill
2002-11-14 18:50 ` Michael Slass
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).