unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: sinoohe.mkh@gmail.com, 9729@debbugs.gnu.org
Subject: bug#9729: 24.0.50; can't editing buffers while in another buffer i'm openning files
Date: Sun, 18 Jul 2021 14:02:51 +0200	[thread overview]
Message-ID: <87pmvfu8wk.fsf@gnus.org> (raw)
In-Reply-To: <835yx93r7n.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Jul 2021 18:17:16 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

> AFAIR, the prompt follows to another GUI frame because that frame gets
> the focus-in event.  If I'm right, then it should also work with
> emacsclient frames on terminals that support focus-in events.

Let's see...  I create a daemon and two "-nw" emacsclients, and then:

(setq focus-in-hook '((lambda () (message "focus %s" (selected-frame)))))

Clicking in the two clients does not display the message, so I guess
that these terminals do not support focus-in events?  (This is
Debian/bullseye under Gnome Shell, with "Terminal" as the terminal,
which should be a very common environment.)

> Failing that, how to tell Emacs to switch to another frame, and would
> the way to do that easier than just typing C-g and switching to the
> client frame "by hand"?

I don't know the former, but perhaps the main problem with doing it
manually today is that you first have to find the emacsclient that has
the minibuffer active to hit `C-g' in it.  Hitting `C-g' in any other
terminal does nothing.

Perhaps that is something that could be fixed?  That is, in an
emacsclient context, `C-g' should interrupt the minibuffer action, no
matter what frame it's happening in?

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





  reply	other threads:[~2021-07-18 12:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-11  8:28 bug#9729: 24.0.50; can't editing buffers while in another buffer i'm openning files sinoohe.mkh
2011-10-11 17:50 ` Glenn Morris
2011-10-12  5:43   ` mehran khajavi
2021-07-16 14:36 ` Lars Ingebrigtsen
2021-07-16 15:28   ` Eli Zaretskii
2021-07-17 14:02     ` Lars Ingebrigtsen
2021-07-17 15:17       ` Eli Zaretskii
2021-07-18 12:02         ` Lars Ingebrigtsen [this message]
2021-07-18 12:37           ` Eli Zaretskii
2021-07-18 13:03             ` 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=87pmvfu8wk.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=9729@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=sinoohe.mkh@gmail.com \
    /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).