From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: C-h k, C-h f and keyboard macros: Patch. Date: Tue, 11 Feb 2003 15:07:33 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20030211150612.B42B.LEKTU@terra.es> References: <20030211134619.B425.LEKTU@terra.es> <5xisvqvrac.fsf@kfs2.cua.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1044972765 31647 80.91.224.249 (11 Feb 2003 14:12:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 11 Feb 2003 14:12:45 +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 18ib7s-00088x-00 for ; Tue, 11 Feb 2003 15:11:08 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18ibJO-0002LI-00 for ; Tue, 11 Feb 2003 15:23:02 +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 18ib8r-0000mu-03 for emacs-devel@quimby.gnus.org; Tue, 11 Feb 2003 09:12:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ib85-0000bi-00 for emacs-devel@gnu.org; Tue, 11 Feb 2003 09:11:21 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ib7c-0000Wj-00 for emacs-devel@gnu.org; Tue, 11 Feb 2003 09:10:54 -0500 Original-Received: from [62.22.27.141] (helo=mail.peoplecall.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ib4a-0007q6-00 for emacs-devel@gnu.org; Tue, 11 Feb 2003 09:07:44 -0500 Original-Received: from [62.22.27.143] (jbarranquero.ofi.peoplecall.com [62.22.27.143]) by mail.peoplecall.com (8.11.6/8.11.6) with ESMTP id h1BE7Xm12581; Tue, 11 Feb 2003 15:07:33 +0100 Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: <5xisvqvrac.fsf@kfs2.cua.dk> X-Mailer: Becky! ver. 2.05.08 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:11557 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11557 On 11 Feb 2003 15:13:47 +0100, storm@cua.dk (Kim F. Storm) wrote: > you are trying to run (key-binding [remap [home]] nil t) > which correctly reports a "Key sequence contains invalid event" > error (but only when there are any remap entries in one of the > active keymaps -- as there are when you enable cua-mode). Oh, I don't doubt you're right, but, from the point of view of a user, it's weird that asking for a remaping says nil when there aren't remap entries, and error when there are... > The problem I can see is that remap-command expects a SYMBOL as the > argument. All callers in C checks for this, but from Lisp, there is > no such check. I'll add one. Thanks. > So > > > ELISP> (cua-mode 1) > > ELISP> (remap-command [home]) > > should have failed with a "wrong type argument" error. This will make Luc's patch fail for me... > But how was this related to the C-h k macro patch?? 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. /L/e/k/t/u