emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HowTo: Run a hook when a buffer becomes "current"


From: Karl Fogel
Subject: Re: HowTo: Run a hook when a buffer becomes "current"
Date: Fri, 18 Dec 2015 09:56:57 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

raman <address@hidden> 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 :-) 
...)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]