From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Is there a plan to record kbd macro as elisp code? Date: Mon, 29 Oct 2007 05:22:01 -0400 Message-ID: References: <87wst8uub5.fsf@kfs-lx.testafd.dk> <87ve8qyk4r.fsf@kfs-lx.testafd.dk> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1193652208 21330 80.91.229.12 (29 Oct 2007 10:03:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2007 10:03:28 +0000 (UTC) Cc: yezonghui@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: storm@cua.dk (Kim F. Storm) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 29 11:03:29 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ImRSu-0007Ec-Mm for ged-emacs-devel@m.gmane.org; Mon, 29 Oct 2007 11:03:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImRSl-0006v2-LC for ged-emacs-devel@m.gmane.org; Mon, 29 Oct 2007 06:03:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImRRo-0006RA-9z for emacs-devel@gnu.org; Mon, 29 Oct 2007 06:02:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImRRm-0006Q2-LI for emacs-devel@gnu.org; Mon, 29 Oct 2007 06:02:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImRRm-0006Ps-Ds for emacs-devel@gnu.org; Mon, 29 Oct 2007 06:02:14 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ImQot-0007kA-Nf for emacs-devel@gnu.org; Mon, 29 Oct 2007 05:22:04 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1ImQor-0000yQ-Ua; Mon, 29 Oct 2007 05:22:01 -0400 In-reply-to: <87ve8qyk4r.fsf@kfs-lx.testafd.dk> (storm@cua.dk) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82063 Archived-At: With CUA mode, the interpretation of C-x and C-c depends on whether the region is active or not. That is not done through pre-command-hook (but setting/extending the region is), but rather through the keymaps which are active at the time. I don't see any easy way to handle that, except the method of recording the commands that are run. Perhaps this is a good reason to use the method of converting by executing the macro. If we do, it remains better to do so by replaying the macro than by making the user type the definition again.