From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Klinger Newsgroups: gmane.emacs.bugs Subject: bug#9305: emacsclient -n -c path/to/file # opens *scratch* Date: Mon, 15 Aug 2011 17:25:41 +0200 Message-ID: <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: 8bit X-Trace: dough.gmane.org 1313426251 26094 80.91.229.12 (15 Aug 2011 16:37:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2011 16:37:31 +0000 (UTC) To: 9305@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 15 18:37:25 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 1Qt0AG-0004Be-Ly for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Aug 2011 18:37:24 +0200 Original-Received: from localhost ([::1]:54090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt0AG-0000xN-9T for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Aug 2011 12:37:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt0AC-0000wr-M2 for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2011 12:37:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qt0AB-0005lJ-Dn for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2011 12:37:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt0AB-0005lF-C9 for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2011 12:37:19 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qt0Bp-0006Sq-L1; Mon, 15 Aug 2011 12:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Klinger Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Aug 2011 16:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9305 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.131342630524700 (code B ref -1); Mon, 15 Aug 2011 16:39:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Aug 2011 16:38:25 +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 1Qt0BD-0006QK-Vp for submit@debbugs.gnu.org; Mon, 15 Aug 2011 12:38:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qsz4P-0004hL-M8 for submit@debbugs.gnu.org; Mon, 15 Aug 2011 11:27:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qsz2h-00052X-Pz for submit@debbugs.gnu.org; Mon, 15 Aug 2011 11:25:34 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:57460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qsz2g-00051w-VR for submit@debbugs.gnu.org; Mon, 15 Aug 2011 11:25:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qsz2e-0008Ph-5H for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2011 11:25:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qsz2c-0004zw-8k for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2011 11:25:28 -0400 Original-Received: from purin.rz.uni-konstanz.de ([134.34.240.45]:19137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qsz2b-0004yY-MP for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2011 11:25:26 -0400 Original-Received: from nkongsamba.rz.uni-konstanz.de ([134.34.240.62]) by viribus.rz.uni-konstanz.de with ESMTP; 15 Aug 2011 15:25:23 +0000 Original-Received: from localhost (kons-5f711ec1.pool.mediaWays.net [95.113.30.193]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: stefan.klinger) by nkongsamba.rz.uni-konstanz.de (Postfix) with ESMTPSA id E67A1A0021 for ; Mon, 15 Aug 2011 17:25:22 +0200 (CEST) Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 15 Aug 2011 12:38:23 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 15 Aug 2011 12: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:50090 Archived-At: Hello, I'm having a problem with newly created frames when running ‘emacsclient -c path/to/file’: If there is already a frame showing the file, a new frame is created (as intended) but it displays a *scratch* buffer, instead of the already existing buffer for that file. Expecting a configuration problem, I have recently posted this on help-gnu-emacs [1], but received no reply. -- Reproduce -- It's not my fault: killall -9 emacs rm -rf ~/.emacs.d/ Now request first frame and start emacs daemon, works as expected (well, almost: I'd prever emacs not to assign focus to the new frame, but that can be configured away [2]). emacsclient -n -a '' -c ~/.bashrc Now, as long as the frame showing ‘~/.bashrc’ 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 ‘~/.bashrc’, then each of the 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. -- Information -- ‘emacs-version’ reports “GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2011-04-10 on brahms, modified by Debian” Actually I still assume this could be configured, but on help-gnu-emacs, nobody seems to know [1]. Thank you! Stefan ____________________ [1] https://lists.gnu.org/archive/html/help-gnu-emacs/2011-08/msg00056.html [2] https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/589035/comments/2 -- Stefan Klinger o/klettern /\/ bis zum send plaintext only - max size 32kB - no spam \ Abfallen http://stefan-klinger.de