unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Danai SAE-HAN  " <danai.saehan@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#3053: "emacsclient -a emacs" produces "No server editing buffers exist" when closing buffer
Date: Sun, 19 Apr 2009 16:41:01 +0200	[thread overview]
Message-ID: <e5d6f9a40904190741sa11c47aj7ffcb06185b4c4c2@mail.gmail.com> (raw)

[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







             reply	other threads:[~2009-04-19 14:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-19 14:41 Danai SAE-HAN   [this message]
2009-04-20 16:21 ` bug#3053: "emacsclient -a emacs" produces "No server editing buffers exist" when closing buffer Stefan Monnier
2009-04-24  9:00   ` Danai SAE-HAN  
2009-04-24 13:28     ` bug#3053: "emacsclient -a emacs" produces "No server editing Stefan Monnier
2009-04-25  0:08       ` Danai SAE-HAN  
2009-04-25  1:06         ` Stefan Monnier
2009-04-25  1:13           ` Danai SAE-HAN  
2009-04-25  3:34             ` Stefan Monnier
2009-04-25 11:18               ` Danai SAE-HAN  

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e5d6f9a40904190741sa11c47aj7ffcb06185b4c4c2@mail.gmail.com \
    --to=danai.saehan@gmail.com \
    --cc=3053@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).