unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Buffer switching hook
@ 2013-04-27 12:50 Miguel Guedes
  2013-04-27 13:26 ` Pascal J. Bourguignon
  0 siblings, 1 reply; 3+ messages in thread
From: Miguel Guedes @ 2013-04-27 12:50 UTC (permalink / raw)
  To: help-gnu-emacs

Hello List,

I am writing a minor mode and as part of the requirements I need the 
minor-mode to be aware of when the user switches to a different buffer; 
something akin to `find-file-hook' but for buffers.

What is the best strategy to implement such a mechanism? I haven't really 
looked into `pre-command-hook' as I'd rather just use a hook, if one is 
available.

Miguel


PS: I've only just started learning (e)LISP so apologies if this is a 
straightforward question.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-29  8:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-27 12:50 Buffer switching hook Miguel Guedes
2013-04-27 13:26 ` Pascal J. Bourguignon
2013-04-29  8:48   ` Miguel Guedes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).