all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Help needed with post-command-hook
@ 2014-09-14  9:37 Thorsten Jolitz
  2014-09-14 14:17 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Thorsten Jolitz @ 2014-09-14  9:37 UTC (permalink / raw)
  To: help-gnu-emacs


Hi List, 

I have three questions wrt `post-command-hook':

 - Is `post-command-hook' triggered when an interactive function is
   called non-interactively?

 - If not, what would be the equivalent hook for `funcall`, i.e. the
   Emacs 'post-funcall-hook'? I could not find one. Many functions
   change or insert, but some just move point, so using a post change or
   post insert hook would not cover all cases (or would moving point
   trigger a post change hook?).

 - When is `post-command-hook' triggered? When I (e.g.)
   `call-interactively' an Org command in a temporary Org-mode buffer,
   and a function that exits that temp-buffer was added to the local
   `post-command-hook', I would expect that once the Org command is
   done that 'exit' function is called. But instead the temp buffer
   still sits there, and its my next user action (e.g. typing C-n) that
   then triggers the hook and calls the 'exit' function. So it seems
   `post-command-hook' is triggered when another command is called, not
   when current command returns control? 

-- 
cheers,
Thorsten





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

end of thread, other threads:[~2014-09-15 12:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-14  9:37 Help needed with post-command-hook Thorsten Jolitz
2014-09-14 14:17 ` Stefan Monnier
2014-09-15  9:02   ` Thorsten Jolitz
2014-09-15 12:50     ` Phillip Lord
     [not found]   ` <mailman.8879.1410771787.1147.help-gnu-emacs@gnu.org>
2014-09-15 11:16     ` Joost Kremers
2014-09-15 12:41       ` Thorsten Jolitz
     [not found] <mailman.8853.1410687492.1147.help-gnu-emacs@gnu.org>
2014-09-14 16:32 ` Barry Margolin
2014-09-15  9:03   ` Thorsten Jolitz

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.