From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: googleartist@yahoo.com (Artist) Newsgroups: gmane.emacs.help Subject: Re: capturing commands Date: 17 Oct 2002 20:29:08 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035021605 14526 80.91.224.249 (19 Oct 2002 10:00:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 19 Oct 2002 10:00:05 +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 182qOn-0003lX-00 for ; Sat, 19 Oct 2002 12:00:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 182Zlh-0008Rj-00; Fri, 18 Oct 2002 12:14:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: 68.37.117.130 Original-X-Trace: posting.google.com 1034911748 15603 127.0.0.1 (18 Oct 2002 03:29:08 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 18 Oct 2002 03:29:08 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:106160 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:2748 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2748 Michael Slass wrote in message news:... >file. > (> If you want to save the names of all your commands to a file, try > adding this to your .emacs > > (defvar emacs-command-log > (find-file "~/my-emacs-commands")) > > (defun log-last-command () > (save-excursion > (let ((com (prin1-to-string last-command)) > (deactivate-mark nil)) > (set-buffer emacs-command-log) > (goto-char (point-max)) > (insert "\n" com)))) > > (add-hook 'post-command-hook 'log-last-command) This works and really good for simple things Now only if we can build automagic menu out of this stuff, for the mostly access commands ( except self-insert-command and few others for which I would define) and select directly from there, that would be nice. Thanks, Artist