From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [ottomaddox@fastmail.fm: emacsclient won't open new frame on remote display] Date: Tue, 04 Jul 2006 17:04:03 -0400 Message-ID: References: <873bdhdt2z.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152047065 4046 80.91.229.2 (4 Jul 2006 21:04:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2006 21:04:25 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 04 23:04:23 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fxs4E-0004GN-6h for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2006 23:04:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fxs4D-0005Sj-Mn for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2006 17:04:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fxs40-0005RF-01 for emacs-devel@gnu.org; Tue, 04 Jul 2006 17:04:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fxs3y-0005Qv-Cj for emacs-devel@gnu.org; Tue, 04 Jul 2006 17:04:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fxs3y-0005Qs-7Q for emacs-devel@gnu.org; Tue, 04 Jul 2006 17:04:06 -0400 Original-Received: from [209.226.175.54] (helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FxsHi-0003bZ-MQ for emacs-devel@gnu.org; Tue, 04 Jul 2006 17:18:18 -0400 Original-Received: from localhost ([70.55.143.136]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060704210404.NMRW13241.tomts10-srv.bellnexxia.net@localhost>; Tue, 4 Jul 2006 17:04:04 -0400 Original-Received: by localhost (Postfix, from userid 20848) id E3B07826D; Tue, 4 Jul 2006 17:04:03 -0400 (EDT) Original-To: Chong Yidong In-Reply-To: <873bdhdt2z.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 04 Jul 2006 16:16:04 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56528 Archived-At: > *************** > *** 207,220 **** > ;; and select it. > (unless (equal (frame-parameter (selected-frame) 'display) display) > (select-frame > ! (make-frame-on-display > ! display > ! ;; This frame is only there in place of an actual "current display" > ! ;; setting, so we want it to be as unobtrusive as possible. That's > ! ;; what the invisibility is for. The minibuffer setting is so that > ! ;; we don't end up displaying a buffer in it (which noone would > ! ;; notice). > ! '((visibility . nil) (minibuffer . only))))))) > (defun server-unquote-arg (arg) > (replace-regexp-in-string > --- 207,213 ---- > ;; and select it. > (unless (equal (frame-parameter (selected-frame) 'display) display) > (select-frame > ! (make-frame-on-display display))))) > (defun server-unquote-arg (arg) > (replace-regexp-in-string This suggested change causes Emacs to create a new frame displaying some random buffer. If server.el subsequently uses switch-to-buffer or something like that, it's probably OK, but if it instead uses something like pop-to-buffer because you want to display emacsclient buffers in their own window or frame, then you end up with 2 windows (or frames) one of which displays some random buffer. Stefan