From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#17857: 24.3; terminal issue on darwin/emacsclient Date: Tue, 01 Jul 2014 11:48:36 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1404229774 16999 80.91.229.3 (1 Jul 2014 15:49:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2014 15:49:34 +0000 (UTC) Cc: 17857@debbugs.gnu.org To: "Guillaume J. Charmes" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 01 17:49:23 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 1X20J8-0003Mw-Ug for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Jul 2014 17:49:23 +0200 Original-Received: from localhost ([::1]:48508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X20J8-0000EO-II for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Jul 2014 11:49:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X20Ix-0000D1-G8 for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 11:49:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X20Ip-0000Nj-1I for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 11:49:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X20Io-0000Nf-Ul for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 11:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X20Io-0008Em-II for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 11:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Jul 2014 15:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17857 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17857-submit@debbugs.gnu.org id=B17857.140422973331649 (code B ref 17857); Tue, 01 Jul 2014 15:49:02 +0000 Original-Received: (at 17857) by debbugs.gnu.org; 1 Jul 2014 15:48:53 +0000 Original-Received: from localhost ([127.0.0.1]:39509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X20Ia-0008EK-SG for submit@debbugs.gnu.org; Tue, 01 Jul 2014 11:48:53 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:26461) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X20IU-0008E0-5a for 17857@debbugs.gnu.org; Tue, 01 Jul 2014 11:48:46 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABSB4MGg0rAPYEXF3SCJQEBAQECAVYjBQsLNBIUGA0kiAQI0hkXjjJIB4Q4BKkZgWqDTCGBLCM X-IPAS-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABSB4MGg0rAPYEXF3SCJQEBAQECAVYjBQsLNBIUGA0kiAQI0hkXjjJIB4Q4BKkZgWqDTCGBLCM X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="71021517" Original-Received: from 75-119-224-253.dsl.teksavvy.com (HELO ceviche.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Jul 2014 11:48:36 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 0E5A5660FA; Tue, 1 Jul 2014 11:48:36 -0400 (EDT) In-Reply-To: (Guillaume J. Charmes's message of "Thu, 26 Jun 2014 12:28:52 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) 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:91051 Archived-At: > Simple case: Start emacs server, start a client, enable > xterm-mouse-mode, ctrl-z, open an other client, At this point, xterm-mouse-mode should work already (it's enabled globally). > enable xterm-mouse-mode, If you mean `M-x xterm-mouse-mode' this should be trying to *disable* xterm-mouse-mode. > emacs will tell you that the terminal is suspended and will refuse to > enable it. Right, that's because it tries to disable it in all terminals. Indeed, we have a problem here. The disabling (or enabling for that matter) should not burp on suspended terminals. > (xterm-mouse-mode t) in .emacs will fail with emacsclient, as a Good point, we should make it work. > (add-hook 'after-make-frame-functions ' > (lambda (frame) (unless window-system (xterm-mouse-mode)))) > which works fine. [ Please don't quote your lambdas. ] In the mean time, you can try (add-hook 'after-make-frame-functions (lambda (frame) (unless (or window-system xterm-mouse-mode) (xterm-mouse-mode)))) -- Stefan