From: Karl Fogel <kfogel@red-bean.com>
To: raman <raman@google.com>
Cc: emacs-devel@gnu.org
Subject: Re: HowTo: Run a hook when a buffer becomes "current"
Date: Fri, 18 Dec 2015 09:56:57 +0800 [thread overview]
Message-ID: <87r3ikiknq.fsf@red-bean.com> (raw)
In-Reply-To: <p911tamjqmy.fsf@google.com> (raman@google.com's message of "Wed, 16 Dec 2015 08:37:57 -0800")
raman <raman@google.com> writes:
>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?
I'm curious what your larger goal is?
(Would want to know that before suggesting `select-buffer-hook' be created :-) ...)
next prev parent reply other threads:[~2015-12-18 1:56 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r3ikiknq.fsf@red-bean.com \
--to=kfogel@red-bean.com \
--cc=emacs-devel@gnu.org \
--cc=raman@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.