unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Slass <miknrene@drizzle.com>
Subject: Re: How to use describe-key with multi-key sequences?
Date: Thu, 14 Nov 2002 18:50:27 GMT	[thread overview]
Message-ID: <m3y97w7zh8.fsf@localhost.localdomain> (raw)
In-Reply-To: ar0pc2$s72$1@reader1.panix.com

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

      reply	other threads:[~2002-11-14 18:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-14 18:17 How to use describe-key with multi-key sequences? bill
2002-11-14 18:50 ` Michael Slass [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3y97w7zh8.fsf@localhost.localdomain \
    --to=miknrene@drizzle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).