From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: C-h k, C-h f and keyboard macros: Patch. Date: 11 Feb 2003 16:18:00 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5xel6evobb.fsf@kfs2.cua.dk> References: <20030211134619.B425.LEKTU@terra.es> <5xisvqvrac.fsf@kfs2.cua.dk> <20030211150612.B42B.LEKTU@terra.es> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044973117 984 80.91.224.249 (11 Feb 2003 14:18:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 11 Feb 2003 14:18:37 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ibF5-0000Fe-00 for ; Tue, 11 Feb 2003 15:18:35 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18ibQb-0002RA-00 for ; Tue, 11 Feb 2003 15:30:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ibGs-0000Sw-02 for emacs-devel@quimby.gnus.org; Tue, 11 Feb 2003 09:20:26 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ibG3-0008Lh-00 for emacs-devel@gnu.org; Tue, 11 Feb 2003 09:19:35 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ibFp-0008EW-00 for emacs-devel@gnu.org; Tue, 11 Feb 2003 09:19:21 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ibFM-0007vQ-00 for emacs-devel@gnu.org; Tue, 11 Feb 2003 09:18:52 -0500 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id 677B37C012; Tue, 11 Feb 2003 15:18:50 +0100 (CET) Original-To: Juanma Barranquero In-Reply-To: <20030211150612.B42B.LEKTU@terra.es> Original-Lines: 56 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-cc: Luc Teirlinck X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11558 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11558 Juanma Barranquero writes: > After Luc's (or your's) patch, with cua-mode enabled, if I do: > > [f3] "pepe" home [f4] ; define macro that inserts "pepe" and goes to > ; the beginning of line > C-x C-k b M-z ; assign it to M-z > C-h k M-z ; see it > > I get "Key sequence contains invalid event", not the C-h k output. I see it now, thanks! Here is a version of the patch which fixes this problem: Index: help-fns.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/help-fns.el,v retrieving revision 1.28 diff -c -r1.28 help-fns.el *** help-fns.el 4 Feb 2003 11:23:06 -0000 1.28 --- help-fns.el 11 Feb 2003 14:16:50 -0000 *************** *** 291,297 **** (princ ".") (terpri) (when (commandp function) ! (let* ((remapped (remap-command function)) (keys (where-is-internal (or remapped function) overriding-local-map nil nil))) (when remapped --- 291,297 ---- (princ ".") (terpri) (when (commandp function) ! (let* ((remapped (and (symbolp function) (remap-command function))) (keys (where-is-internal (or remapped function) overriding-local-map nil nil))) (when remapped *************** *** 323,328 **** --- 323,331 ---- function))))) usage) (car usage)) + ((or (stringp def) + (vectorp def)) + (format "\nMacro: %s" (format-kbd-macro def))) (t "[Missing arglist. Please make a bug report.]"))) (terpri)) (let ((obsolete (and -- Kim F. Storm http://www.cua.dk