emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pre-command-hook not run for DEL


From: Stefan Monnier
Subject: Re: pre-command-hook not run for DEL
Date: Mon, 26 Feb 2007 14:41:54 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

> !       (progn
> !         ;; Since notionally this is a separate command,
> !         ;; run all the hooks that would be run if it were
> !         ;; executed separately.
> !         (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))

Can you say "yuck"?

BTW, please put this out-of-line (i.e. in its own function).  The code is
sufficiently messy and unreadable as is.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]