unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Anders Kaseorg <andersk@MIT.EDU>
Cc: 15469@debbugs.gnu.org
Subject: bug#15469: 24.3; emacsclient -c fails to grab focus when asking “Revert buffer from file?”
Date: Sun, 06 Dec 2020 16:27:30 +0100	[thread overview]
Message-ID: <87h7oz9cpp.fsf@gnus.org> (raw)
In-Reply-To: <5244CACB.3030805@mit.edu> (Anders Kaseorg's message of "Thu, 26 Sep 2013 20:01:15 -0400")

Anders Kaseorg <andersk@MIT.EDU> writes:

> When using Emacs in server mode and ‘emacsclient -c’ as my preferred
> editor, new windows opened by emacsclient often fail to grab keyboard
> focus, correlated with Emacs asking minibuffer questions like “Revert
> buffer from file?” as the file is opened (e.g. on .git/COMMIT_EDITMSG
> which is frequently modified both inside and outside Emacs).  I can
> reproduce this reliably as follows:
>
> 1. emacs -Q /tmp/foo
> 2. M-x server-start
> 3. Type some text into the buffer; do not save.
> 4. Click outside the Emacs window to unfocus it.
> 5. Click inside the Emacs window to focus it.
> 6. Click outside the Emacs window to unfocus it.
> 7. Modify /tmp/foo outside Emacs.
> 8. emacsclient -c /tmp/foo
> 9. An _unfocused_ Emacs window pops up to ask “Revert buffer from file
> /tmp/foo?”.

(This bug report unfortunately got no response at the time.)

I can confirm that this bug is still present in Emacs 28, but I have not
tried to debug it.  Anybody with a guess at what's going on?

The new frame that's popped up does have focus, as expected, if the
"revert buffer" query isn't done.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2020-12-06 15:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-27  0:01 bug#15469: 24.3; emacsclient -c fails to grab focus when asking “Revert buffer from file?” Anders Kaseorg
2020-12-06 15:27 ` Lars Ingebrigtsen [this message]
2020-12-06 15:32   ` Eli Zaretskii
2020-12-06 15:44     ` Lars Ingebrigtsen
2020-12-06 16:00       ` Eli Zaretskii
2020-12-06 16:14         ` Lars Ingebrigtsen
2020-12-06 16:51           ` Eli Zaretskii
2020-12-07 13:31             ` Lars Ingebrigtsen
2020-12-23  5:59               ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87h7oz9cpp.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=15469@debbugs.gnu.org \
    --cc=andersk@MIT.EDU \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).