From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#9305: emacsclient -n -c path/to/file # opens *scratch* Date: Sat, 20 Aug 2011 18:35:50 -0400 Message-ID: <87obzju2wp.fsf@stupidchicken.com> References: <20110815152541.GC1222@stefan-klinger.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1313879822 25620 80.91.229.12 (20 Aug 2011 22:37:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 20 Aug 2011 22:37:02 +0000 (UTC) Cc: 9305@debbugs.gnu.org To: Stefan Klinger Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 21 00:36:55 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Quu9t-0006zF-TY for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Aug 2011 00:36:54 +0200 Original-Received: from localhost ([::1]:47377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Quu9t-0001Qq-Az for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2011 18:36:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Quu9r-0001Ql-1f for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2011 18:36:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Quu9p-0006Gb-SR for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2011 18:36:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Quu9p-0006GX-Pi for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2011 18:36:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QuuBx-0004PX-Vb; Sat, 20 Aug 2011 18:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Aug 2011 22:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9305 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9305-submit@debbugs.gnu.org id=B9305.131387988816896 (code B ref 9305); Sat, 20 Aug 2011 22:39:01 +0000 Original-Received: (at 9305) by debbugs.gnu.org; 20 Aug 2011 22:38:08 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QuuB5-0004OT-Pb for submit@debbugs.gnu.org; Sat, 20 Aug 2011 18:38:07 -0400 Original-Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QuuB3-0004OK-RD for 9305@debbugs.gnu.org; Sat, 20 Aug 2011 18:38:06 -0400 Original-Received: from furball ([64.134.100.139]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id p7KMZpjq018267 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 20 Aug 2011 18:35:52 -0400 In-Reply-To: <20110815152541.GC1222@stefan-klinger.de> (Stefan Klinger's message of "Mon, 15 Aug 2011 17:25:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 20 Aug 2011 18:39:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:50184 Archived-At: Stefan Klinger writes: > Now request first frame and start emacs daemon, works as expected > > emacsclient -n -a '' -c ~/.bashrc > > Now, as long as the frame showing =E2=80=98~/.bashrc=E2=80=99 is visible = (potentially > on another desktop), the following three commands each open a new > frame, each of them showing *scratch*: > > emacsclient -n -a '' -c ~/.bashrc > emacsclient -n -c ~/.bashrc > emacsclient -c ~/.bashrc > > When there's no frame showing =E2=80=98~/.bashrc=E2=80=99, then each of t= he above > creates a new frame showing the existing buffer. > > -- Expected bahavior -- > > Check whether there is a buffer visiting test. If so, show that buffer > in the new frame. Otherwise, visit the file in a new buffer and > display that one. Yeah, the -c option to emacsclient means "create a new graphical frame". Currently, you need to omit -c if you want Emacs to reuse an existing frame. The trouble with this is that if no existing graphical frame exists, that will create a tty frame. Unfortunately, we don't offer an easy way to change this behavior yet. This ought to be fixed, though probably for Emacs 24.2.