From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16479: 24.3.50; daemon freeze with tty menus Date: Sat, 25 Jan 2014 11:59:41 +0200 Message-ID: <83a9ekcrg2.fsf@gnu.org> References: <87y52fgd5g.fsf@holos.localdomain> <83ha93kk5m.fsf@gnu.org> <87eh4652o0.fsf@holos.localdomain> <83fvomlv7w.fsf@gnu.org> <83eh46lsy5.fsf@gnu.org> <838uueljdv.fsf@gnu.org> <834n52l9qh.fsf@gnu.org> <8361peilxe.fsf@gnu.org> <83y52ah2f9.fsf@gnu.org> <83vbxegxps.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1390644010 20876 80.91.229.3 (25 Jan 2014 10:00:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jan 2014 10:00:10 +0000 (UTC) Cc: mvoteiza@udel.edu, 16479@debbugs.gnu.org To: monnier@iro.umontreal.ca Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 25 11:00:16 2014 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 1W702B-0001dF-NJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jan 2014 11:00:15 +0100 Original-Received: from localhost ([::1]:50531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W702B-0004l2-3V for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jan 2014 05:00:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7024-0004kd-7I for bug-gnu-emacs@gnu.org; Sat, 25 Jan 2014 05:00:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W701z-00055F-Hg for bug-gnu-emacs@gnu.org; Sat, 25 Jan 2014 05:00:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W701z-00054Y-FF for bug-gnu-emacs@gnu.org; Sat, 25 Jan 2014 05:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W701y-0002G0-Ub for bug-gnu-emacs@gnu.org; Sat, 25 Jan 2014 05:00:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Jan 2014 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16479 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16479-submit@debbugs.gnu.org id=B16479.13906440018642 (code B ref 16479); Sat, 25 Jan 2014 10:00:02 +0000 Original-Received: (at 16479) by debbugs.gnu.org; 25 Jan 2014 10:00:01 +0000 Original-Received: from localhost ([127.0.0.1]:35087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W701v-0002FC-Ri for submit@debbugs.gnu.org; Sat, 25 Jan 2014 05:00:00 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:62979) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W701s-0002Ez-JN for 16479@debbugs.gnu.org; Sat, 25 Jan 2014 04:59:57 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MZY00100B4XQS00@a-mtaout20.012.net.il> for 16479@debbugs.gnu.org; Sat, 25 Jan 2014 11:59:54 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MZY001VWBRUTS00@a-mtaout20.012.net.il>; Sat, 25 Jan 2014 11:59:54 +0200 (IST) In-reply-to: <83vbxegxps.fsf@gnu.org> X-012-Sender: halo1@inter.net.il 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:83974 Archived-At: > Date: Mon, 20 Jan 2014 23:17:03 +0200 > From: Eli Zaretskii > Cc: mvoteiza@udel.edu, 16479@debbugs.gnu.org > > > From: Stefan Monnier > > Cc: mvoteiza@udel.edu, 16479@debbugs.gnu.org > > Date: Mon, 20 Jan 2014 15:28:42 -0500 > > > > >> Whatever we do, we should do it whether or not a tty menu is displayed. > > >> Switching frame inside a process filter is nasty but allowed. So: > > >> - server.el should probably only change the selected frame temporarily and > > >> revert it before returning from the process filter. > > > But I think server.el does this on purpose: if it didn't switch to the > > > new frame, you couldn't start typing into it after invoking > > > emacsclient, even when there's no menu displayed. Wouldn't that be > > > confusing? > > > > I'm not sure it's the case. The reason is that you're talking about > > a change of focus whereas the code changed the selected frame. The two > > are related but the relation is very murky. > > > > > Does the fact that you type into one frame and get response in another > > > count as "a bit strangely"? > > > > Yes. > > OK, then I know what to do. Thanks. Or maybe not. I did what I thought was needed (see bzr r116153), but there's still a problem with restoring the original value of overriding-terminal-local-map after popping down the menu. E.g., in this scenario: emacs -Q -nw M-x server-start F10 then in another terminal: emacsclient -t This pops down the menu, but the value of overriding-terminal-local-map in the original frame is not restored, so, for example, any cursor motion command signals an error because it tries to invoke tty-menu commands. What am I not doing correctly here? TIA.