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: Fri, 09 Aug 2013 12:56:06 -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 1376067430 15400 80.91.229.3 (9 Aug 2013 16:57:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2013 16:57:10 +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 18:57:12 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 1V7pzy-00016y-Te for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Aug 2013 18:57:11 +0200 Original-Received: from localhost ([::1]:49916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7pzy-0006EE-J6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Aug 2013 12:57:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7pzs-000698-OP for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 12:57:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7pzr-0002ud-EI for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 12:57:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7pzr-0002uZ-Am for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 12:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V7pzq-0002Vq-14 for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 12:57: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 16:57:01 +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.13760673719553 (code B ref 15029); Fri, 09 Aug 2013 16:57:01 +0000 Original-Received: (at 15029) by debbugs.gnu.org; 9 Aug 2013 16:56:11 +0000 Original-Received: from localhost ([127.0.0.1]:49998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7pyz-0002Tx-Qk for submit@debbugs.gnu.org; Fri, 09 Aug 2013 12:56:10 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:41978 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7pyw-0002Tg-OK for 15029@debbugs.gnu.org; Fri, 09 Aug 2013 12:56:07 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1V7pyw-0003GF-5i; Fri, 09 Aug 2013 12:56:06 -0400 In-reply-to: (message from Stefan Monnier on Fri, 09 Aug 2013 09:54:56 -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:77184 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. When I move the mouse from one frame to another, it generates a `switch-frame' event, which is run by the perfectly normal command handle-switch-frame, including running pre/post-command-hook. I just made two frames and verified that moving the mouse from one frame into the other did not switch frames. The selected frame remains selected even when the mouse is in the other. You have to click to switch frames. Notwithstanding that, it is true that use of post-command-hook can cause very confusing and painful behavior of you make a mistake. I think you've gone down a tangent by trying to show that some features in Emacs can be dangerous. So what? Each additional one is still asking for trouble. Especially when they create new kinds of interactions that didn't exist before. These interactions can combine to be even worse than a single one. Currently used to turn off the blink-cursor timer. That seems incorrect. As long as the frame is selected to receive X input events, its cursor should blink. Other users want it to (auto-)save a file when its buffer/frame loses focus. Yet others want to change the frame's background color to indicate that it has focus. They don't seem terribly important. If the solution had no downside, I'd say, "Why not?" But this one has a downside. My judgment about what is likely to cause trouble in Emacs is based on many years of experience maintaining versions of Emacs. It is not mathematically proven, but you shouldn't be so quick to dismiss it. -- 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.