From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sean McAfee Newsgroups: gmane.emacs.help Subject: Re: switch-buffer-hook to catch the switch-event? Date: Tue, 26 Feb 2013 11:46:57 -0800 Organization: A noiseless patient Spider Message-ID: References: <87ehg3oqjm.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361912514 15574 80.91.229.3 (26 Feb 2013 21:01:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2013 21:01:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 26 22:02:17 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UARfE-0007tO-7a for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Feb 2013 22:02:16 +0100 Original-Received: from localhost ([::1]:32968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UARet-0000K4-CD for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Feb 2013 16:01:55 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 9 Injection-Info: mx05.eternal-september.org; posting-host="9602142ff40e0c8bd8027a6f5e009406"; logging-data="8609"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xLiKSWpWRmb2vDcFvxfEM2fnptVIAiuk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) Cancel-Lock: sha1:Khxt6+tJamPlNmQMDnB8GkzJtLw= sha1:71YjVgoQzimmjDubLYr/sfJ7amA= Original-Xref: usenet.stanford.edu gnu.emacs.help:196989 X-Mailman-Approved-At: Tue, 26 Feb 2013 16:01:43 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89274 Archived-At: 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.