From unknown Mon Jun 23 22:03:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9305 <9305@debbugs.gnu.org> To: bug#9305 <9305@debbugs.gnu.org> Subject: Status: emacsclient -n -c path/to/file # opens *scratch* Reply-To: bug#9305 <9305@debbugs.gnu.org> Date: Tue, 24 Jun 2025 05:03:35 +0000 retitle 9305 emacsclient -n -c path/to/file # opens *scratch* reassign 9305 emacs submitter 9305 Stefan Klinger severity 9305 normal tag 9305 unreproducible thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 15 12:38:25 2011 Received: (at submit) by debbugs.gnu.org; 15 Aug 2011 16:38:25 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 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 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 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 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 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 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) Date: Mon, 15 Aug 2011 17:25:41 +0200 From: Stefan Klinger To: bug-gnu-emacs@gnu.org Subject: emacsclient -n -c path/to/file # opens *scratch* Message-ID: <20110815152541.GC1222@stefan-klinger.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 20 10:05:38 2011 Received: (at 9305) by debbugs.gnu.org; 20 Aug 2011 14:05:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QumB3-00040Q-Vy for submit@debbugs.gnu.org; Sat, 20 Aug 2011 10:05:37 -0400 Received: from purin.rz.uni-konstanz.de ([134.34.240.45]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QujVW-0000Yv-UN for 9305@debbugs.gnu.org; Sat, 20 Aug 2011 07:14:32 -0400 Received: from nkongsamba.rz.uni-konstanz.de ([134.34.240.62]) by viribus.rz.uni-konstanz.de with ESMTP; 20 Aug 2011 11:12:19 +0000 Received: from localhost (kons-5f711527.pool.mediaWays.net [95.113.21.39]) (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 7E728A00B8 for <9305@debbugs.gnu.org>; Sat, 20 Aug 2011 13:12:19 +0200 (CEST) Date: Sat, 20 Aug 2011 13:12:52 +0200 From: Stefan Klinger To: 9305@debbugs.gnu.org Subject: Re: bug#9305: emacsclient -n -c path/to/file # opens *scratch* Message-ID: <20110820111252.GB1661@stefan-klinger.de> References: <20110815152541.GC1222@stefan-klinger.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110815152541.GC1222@stefan-klinger.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: 9305 X-Mailman-Approved-At: Sat, 20 Aug 2011 10:05:31 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Could anyone confirm this? -- Stefan Klinger o/klettern /\/ bis zum send plaintext only - max size 32kB - no spam \ Abfallen http://stefan-klinger.de From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 20 18:38:07 2011 Received: (at 9305) by debbugs.gnu.org; 20 Aug 2011 22:38:08 +0000 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 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 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 From: Chong Yidong To: Stefan Klinger Subject: Re: bug#9305: emacsclient -n -c path/to/file # opens *scratch* References: <20110815152541.GC1222@stefan-klinger.de> Date: Sat, 20 Aug 2011 18:35:50 -0400 In-Reply-To: <20110815152541.GC1222@stefan-klinger.de> (Stefan Klinger's message of "Mon, 15 Aug 2011 17:25:41 +0200") Message-ID: <87obzju2wp.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9305 Cc: 9305@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 21 15:29:19 2011 Received: (at 9305) by debbugs.gnu.org; 21 Aug 2011 19:29:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QvDht-0003lZ-Ne for submit@debbugs.gnu.org; Sun, 21 Aug 2011 15:29:19 -0400 Received: from pyrimidin.rz.uni-konstanz.de ([134.34.240.46]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qv6Ew-0005uJ-Az for 9305@debbugs.gnu.org; Sun, 21 Aug 2011 07:30:55 -0400 Received: from nkongsamba.rz.uni-konstanz.de ([134.34.240.62]) by unitis.rz.uni-konstanz.de with ESMTP; 21 Aug 2011 11:28:37 +0000 Received: from localhost (kons-5f710b04.pool.mediaWays.net [95.113.11.4]) (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 CC421A0051 for <9305@debbugs.gnu.org>; Sun, 21 Aug 2011 13:28:36 +0200 (CEST) Date: Sun, 21 Aug 2011 13:29:11 +0200 From: Stefan Klinger To: 9305@debbugs.gnu.org Subject: Re: bug#9305: emacsclient -n -c path/to/file # opens *scratch* Message-ID: <20110821112911.GA2657@stefan-klinger.de> References: <20110815152541.GC1222@stefan-klinger.de> <87obzju2wp.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87obzju2wp.fsf@stupidchicken.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 9305 X-Mailman-Approved-At: Sun, 21 Aug 2011 15:29:17 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) Sorry, maybe I did not make myself clear On 20 August 2011, Chong Yidong wrote with possible deletions: > 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. I do not want to reuse an existing frame, I do want to have a new frame created. But I want the new frame to show an existing buffer, if the requested file is already being visited. > The trouble with this is that if no existing graphical frame exists, > that will create a tty frame. This is not the problem I encountered. -- Stefan Klinger o/klettern /\/ bis zum send plaintext only - max size 32kB - no spam \ Abfallen http://stefan-klinger.de From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 03 23:13:19 2012 Received: (at control) by debbugs.gnu.org; 4 Nov 2012 03:13:19 +0000 Received: from localhost ([127.0.0.1]:47865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TUqeE-00059l-UN for submit@debbugs.gnu.org; Sat, 03 Nov 2012 23:13:19 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:39889) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TUqeC-00059e-O8 for control@debbugs.gnu.org; Sat, 03 Nov 2012 23:13:17 -0400 Received: by mail-pa0-f44.google.com with SMTP id fb11so3211028pad.3 for ; Sat, 03 Nov 2012 20:10:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=QlzZ+a87Q0s3Px92iX0Hd1RfxIRWud+SoZFsimZku1I=; b=gW44lD8GHr1F3kHCmPXZudlBPrLMKdolexZdyEnwAPmACqO95/Is6Fzi1VT50IX/18 HHvLtHiuzgekshr+vBw5mcVUGA9UocOCyFgvenBEt4ttFALSK4W/VlFDbtAEwFEN7iGR oDcJibFwU+oK+eCaqjKIR3LLVkAFy9dsp+Iel6bt7Pex8oUHxc0VID2ZE1jHVtmX0fn8 91X9EXcBt3ICwBr4KGDgBs+/c8oW3tmTjsjgyoaHibAvhZk335A1QXIIss1mr6Z3LiQG 3fNH2kY59mquHtUABQNzaaoPCRE+s/HIOEQEmdhhwnD0QbZy5zQtt/bMY4UZSSi/+hRD nTSw== Received: by 10.68.204.132 with SMTP id ky4mr19088686pbc.164.1351998618547; Sat, 03 Nov 2012 20:10:18 -0700 (PDT) Received: from ulysses (cm198.gamma83.maxonline.com.sg. [202.156.83.198]) by mx.google.com with ESMTPS id qd3sm7840465pbc.29.2012.11.03.20.10.15 (version=SSLv3 cipher=OTHER); Sat, 03 Nov 2012 20:10:17 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: tags 9305 + unreproducible Date: Sun, 04 Nov 2012 11:10:12 +0800 Message-ID: <87a9uyt65n.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.1 (/) tags 9305 + unreproducible thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 03 23:15:14 2012 Received: (at 9305) by debbugs.gnu.org; 4 Nov 2012 03:15:14 +0000 Received: from localhost ([127.0.0.1]:47871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TUqg5-0005Xs-HF for submit@debbugs.gnu.org; Sat, 03 Nov 2012 23:15:14 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:47694) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TUqg3-0005Sx-1M for 9305@debbugs.gnu.org; Sat, 03 Nov 2012 23:15:12 -0400 Received: by mail-pa0-f44.google.com with SMTP id fb11so3211467pad.3 for <9305@debbugs.gnu.org>; Sat, 03 Nov 2012 20:12:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=E7P0+aQQ/4BdR8Tqsf3GDyge+HX4JubpIMkBE74L6NU=; b=OVqOpHCPRWwndkw+8Ubf084qwCFz4XlzrkwXp2fuApq8Ugwtb8Q+aR46HkC7Za/4CK cIjuQgf7CesnFpe3LqumFCQLYUzbsaSWGECjRrc1A8dy86VfS75mDKvIdlVvBgKw/zEi mjgHhG/XIdzi0Cx6AfaZPE9F85HaBDxAR1qpks+ijgvv6VYAnoXu8fk/XC7/IzwTuOJr kI6ERaSzXOSgZhaRebXmUiRnQI2xrpmVYZi1kprF9+JdndK1SZ9eCtCl62a7u+m0fgNI O3hYV/pfQedtNjeo2sk2shbOCEZ8TRkwqjL7IegcEYEH0cPw+wLgp7lpn6UfswAZYwKh qPzA== Received: by 10.68.230.135 with SMTP id sy7mr19500836pbc.76.1351998733044; Sat, 03 Nov 2012 20:12:13 -0700 (PDT) Received: from ulysses (cm198.gamma83.maxonline.com.sg. [202.156.83.198]) by mx.google.com with ESMTPS id ru4sm8260087pbc.25.2012.11.03.20.12.10 (version=SSLv3 cipher=OTHER); Sat, 03 Nov 2012 20:12:11 -0700 (PDT) From: Chong Yidong To: Stefan Klinger Subject: Re: bug#9305: emacsclient -n -c path/to/file # opens *scratch* References: <20110815152541.GC1222@stefan-klinger.de> Date: Sun, 04 Nov 2012 11:12:08 +0800 In-Reply-To: <20110815152541.GC1222@stefan-klinger.de> (Stefan Klinger's message of "Mon, 15 Aug 2011 17:25:41 +0200") Message-ID: <877gq2t62f.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 9305 Cc: 9305@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.1 (/) Stefan Klinger writes: > 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. Does this problem still occur for you? I haven't been able to reproduce it. If so, please provide your Emacs version and platform (all the information which would normally be provided with M-x report-emacs-bug). From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 04 10:00:26 2012 Received: (at 9305) by debbugs.gnu.org; 4 Nov 2012 15:00:26 +0000 Received: from localhost ([127.0.0.1]:49120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TV1gX-0006tI-Os for submit@debbugs.gnu.org; Sun, 04 Nov 2012 10:00:26 -0500 Received: from smtprelay04.ispgateway.de ([80.67.31.38]:35088) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TV1gT-0006t8-TF for 9305@debbugs.gnu.org; Sun, 04 Nov 2012 10:00:23 -0500 Received: from [91.51.150.185] (helo=bellbird) by smtprelay04.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1TV1dY-0003Du-FZ; Sun, 04 Nov 2012 15:57:20 +0100 Date: Sun, 4 Nov 2012 15:58:36 +0100 From: Stefan Klinger To: Chong Yidong Subject: Re: bug#9305: emacsclient -n -c path/to/file # opens *scratch* Message-ID: <20121104145836.GA15869@bellbird> References: <20110815152541.GC1222@stefan-klinger.de> <877gq2t62f.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877gq2t62f.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Df-Sender: bWFpbEBzdGVmYW4ta2xpbmdlci5kZQ== X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 9305 Cc: 9305@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Hello, and thank you very much for looking into this! On 2012-Nov-04 11:12 (+0800), Chong Yidong wrote with possible deletions: > Does this problem still occur for you? I haven't been able to reproduce > it. If so, please provide your Emacs version and platform (all the > information which would normally be provided with M-x report-emacs-bug). Unfortunately yes, the problem still persists: Experiment 1: killall -9 emacs rm -rf ~/.emacs.d/ emacsclient -n -a '' -c ~/.bashrc # first call emacsclient -n -a '' -c ~/.bashrc # second call The first call starts emacs showing ~/.bashrc. But the second call creates a new frame showing *scratch*, and then focuses the other frame showing ~/.bashrc. Expected bahavior: Open new frame on current desktop, showing the buffer visiting ~/.bashrc. Experiment 2: killall -9 emacs rm -rf ~/.emacs.d/ emacsclient -n -a '' -c ~/.bashrc # first call # delete the window using the winidow manager emacsclient -n -a '' -c ~/.bashrc # second call Good, the second call created a new frame showing the requested file. Experiment 3: killall -9 emacs rm -rf ~/.emacs.d/ emacsclient -n -a '' -c ~/.bashrc # first call # iconify window emacsclient -n -a '' -c ~/.bashrc # second call Bad: Deiconifies existing window, but also creates a new frame showing *scratch*, which is unexpected. Here's the requested information. Please ask if you need any further information... In GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2012-09-08 on trouble, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11204000 configured using `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.4/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=lucid' '--with-toolkit-scroll-bars' '--without-gconf' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -DDEBIAN -O2' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x Recent messages: Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50haskell-mode.el (source)... Loading haskell-site-file...done Loading /etc/emacs/site-start.d/50haskell-mode.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Starting Emacs daemon. When done with this frame, type C-x 5 0 Load-path shadows: /usr/share/emacs/23.4/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/23.4/lisp/textmodes/ispell /usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/23.4/lisp/textmodes/flyspell Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml easymenu mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug server tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind font-render-setting x-toolkit x multi-tty emacs) -- Stefan Klinger o/klettern /\/ bis zum send plaintext only - max size 32kB - no spam \ Abfallen http://stefan-klinger.de From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 07 21:40:39 2012 Received: (at 9305) by debbugs.gnu.org; 8 Dec 2012 02:40:39 +0000 Received: from localhost ([127.0.0.1]:59669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ThALE-0003fn-V8 for submit@debbugs.gnu.org; Fri, 07 Dec 2012 21:40:39 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:35522) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ThALB-0003fe-AC for 9305@debbugs.gnu.org; Fri, 07 Dec 2012 21:40:34 -0500 Received: by mail-pa0-f44.google.com with SMTP id hz11so853023pad.3 for <9305@debbugs.gnu.org>; Fri, 07 Dec 2012 18:40:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=TljhEuw9Zyj/xNrWmV0HsajeqcKbpeQ3dpqCxOx7Fbg=; b=reum5Dkdf9PHQOqVQfwNAE1qOOJQ5lx5f3dyBBnj1SelnxZ+nWmuY3RWuqvlG/4G0y m/r/bWFyGs0/KznrqKQN4yt0V0kUyXBIx0ZK6+3UQmsAtEqXqezDemFRoplisZ6uGCkS ysnqfG12Yy0bc4/4PonKi7p2EG0Kq3s4QGDe4TIb+4yJBGjadXzv7Oj7GPvm401V3TSB FAowj1+eTw5cktIJVUe1+m/orOw9cfX/Jy0rO0gy7oBsbQvuakAAUW8UPuMgKSIPsZiT 3ttSVoP1DPevXycEhuN+lw5+ln0u86SEfpnDR3zf/5/Tb8iqOuWLkbIp7ZY9aW1qfCU8 nxRA== Received: by 10.68.236.8 with SMTP id uq8mr20505301pbc.156.1354934410805; Fri, 07 Dec 2012 18:40:10 -0800 (PST) Received: from ulysses (cm107.delta179.maxonline.com.sg. [59.189.179.107]) by mx.google.com with ESMTPS id m3sm7590593pav.4.2012.12.07.18.40.07 (version=SSLv3 cipher=OTHER); Fri, 07 Dec 2012 18:40:09 -0800 (PST) From: Chong Yidong To: Stefan Klinger Subject: Re: bug#9305: emacsclient -n -c path/to/file # opens *scratch* References: <20110815152541.GC1222@stefan-klinger.de> <877gq2t62f.fsf@gnu.org> <20121104145836.GA15869@bellbird> Date: Sat, 08 Dec 2012 10:40:05 +0800 In-Reply-To: <20121104145836.GA15869@bellbird> (Stefan Klinger's message of "Sun, 4 Nov 2012 15:58:36 +0100") Message-ID: <878v99s1ve.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 9305 Cc: 9305@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Stefan Klinger writes: > killall -9 emacs > rm -rf ~/.emacs.d/ > > emacsclient -n -a '' -c ~/.bashrc # first call > emacsclient -n -a '' -c ~/.bashrc # second call > > The first call starts emacs showing ~/.bashrc. But the second call > creates a new frame showing *scratch*, and then focuses the other frame > showing ~/.bashrc. Expected bahavior: Open new frame on current > desktop, showing the buffer visiting ~/.bashrc. Thanks, I can reproduce this in Emacs 23.4. It is already fixed in Emacs 24. Thanks for the bug report. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 07 21:40:44 2012 Received: (at control) by debbugs.gnu.org; 8 Dec 2012 02:40:44 +0000 Received: from localhost ([127.0.0.1]:59672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ThALL-0003g5-OV for submit@debbugs.gnu.org; Fri, 07 Dec 2012 21:40:44 -0500 Received: from mail-da0-f44.google.com ([209.85.210.44]:49711) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ThALK-0003fy-5O for control@debbugs.gnu.org; Fri, 07 Dec 2012 21:40:42 -0500 Received: by mail-da0-f44.google.com with SMTP id z20so431728dae.3 for ; Fri, 07 Dec 2012 18:40:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=MtvKYLdyiatlRewYe9LhV5QPxHfXII/lxQjwQYqtNBc=; b=HyxS1kN5i3iGD8CXlRLdIc6NlMkbAldlghsD54Frw/Xlj9aAZ13H9euEKUoZ8U2aUk bhdYmgC6Ngy+p1Cih8ktfkuLUJY3xxD1+pGIGBbG5SxmjClV0OcfABVKLfHjtBhT+ZAf 7ZWlHuaPHwApMZNKU+SN2xT8JKSYnTGLV7VvZvIJUe3ZTXT+izxZkuvtif8cEREvURLA l1XacMmYvarqZE7Z0FiaNfS2fwzfmV3ftimX7bgcLxSv6PYjZzLK62R1HokEvXByrzFO xedObET76mPLre/+0oszcnpDkCZq7C8cKkcjxzXJhUAhify7DROrfu4Ii/4Zx2631r7h oqiw== Received: by 10.66.76.10 with SMTP id g10mr18142479paw.80.1354934419787; Fri, 07 Dec 2012 18:40:19 -0800 (PST) Received: from ulysses (cm107.delta179.maxonline.com.sg. [59.189.179.107]) by mx.google.com with ESMTPS id ix9sm7654618pbc.7.2012.12.07.18.40.17 (version=SSLv3 cipher=OTHER); Fri, 07 Dec 2012 18:40:18 -0800 (PST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 9305 Date: Sat, 08 Dec 2012 10:40:15 +0800 Message-ID: <87a9tpp8q8.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.1 (/) close 9305 thanks From unknown Mon Jun 23 22:03:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 05 Jan 2013 12:24:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator