[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pre-command-hook not run for DEL
From: |
Johan Bockgård |
Subject: |
Re: pre-command-hook not run for DEL |
Date: |
Mon, 26 Feb 2007 18:38:45 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) |
address@hidden (Kim F. Storm) writes:
> ! (progn
> ! ;; Since notionally this is a separate command,
> ! ;; run all the hooks that would be run if it were
> ! ;; executed separately.
Note that at this point this-command = last-command = nil.
> ! (run-hooks 'post-command-hook)
> ! (setq last-command this-command)
> ! (setq this-original-command 'delete-region)
> ! (setq this-command (or (command-remapping this-original-command)
> ! this-original-command))
> ! (run-hooks 'pre-command-hook)
> ! (call-interactively this-command))
What's the rationale behind the order POST, PRE, COMMAND?
--
Johan Bockgård
Re: pre-command-hook not run for DEL, Richard Stallman, 2007/02/25