From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] frame.c: focus hooks Date: Sat, 11 Jan 2014 11:25:27 +0100 Message-ID: <52D11C17.8040508@gmx.at> References: <528C65F3.9080502@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389435949 6405 80.91.229.3 (11 Jan 2014 10:25:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jan 2014 10:25:49 +0000 (UTC) Cc: Brian Jenkins , emacs-devel , Stefan Monnier , Bozhidar Batsov , rms@gnu.org To: Josh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 11 11:25:54 2014 Return-path: Envelope-to: ged-emacs-devel@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 1W1vlH-0000cf-GW for ged-emacs-devel@m.gmane.org; Sat, 11 Jan 2014 11:25:51 +0100 Original-Received: from localhost ([::1]:60892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1vlH-0007Wp-4D for ged-emacs-devel@m.gmane.org; Sat, 11 Jan 2014 05:25:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1vl6-0007Lt-SX for emacs-devel@gnu.org; Sat, 11 Jan 2014 05:25:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1vkz-0001of-JE for emacs-devel@gnu.org; Sat, 11 Jan 2014 05:25:40 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:59257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1vkz-0001oI-A9 for emacs-devel@gnu.org; Sat, 11 Jan 2014 05:25:33 -0500 Original-Received: from [62.47.53.225] ([62.47.53.225]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0Ma1Mt-1VnxwK229f-00Lmp9 for ; Sat, 11 Jan 2014 11:25:31 +0100 In-Reply-To: X-Provags-ID: V03:K0:OiGReUvdl+hnEznsOKz6ntzyZjG2RmRALMszioUilKIdmRDggeF gjl8olXXt8l/WkxXSLYyrBYbGa8T5iGhas31oQliwoPdiZQW0P3erdsjQ5YXpfEzFWrMvIT 1FxemNO+FCzZMkrZAwDQnlLkG2akgk4zewbB+SMzghgOulapTpWE/a2DZEgsDEjWKpDbqZQ IH4kDxeqgrTs/Zjgalmlg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:168073 Archived-At: >> If the NORECORD argument is non-nil as in `with-selected-window', the >> call is usually an ephemeral one. `buffer-list-update-hook' is called >> only when NORECORD is nil. > > Sorry I failed to follow up on this earlier. Stefan, do I understand > correctly that you'd be amenable to a new `select-window-hook' > provided that it did not come into play for the ephemeral changes of > selected-window that can occur within a single command? If so, I'd > like to take a stab at implementing this (I realize that any such hook > could not be checked in until the feature thaw). Unless anything has > changed since your earlier comment[0], I'd start with your suggestion > of adding the new run_hooks call to Fselect_window after verifying > that all of its current callers can tolerate running arbitrary Elisp. Can you telll me whether/why `buffer-list-update-hook' doesn't work for you? martin