unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3053: "emacsclient -a emacs" produces "No server editing buffers exist" when closing buffer
@ 2009-04-19 14:41 Danai SAE-HAN  
  2009-04-20 16:21 ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Danai SAE-HAN   @ 2009-04-19 14:41 UTC (permalink / raw)
  To: bug-gnu-emacs

[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







^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-04-25 11:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-19 14:41 bug#3053: "emacsclient -a emacs" produces "No server editing buffers exist" when closing buffer Danai SAE-HAN  
2009-04-20 16:21 ` 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  

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).