all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* post-command-hook to slow?
@ 2014-06-05 14:23 Thorsten Jolitz
  2014-06-06  2:27 ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Thorsten Jolitz @ 2014-06-05 14:23 UTC (permalink / raw)
  To: help-gnu-emacs


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





^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <mailman.3007.1401978250.1147.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2014-06-06 18:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-05 14:23 post-command-hook to slow? Thorsten Jolitz
2014-06-06  2:27 ` Stefan Monnier
     [not found] <mailman.3007.1401978250.1147.help-gnu-emacs@gnu.org>
2014-06-05 17:29 ` Pascal J. Bourguignon
2014-06-05 18:11   ` Thorsten Jolitz
     [not found]   ` <mailman.3038.1401991947.1147.help-gnu-emacs@gnu.org>
2014-06-05 20:19     ` Pascal J. Bourguignon
2014-06-05 21:09       ` Thorsten Jolitz
     [not found]       ` <mailman.3061.1402002590.1147.help-gnu-emacs@gnu.org>
2014-06-05 23:05         ` Pascal J. Bourguignon
2014-06-06 17:37           ` Thorsten Jolitz
     [not found]           ` <mailman.3167.1402076299.1147.help-gnu-emacs@gnu.org>
2014-06-06 18:47             ` Pascal J. Bourguignon

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.