From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt McClure Newsgroups: gmane.emacs.help Subject: hook that runs after changing to a new buffer Date: Sun, 5 Aug 2012 21:01:33 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1344214908 21963 80.91.229.3 (6 Aug 2012 01:01:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2012 01:01:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 06 03:01:45 2012 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 1SyBhY-0004bA-Td for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Aug 2012 03:01:45 +0200 Original-Received: from localhost ([::1]:38778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyBhY-0003bZ-3b for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Aug 2012 21:01:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyBhS-0003bQ-7y for help-gnu-emacs@gnu.org; Sun, 05 Aug 2012 21:01:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyBhO-0005jz-Qw for help-gnu-emacs@gnu.org; Sun, 05 Aug 2012 21:01:38 -0400 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:42176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyBhO-0005jL-LU for help-gnu-emacs@gnu.org; Sun, 05 Aug 2012 21:01:34 -0400 Original-Received: by yenr5 with SMTP id r5so2258653yen.0 for ; Sun, 05 Aug 2012 18:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=rfUEfVxghSJZ4Nha3O1xNZIIfPm0VH7h/d4UUQuxchQ=; b=g8jgyHfavfKxSz5yXjmYqNMCJaSymDOQm/pUWzXzOGnVlxGc9AWrQ1uaXqh9ZNA1L6 FnBlz9mB5zjfbDq/+JJTchgmhsQ7rz1p33XRnxEe0RSsqNeA4PvBNr4/h6KXJKxygVWt XGSKfXKjd/WNJ2raXJxdaKv8VgfhfGH1C7qfyUpDHxbN3DjI5G/X544TONjsg5d+h94M gD6hSebLsPVLwhXLic8bQwdsySJOmO0Ysve4fqv1OLIkDHagmrklHVBFE+II85P+z3d4 aivDkPifNcAFOUSAeP7mXM0XVITe8IWsSw/36B154Uro73PaM3xsb7mvaT8iawzhMCCK AjIQ== Original-Received: by 10.50.100.134 with SMTP id ey6mr4093822igb.4.1344214893785; Sun, 05 Aug 2012 18:01:33 -0700 (PDT) Original-Received: by 10.50.100.231 with HTTP; Sun, 5 Aug 2012 18:01:33 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.169 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:86215 Archived-At: Is there a hook that runs after the point moves to a new buffer, on all actions that might change the current buffer? I've found `post-command-hook`, which is a bit more aggressive than I'd like to use, and `buffer-list-update-hook`, which seems not to run in every case I want to catch, and might not guarantee that the new buffer is current at the time it runs. -- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure