From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Danai SAE-HAN =?UTF-8?Q?(=E9=9F=93=E9=81=94=E8=80=90)?= Newsgroups: gmane.emacs.bugs Subject: bug#3053: "emacsclient -a emacs" produces "No server editing buffers exist" when closing buffer Date: Sun, 19 Apr 2009 16:41:01 +0200 Message-ID: Reply-To: "Danai SAE-HAN =?UTF-8?Q? ?= \(=E9=9F=93=E9=81=94=E8=80=90\)" , 3053@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240159028 20489 80.91.229.12 (19 Apr 2009 16:37:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Apr 2009 16:37:08 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 19 18:38:28 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lva27-00014o-9X for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Apr 2009 18:38:19 +0200 Original-Received: from localhost ([127.0.0.1]:36358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lva0i-0006Ci-Bv for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Apr 2009 12:36:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvYYr-0000j1-A9 for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2009 11:04:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvYYm-0000hB-Ky for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2009 11:04:01 -0400 Original-Received: from [199.232.76.173] (port=49896 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvYYm-0000h3-5f for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2009 11:03:56 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55679) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LvYYl-0003eJ-CW for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2009 11:03:55 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3JF3p0e012695; Sun, 19 Apr 2009 08:03:53 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3JEjiO3008335; Sun, 19 Apr 2009 07:45:44 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Danai SAE-HAN =?UTF-8?Q?(=E9=9F=93=E9=81=94=E8=80=90)?= Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 19 Apr 2009 14:45:44 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3053 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12401520826948 (code B ref -1); Sun, 19 Apr 2009 14:45:44 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 19 Apr 2009 14:41:22 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3JEfJiu006942 for ; Sun, 19 Apr 2009 07:41:20 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvYCs-0007zS-OL for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2009 10:41:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvYCs-0007z2-BO for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2009 10:41:18 -0400 Original-Received: from [199.232.76.173] (port=38479 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvYCs-0007yo-58 for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2009 10:41:18 -0400 Original-Received: from yw-out-1718.google.com ([74.125.46.152]:14012) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LvYCr-0005D9-Pe for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2009 10:41:17 -0400 Original-Received: by yw-out-1718.google.com with SMTP id 9so2552340ywk.66 for ; Sun, 19 Apr 2009 07:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=NWIfBFBiYSleuNuCnE/ymtonYzeAzGzso0i7vSdPDKo=; b=ZjivVXC7GHjRfZfMIRxHfUHe8ZpHKxF82CS6kDwAj7UWpxPhsTk8SzBfMUwb82Dhng KDBVyi0TKhr4mNwB6cbMIgmXn/WhlJSS7BT6cqd0Fx4iaTPzmqTpGT4gRuaOPYYfd+dc IwnjbIsq0CMecTBus/GSBR9xdotAsnEZzTUS0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=AA7OIacJBtz6B6IAXsboT/l+ytDWXPcctvkZxp1CBGhUJR62Ub9zNHE0GIlz17NR/9 lFWJmADT2U4IUrEF8j1hSun3gsC80lYblJdfXDzaSMb/lJ9QCxA2Fc0qZCYL+nwI69FV 26VdUCjyFULjftwmatbg3Uf9PZe3XENty9rsg= Original-Received: by 10.150.203.13 with SMTP id a13mr4379471ybg.98.1240152076579; Sun, 19 Apr 2009 07:41:16 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 19 Apr 2009 11:04:00 -0400 X-Mailman-Approved-At: Sun, 19 Apr 2009 12:36:39 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27354 Archived-At: [Please put me in CC when you reply.] Hi As suggested per the online Emacs manual [1], I have set the $EDITOR variable to emacsclient with the -a argument. [2009-04-19 16:17:37] danai@danai:~/examples/examples-current $ echo $EDITOR emacsclient --alternate-editor emacs +%d %s When $EDITOR gets called from scripts, such as "reportbug" on Debian, and Emacs is not started yet, a new instance of Emacs will be launched (as can be expected). However, I cannot close back the buffer with C-x #. Pressing this shortcut so will result in a message "No server editing buffers exist". I can still save the file with C-x C-s and then close the buffer with C-x k, because "reportbug" uses a file in /tmp, but I would like to see that the classic way of closing a buffer from an external call is retained (i.e. C-x #). When Emacs is already started, emacsclient opens correctly and I can close the buffer with C-#. [2009-04-19 16:17:39] danai@danai:~/examples/examples-current $ emacs --version GNU Emacs 22.3.1 Copyright (C) 2008 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. [2009-04-19 16:22:50] danai@danai:~/examples/examples-current $ cat /etc/debian_version squeeze/sid [1] http://www.gnu.org/software/emacs/manual/html_node/emacs/Invoking-emacsclient.html Best regards -- Danai