From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] frame.c: focus hooks Date: Fri, 10 Jan 2014 12:31:28 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389375112 14530 80.91.229.3 (10 Jan 2014 17:31:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jan 2014 17:31:52 +0000 (UTC) Cc: Brian Jenkins , rms@gnu.org, Bozhidar Batsov , emacs-devel To: Josh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 10 18:31:57 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 1W1fvw-0002si-EQ for ged-emacs-devel@m.gmane.org; Fri, 10 Jan 2014 18:31:48 +0100 Original-Received: from localhost ([::1]:58080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1fvv-0007f6-NC for ged-emacs-devel@m.gmane.org; Fri, 10 Jan 2014 12:31:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1fvl-0007VH-Lg for emacs-devel@gnu.org; Fri, 10 Jan 2014 12:31:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1fve-0004oL-C3 for emacs-devel@gnu.org; Fri, 10 Jan 2014 12:31:37 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:50849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1fve-0004oG-7w; Fri, 10 Jan 2014 12:31:30 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxKG9/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFFFxKG9/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="44658878" Original-Received: from 69-196-161-189.dsl.teksavvy.com (HELO pastel.home) ([69.196.161.189]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 10 Jan 2014 12:31:29 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 0EC3F6045A; Fri, 10 Jan 2014 12:31:29 -0500 (EST) In-Reply-To: (josh@foxtail.org's message of "Tue, 19 Nov 2013 19:36:48 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:168025 Archived-At: > Such a hook would be an improvement but not ideal, since some > selected-window changes of interest may not result from a user > command, e.g. those due to a non-nil compilation-auto-jump-to-first-error. Agreed. And I think this is a fairly general problem. We should provide a new hook that is run whenever we begin waiting for a command. The new pre-redisplay-function provides something pretty close. Maybe you could try using this instead. Stefan