GNU bug report logs - #3053
"emacsclient -a emacs" produces "No server editing buffers exist" when closing buffer

Previous Next

Package: emacs;

Reported by: Danai SAE-HAN (韓達耐) <danai.saehan <at> gmail.com>

Date: Sun, 19 Apr 2009 14:45:44 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Danai SAE-HAN (韓達耐) <danai.saehan <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: "emacsclient -a emacs" produces "No server editing buffers exist" 
	when closing buffer
Date: Sun, 19 Apr 2009 16:41:01 +0200
[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 <at> 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 <at> 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 <at> 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





This bug report was last modified 16 years and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.