unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4888: 23.1.50; emacsclient vs. daemon
@ 2009-11-08 14:22 Peter Tury
  2009-11-08 16:41 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Tury @ 2009-11-08 14:22 UTC (permalink / raw)
  To: emacs-pretest-bug

Hi,

I found some issues while playing around emacs --daemon.

Here are the first ones.

1.
In (info "(emacs) emacsclient Options") I see:

'As a special exception, if COMMAND is the empty string, then
`emacsclient' starts Emacs in daemon mode and then tries
connecting again.'

This is not really true: as -a has a mandatory, non-empty COMMAND,
it is impossible to call emacsclient this way from command line.

The special exception mentioned above works only if alternate_editor
environment variable is set to empty string.

My suggestion is to
- either change emacsclient.c to accept -a with empty string as COMMAND
or
- state explicitly in Info and in emacsclient.c's help text the way it
really works.

2.
On the same Info page an example is given this way:
'EDITOR="emacsclient --alternate-editor emacs +%d %s"'
I think it should be:
'EDITOR="emacsclient --alternate-editor=emacs +%d %s"'

Thanks anyway,P

----------

In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.18.3)
 of 2009-11-08 on transcend-160
Windowing system distributor `The X.Org Foundation', version 11.0.10604000





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

* bug#4888: 23.1.50; emacsclient vs. daemon
  2009-11-08 14:22 bug#4888: 23.1.50; emacsclient vs. daemon Peter Tury
@ 2009-11-08 16:41 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2009-11-08 16:41 UTC (permalink / raw)
  To: Peter Tury; +Cc: 4888

> 'As a special exception, if COMMAND is the empty string, then
> `emacsclient' starts Emacs in daemon mode and then tries
> connecting again.'

> This is not really true: as -a has a mandatory, non-empty COMMAND,
> it is impossible to call emacsclient this way from command line.

This is not true, it shoujld also work if you do

   emacsclient -a '' <blablabla>
or
   emacsclient --alternate-editor '' ...
or
   emacsclient --alternate-editor= ...

> On the same Info page an example is given this way:
> 'EDITOR="emacsclient --alternate-editor emacs +%d %s"'
> I think it should be:
> 'EDITOR="emacsclient --alternate-editor=emacs +%d %s"'

Either way should work,


        Stefan





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

end of thread, other threads:[~2009-11-08 16:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-08 14:22 bug#4888: 23.1.50; emacsclient vs. daemon Peter Tury
2009-11-08 16:41 ` Stefan Monnier

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