GNU bug report logs - #4888
23.1.50; emacsclient vs. daemon

Previous Next

Package: emacs;

Reported by: Peter Tury <tury.peter <at> gmail.com>

Date: Sun, 8 Nov 2009 14:30:04 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4888 in the body.
You can then email your comments to 4888 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4888; Package emacs. (Sun, 08 Nov 2009 14:30:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Tury <tury.peter <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 08 Nov 2009 14:30:04 GMT) Full text and rfc822 format available.

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

From: Peter Tury <tury.peter <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.1.50; emacsclient vs. daemon
Date: Sun, 8 Nov 2009 15:22:16 +0100
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



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4888; Package emacs. (Sun, 08 Nov 2009 16:45:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 08 Nov 2009 16:45:08 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Peter Tury <tury.peter <at> gmail.com>
Cc: 4888 <at> debbugs.gnu.org
Subject: Re: bug#4888: 23.1.50; emacsclient vs. daemon
Date: Sun, 08 Nov 2009 11:41:33 -0500
> '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



bug closed, send any further explanations to Peter Tury <tury.peter <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Thu, 12 Nov 2009 07:30:43 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Thu, 10 Dec 2009 15:24:38 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 251 days ago.

Previous Next


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