unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* HowTo: Run a hook when a buffer becomes "current"
@ 2015-12-16 16:37 raman
  2015-12-16 21:51 ` Nicolas Richard
                   ` (2 more replies)
  0 siblings, 3 replies; 24+ messages in thread
From: raman @ 2015-12-16 16:37 UTC (permalink / raw)
  To: emacs-devel

I was looking for a way of running a function  when a buffer becomes
"current". I cant find any hooks in Emacs -- the closest is
buffer-list-update-hook -- but that gets called way too often including
when a buffer is buried, is visited transiently from within lisp code
etc.

Is there a hook that I'm missing, or  is advice the only fallback I have?
-- 



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

end of thread, other threads:[~2015-12-22 18:19 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-16 16:37 HowTo: Run a hook when a buffer becomes "current" raman
2015-12-16 21:51 ` Nicolas Richard
2015-12-16 23:04   ` David Kastrup
2015-12-16 23:20     ` T.V Raman
2015-12-17  4:58 ` Richard Stallman
2015-12-17 16:15   ` raman
2015-12-18  4:04     ` Richard Stallman
2015-12-18  4:20       ` raman
2015-12-18  9:30         ` David Kastrup
2015-12-18 16:15           ` raman
2015-12-19  4:37         ` Richard Stallman
2015-12-19 16:43           ` raman
2015-12-19 17:07             ` Dmitry Gutov
2015-12-20  3:07               ` raman
2015-12-22 17:47         ` John Wiegley
2015-12-22 18:19           ` raman
2015-12-18  1:56 ` Karl Fogel
2015-12-18  3:19   ` raman
2015-12-18 12:14     ` Marcin Borkowski
2015-12-18 16:18       ` raman
2015-12-18 17:06         ` David Kastrup
2015-12-18 18:13           ` Marcin Borkowski
2015-12-18 18:28             ` T.V Raman
2015-12-18 20:12               ` Drew Adams

Code repositories for project(s) associated with this public inbox

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

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).