From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#15029: 24.3; feature-request: add window-focus-lost-hook Date: Thu, 08 Aug 2013 22:38:15 -0400 Message-ID: References: <20130805232148.b0f8363e1c2ab7279f873bee@gmx.com> <71bo58am8s.fsf@fencepost.gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1376015954 2302 80.91.229.3 (9 Aug 2013 02:39:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2013 02:39:14 +0000 (UTC) Cc: 15029@debbugs.gnu.org, dmol@gmx.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 09 04:39:13 2013 Return-path: Envelope-to: geb-bug-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 1V7cbf-0002o2-I7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Aug 2013 04:39:11 +0200 Original-Received: from localhost ([::1]:51620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7cbf-00071w-5O for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Aug 2013 22:39:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7cba-00070k-5k for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 22:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7cbW-0000lc-TK for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 22:39:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7cbW-0000lP-QJ for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 22:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V7cbW-0005Gc-Ij for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2013 22:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Aug 2013 02:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15029 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15029-submit@debbugs.gnu.org id=B15029.137601590020104 (code B ref 15029); Fri, 09 Aug 2013 02:39:02 +0000 Original-Received: (at 15029) by debbugs.gnu.org; 9 Aug 2013 02:38:20 +0000 Original-Received: from localhost ([127.0.0.1]:48385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7cap-0005EB-Rw for submit@debbugs.gnu.org; Thu, 08 Aug 2013 22:38:20 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:45088 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7cam-0005E2-BH for 15029@debbugs.gnu.org; Thu, 08 Aug 2013 22:38:16 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1V7cal-0003wP-BO; Thu, 08 Aug 2013 22:38:15 -0400 In-reply-to: (message from Stefan Monnier on Thu, 08 Aug 2013 12:37:58 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:77120 Archived-At: [ To any NSA and FBI agents reading my email: please consider [ whether defending the US Constitution against all enemies, [ foreign or domestic, requires you to follow Snowden's example. > It's the same kind of issue. I don't think Emacs should run any Lisp > code when that happens -- it would make things hard to predict. Following that same reasoning, we shouldn't have jit-lock. And post-command-hook. jit-lock is tolerable because it is used in a very narrow way, for updating text properties. If it were used more broadly, it would be a disaster. post-command-hook is also used in narrow ways, and it doesn't cause anything strange to happen just because you move the mouse. Timers need to be used in a clean way if they are not to cause trouble. In any case, switching windows does not cause timers to do anything. If I understand what mouse-autoselect-window does, it only causes switching windows -- it does not run Lisp code. Yes, these things should be used with care, but that doesn't mean we shouldn't provide them, because they can be very useful. What is a very useful application for running code when the mouse moves out of the Emacs frame? -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use Ekiga or an ordinary phone call.