all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 15029@debbugs.gnu.org, dmol@gmx.com
Subject: bug#15029: 24.3; feature-request: add window-focus-lost-hook
Date: Fri, 09 Aug 2013 12:56:06 -0400	[thread overview]
Message-ID: <E1V7pyw-0003GF-5i@fencepost.gnu.org> (raw)
In-Reply-To: <jwveha3vuo5.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Fri, 09 Aug 2013 09:54:56 -0400)

        [ 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.






  reply	other threads:[~2013-08-09 16:56 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-05 20:21 bug#15029: 24.3; feature-request: add window-focus-lost-hook Ivan Baidakou
2013-08-06 23:57 ` Glenn Morris
2013-08-07 19:21   ` Richard Stallman
2013-08-08  3:34     ` Glenn Morris
2013-08-08 15:46       ` Richard Stallman
2013-08-08 16:15         ` Glenn Morris
2013-08-09  2:38           ` Richard Stallman
2013-08-09 16:05             ` Glenn Morris
2013-08-09 23:23               ` Richard Stallman
2013-11-17 19:29               ` Glenn Morris
2013-11-19  2:24                 ` Glenn Morris
2013-08-08 16:37         ` Stefan Monnier
2013-08-09  2:38           ` Richard Stallman
2013-08-09  7:42             ` Eli Zaretskii
2013-08-09 13:54             ` Stefan Monnier
2013-08-09 16:56               ` Richard Stallman [this message]
2013-08-09 17:43                 ` Jan Djärv
2013-08-09 23:24                   ` Richard Stallman
2013-08-09 18:40                 ` Stefan Monnier
2013-08-08 16:56         ` Eli Zaretskii
2013-08-09  2:38           ` Richard Stallman
2013-08-09  7:37             ` Eli Zaretskii
2013-08-09 16:54               ` Richard Stallman
2013-08-09 18:20                 ` Eli Zaretskii
2013-08-09 23:24                   ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1V7pyw-0003GF-5i@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=15029@debbugs.gnu.org \
    --cc=dmol@gmx.com \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.