From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#10729: 24.0.93; On MS-Windows: emacsclientw.exe -n -c does create a new frame, but does not always display the requested file or the requested directory (24.0.92 does) Date: Mon, 6 Feb 2012 18:03:17 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328547870 27723 80.91.229.3 (6 Feb 2012 17:04:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 17:04:30 +0000 (UTC) Cc: 10729@debbugs.gnu.org To: Albert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 06 18:04:28 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RuRzM-0000JX-DW for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 18:04:24 +0100 Original-Received: from localhost ([::1]:60311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuRzL-00030e-WC for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 12:04:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuRzI-00030M-JV for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 12:04:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuRz9-0001Ju-2p for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 12:04:20 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuRz9-0001Jj-0e for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 12:04:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RuRzx-0002kt-Ky for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 12:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Feb 2012 17:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10729 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10729-submit@debbugs.gnu.org id=B10729.132854789710580 (code B ref 10729); Mon, 06 Feb 2012 17:05:01 +0000 Original-Received: (at 10729) by debbugs.gnu.org; 6 Feb 2012 17:04:57 +0000 Original-Received: from localhost ([127.0.0.1]:57403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuRzt-0002kb-91 for submit@debbugs.gnu.org; Mon, 06 Feb 2012 12:04:57 -0500 Original-Received: from mail-pz0-f44.google.com ([209.85.210.44]:64401) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuRzq-0002kO-BT for 10729@debbugs.gnu.org; Mon, 06 Feb 2012 12:04:55 -0500 Original-Received: by dakl33 with SMTP id l33so4825237dak.3 for <10729@debbugs.gnu.org>; Mon, 06 Feb 2012 09:03:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=twRJMc6UlnUCtordERhqmeHvRTi6lHmA/9Yn/5/vwoo=; b=cHWTuja1076+BZGZHZb7sHcvlyVBFZJw7gPmJixTw3N0Tb0lKP1H3MRxkKykI28XWn aUvzJn2SDPCKtZw/+4Dq3MyYjcPjNxFONCcvpXHo76oOkXaEbawhjOb2MC6JfVPMa97u Qc7qDHKy7YjPbu72Rex5GAM4v4kSfZ1DELCDU= Original-Received: by 10.68.75.135 with SMTP id c7mr48481666pbw.43.1328547837170; Mon, 06 Feb 2012 09:03:57 -0800 (PST) Original-Received: by 10.143.37.9 with HTTP; Mon, 6 Feb 2012 09:03:17 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:56573 Archived-At: On Sun, Feb 5, 2012 at 16:48, Juanma Barranquero wrote: >> 1. command window started from emacs/bin >> 2. start runemacs -Q >> 3. M-x server-start >> 4. start emacsclientw -n -c test.txt >> =3D=3D> (small existing file) this works as expected (a new frame with t= est.txt) >> 5. repeat 4.: does not work: the second frame now displays an extra inst= ance >> =C2=A0 of *scratch* >> 6. repeat 4.: does work: a new frame with test.txt >> 7. repeat 4.: does not work: the last frame now shows *scratch* (and >> all other frames also) >> 8. ... this repeats itself; I tried until I had 4 frames showing >> *scratch* and then the next repeat gives a new frame with test.txt >> again. Hmm. I'm not sure it is a bug, or at least, I'm not sure the bug is that it sometimes does not create a new frame. When you request a new frame with -c or -t, you're passing instructions to server.el about how to display the buffer. But server.el also obeys the setting of server-window. If you look at server-switch-buffer, you'll see that, when the buffer is already shown in a window, and server-window is nil, it simply does (select-window win) ; win is the window displaying test.txt (set-buffer next-buffer) ; next-buffer is the one containing test.txt so no new frame is created. That's not a bug. For some reason I still have to investigate, the buffer shown in win is then replaced by *scratch* (this is puzzling). Next time, as test.txt is not visible (*scratch* replaced it in win), server-switch-buffer creates a new frame. Rinse and repeat. As a workaround, while I investigate further, I think you can run emacs wit= h emacs -f server-start --eval "(setq server-window 'switch-to-buffer)" which does what you want. =C2=A0 =C2=A0 Juanma