From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Slass Newsgroups: gmane.emacs.help Subject: Re: How to use describe-key with multi-key sequences? Date: Thu, 14 Nov 2002 18:50:27 GMT Organization: AT&T Broadband Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037320064 4312 80.91.224.249 (15 Nov 2002 00:27:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 15 Nov 2002 00:27:44 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18CUKk-00017O-00 for ; Fri, 15 Nov 2002 01:27:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18CPEp-0006QA-00; Thu, 14 Nov 2002 14:01:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!wn13feed!wn11feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!rwcrnsc54.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 12.228.27.239 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: rwcrnsc54 1037299827 12.228.27.239 (Thu, 14 Nov 2002 18:50:27 GMT) Original-NNTP-Posting-Date: Thu, 14 Nov 2002 18:50:27 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:107051 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3616 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3616 bill 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