unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: D. Goel <deego@glue.umd.edu>
Subject: Re: capturing commands
Date: 17 Oct 2002 11:03:56 -0400	[thread overview]
Message-ID: <87it015cpv.fsf@computer.localdomain> (raw)
In-Reply-To: aoko19$hiv$1@solaria.cc.gatech.edu


> i would like to know if there was some way of capturing all commands 
> executed while running emacs whether they be M-x yank, C-x C-s or just 
> hitting the right arrow key

I see from other posts that there seems no built-in way to do this in
general (for both keystrokes and commands).


so i wonder if anyone sees any problem with this sort of approach--


(defvar command-history-my nil)



(add-hook 'post-command-hook
	  '(lambda ()
	     (push this-command command-history-my)))	


this seems to work for me for both the cases... hmm..except i guess
when a command explicitly overrides the value of this-command..

  parent reply	other threads:[~2002-10-17 15:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-16 22:08 capturing commands merik
2002-10-16 22:22 ` Barry Margolin
2002-10-16 23:14   ` Michael Slass
2002-10-17  0:15     ` merik
2002-10-17  1:43       ` Michael Slass
2002-10-18  3:29         ` Artist
2002-10-18  7:40           ` Bernd Wolter
2002-10-18 16:28             ` Clemens Fischer
2002-10-17 15:03 ` D. Goel [this message]
2002-10-18 18:03   ` kgold
2002-10-18 19:31     ` D. Goel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87it015cpv.fsf@computer.localdomain \
    --to=deego@glue.umd.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).