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#4386: 23.1; emacsclient -t FILE -vs- server-window Date: Thu, 10 Sep 2009 09:42:53 -0400 Message-ID: References: <4AA894F6.80807@gmx.at> Reply-To: Stefan Monnier , 4386@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252592542 11401 80.91.229.12 (10 Sep 2009 14:22:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2009 14:22:22 +0000 (UTC) Cc: Tom Tromey , 4386@emacsbugs.donarmstrong.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 10 16:22:15 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MlkWj-0000I3-EJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Sep 2009 16:21:33 +0200 Original-Received: from localhost ([127.0.0.1]:54027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlkWh-0005ix-3H for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Sep 2009 10:21:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlkIo-0006HL-Rr for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2009 10:07:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlkIi-0006G1-2L for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2009 10:07:09 -0400 Original-Received: from [199.232.76.173] (port=49801 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlkIh-0006Fh-N2 for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2009 10:07:03 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35411) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MlkIg-000709-Hs for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2009 10:07:03 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8AE6xvl008709; Thu, 10 Sep 2009 07:06:59 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8ADo4Lv005372; Thu, 10 Sep 2009 06:50:04 -0700 Resent-Date: Thu, 10 Sep 2009 06:50:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 10 Sep 2009 13:50:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4386 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4386-submit@emacsbugs.donarmstrong.com id=B4386.12525901814347 (code B ref 4386); Thu, 10 Sep 2009 13:50:03 +0000 Original-Received: (at 4386) by emacsbugs.donarmstrong.com; 10 Sep 2009 13:43:01 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.pppoe.ca (ironport2-out.pppoe.ca [206.248.154.183] (may be forged)) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8ADgxef004336 for <4386@emacsbugs.donarmstrong.com>; Thu, 10 Sep 2009 06:43:01 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiIFAEOfqEpFpZBe/2dsb2JhbACBU9xRhBgFh20 X-IronPort-AV: E=Sophos;i="4.44,364,1249272000"; d="scan'208";a="45502288" Original-Received: from 69-165-144-94.dsl.teksavvy.com (HELO pastel.home) ([69.165.144.94]) by ironport2-out.pppoe.ca with ESMTP; 10 Sep 2009 09:41:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E8B107F5B; Thu, 10 Sep 2009 09:42:53 -0400 (EDT) In-Reply-To: <4AA894F6.80807@gmx.at> (martin rudalics's message of "Thu, 10 Sep 2009 07:56:06 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 10 Sep 2009 10:07:08 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30927 Archived-At: > where the "and select it" part is obviously silly. Anyway, something in > the mood of > (lambda (buffer) > (let ((window > (if window-system > saved-server-window > (frame-selected-window)))) > (set-window-buffer window buffer) > (select-window window))) > seems more appropriate here. I believe checking window-system is wrong. Instead, the test should be whether the current terminal and the saved-server-window are equal. Stefan