From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse) Newsgroups: gmane.emacs.help Subject: Re: Hooks for new buffers? Date: Fri, 05 Apr 2013 06:03:38 +0000 Message-ID: <87r4ipfr9h.fsf@riseup.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365141824 5320 80.91.229.3 (5 Apr 2013 06:03:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Apr 2013 06:03:44 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Fri Apr 05 08:04:09 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 1UNzkv-0004qd-7N for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Apr 2013 08:04:09 +0200 Original-Received: from localhost ([::1]:43247 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNzkW-0005jP-87 for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Apr 2013 02:03:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNzkG-0005j5-7e for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 05 Apr 2013 02:03:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNzkA-0004Cw-7p for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 05 Apr 2013 02:03:28 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNzkA-0004Ck-1K for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 05 Apr 2013 02:03:22 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UNzkV-0004St-Ox for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 05 Apr 2013 08:03:43 +0200 Original-Received: from bouazizi.torservers.net ([74.120.13.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Apr 2013 08:03:43 +0200 Original-Received: from wgreenhouse by bouazizi.torservers.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Apr 2013 08:03:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet-dbVV3NMTNubNLxjTenLetw@public.gmane.org X-Gmane-NNTP-Posting-Host: bouazizi.torservers.net X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:9F1CmRFkxV4+KyApSu9qM1m32ck= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:90003 Archived-At: Steven Degutis writes: > The easiest way to solve this is to find a hook that's called when > new buffers are created, even if that's not its official purpose. > Apparently after-change-major-mode-hook isn't enough, presumably > because these never changed major modes. So is there such a hook? > > And if not, is there at least some hook that happens whenever new > windows are opened? > > -Steven `window-configuration-change-hook', maybe? -- BOFH excuse #39: terrorist activities