[Top][All Lists]

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

Re: switch-buffer-hook to catch the switch-event?

From: Thorsten Jolitz
Subject: Re: switch-buffer-hook to catch the switch-event?
Date: Wed, 27 Feb 2013 00:38:41 +0100
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux)

Sean McAfee <> writes:

> Stefan Monnier <> writes:
>>> How can I trigger an action everytime a certain buffer gets the focus
>>> (becomes current-buffer)? Is there no hook for 'switch-buffer' or
>>> something similar?
>> No, indeed, there isn't.
> Hmm!  It seems dired-auto-revert-buffer doesn't do what I always assumed
> it did.

But dired-auto-revert-buffer is a defcustom (variable), I wonder how the
switch-to-buffer event is actually tracked? I searched around a bit in
dired.el, but couldn't find an obvious answer.


reply via email to

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