From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9729: 24.0.50; can't editing buffers while in another buffer i'm openning files Date: Sun, 18 Jul 2021 15:37:40 +0300 Message-ID: <83mtqj7q7f.fsf@gnu.org> References: <87y5wsorsm.fsf@myhost.i-did-not-set--mail-host-address--so-tickle-me> <87mtqm72c7.fsf@gnus.org> <83v95a46sc.fsf@gnu.org> <875yx96nsf.fsf@gnus.org> <835yx93r7n.fsf@gnu.org> <87pmvfu8wk.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11108"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sinoohe.mkh@gmail.com, 9729@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 18 14:38:16 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m563k-0002jP-Jb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Jul 2021 14:38:16 +0200 Original-Received: from localhost ([::1]:53256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m563i-0002Dr-Rf for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Jul 2021 08:38:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m563W-0002Di-3C for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2021 08:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43833) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m563V-0000g9-SJ for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2021 08:38:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m563V-0005Qw-Mv for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2021 08:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jul 2021 12:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9729 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 9729-submit@debbugs.gnu.org id=B9729.162661187820877 (code B ref 9729); Sun, 18 Jul 2021 12:38:01 +0000 Original-Received: (at 9729) by debbugs.gnu.org; 18 Jul 2021 12:37:58 +0000 Original-Received: from localhost ([127.0.0.1]:55379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m563R-0005Qe-LQ for submit@debbugs.gnu.org; Sun, 18 Jul 2021 08:37:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m563P-0005QR-DU for 9729@debbugs.gnu.org; Sun, 18 Jul 2021 08:37:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43406) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m563K-0000dV-1h; Sun, 18 Jul 2021 08:37:50 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1657 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m563J-0000vq-Ln; Sun, 18 Jul 2021 08:37:49 -0400 In-Reply-To: <87pmvfu8wk.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 18 Jul 2021 14:02:51 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210175 Archived-At: > From: Lars Ingebrigtsen > Cc: sinoohe.mkh@gmail.com, 9729@debbugs.gnu.org > Date: Sun, 18 Jul 2021 14:02:51 +0200 > > Eli Zaretskii 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.) xterm does. I don't know about Terminal. > > 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? How can this work if we don't read input from the frame where you type C-g? But I don't consider myself an expert on this stuff, so maybe there is a way.