help-gnu-emacs
[Top][All Lists]
Advanced

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

post-command-hook to slow?


From: Thorsten Jolitz
Subject: post-command-hook to slow?
Date: Thu, 05 Jun 2014 16:23:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hi List, 

I call a command to be executed in a temporary buffer, and that command
runs a post-command-hook. Here is some pseudocode:

,----------------------------------
| open-temp-buffer
| set-buffer-mode
| call-interactively cmd
| copy-content-and-exit-temp-buffer
`----------------------------------

Unfortunately the post-command-hook of cmd is executed only after the
temp buffer is already exited (i.e. in the original buffer in a
different/wrong major-mode with the needed markers lost).

Is that to be expected? Will `copy-content-and-exit-temp-buffer' be
executed before the post-command-hook of cmd has a chance to be
executed?

-- 
cheers,
Thorsten





reply via email to

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