all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Spurious error message?
@ 2014-09-08  6:42 Rusi
  2014-09-09  2:46 ` Michael Heerdegen
       [not found] ` <mailman.8494.1410230804.1147.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Rusi @ 2014-09-08  6:42 UTC (permalink / raw)
  To: help-gnu-emacs

emacsclient is supposed to 'jump into' an already emacs.

What if there is no emacs running?  I get:

$ emacsclient foo.txt 
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
emacsclient: No socket or alternate editor.  Please use:

	--socket-name
	--server-file      (or environment variable EMACS_SERVER_FILE)
	--alternate-editor (or environment variable ALTERNATE_EDITOR)

Ok so far so good. So I use the --alternate-editor

$ emacsclient --alternate-editor emacs foo.txt
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".

After printng which, it starts ok, editing the file!!

IOW I find the error message spurious.

Am I missing something?


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

* Re: Spurious error message?
  2014-09-08  6:42 Spurious error message? Rusi
@ 2014-09-09  2:46 ` Michael Heerdegen
       [not found] ` <mailman.8494.1410230804.1147.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Heerdegen @ 2014-09-09  2:46 UTC (permalink / raw)
  To: help-gnu-emacs

Rusi <rustompmody@gmail.com> writes:

> $ emacsclient --alternate-editor emacs foo.txt
> emacsclient: can't find socket; have you started the server?
> To start the server in Emacs, type "M-x server-start".
>
> After printng which, it starts ok, editing the file!!
>
> IOW I find the error message spurious.
>
> Am I missing something?

I too think this message doesn't make much sense in this context.  But
you can presumably safely ignore it.

Michael.




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

* Re: Spurious error message?
       [not found] ` <mailman.8494.1410230804.1147.help-gnu-emacs@gnu.org>
@ 2014-09-09  2:57   ` Rusi
  2014-09-09  4:51     ` Michael Heerdegen
  2014-09-09  7:08     ` Thorsten Jolitz
  0 siblings, 2 replies; 5+ messages in thread
From: Rusi @ 2014-09-09  2:57 UTC (permalink / raw)
  To: help-gnu-emacs

On Tuesday, September 9, 2014 8:16:01 AM UTC+5:30, Michael Heerdegen wrote:
> Rusi  writes:

> > $ emacsclient --alternate-editor emacs foo.txt
> > emacsclient: can't find socket; have you started the server?
> > To start the server in Emacs, type "M-x server-start".
> > After printng which, it starts ok, editing the file!!
> > IOW I find the error message spurious.
> > Am I missing something?

> I too think this message doesn't make much sense in this context.  But
> you can presumably safely ignore it.

Sure its not bugging me too much.
Just thought it was a sufficiently glaring bug in the basic usage of
alternate-editor that I may be missing something.

Maybe I'll just file a bug report


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

* Re: Spurious error message?
  2014-09-09  2:57   ` Rusi
@ 2014-09-09  4:51     ` Michael Heerdegen
  2014-09-09  7:08     ` Thorsten Jolitz
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Heerdegen @ 2014-09-09  4:51 UTC (permalink / raw)
  To: help-gnu-emacs

Rusi <rustompmody@gmail.com> writes:

> Maybe I'll just file a bug report

Good idea.  I guess for --alternate-editor, the warning should just be
generally suppressed.

Michael.




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

* Re: Spurious error message?
  2014-09-09  2:57   ` Rusi
  2014-09-09  4:51     ` Michael Heerdegen
@ 2014-09-09  7:08     ` Thorsten Jolitz
  1 sibling, 0 replies; 5+ messages in thread
From: Thorsten Jolitz @ 2014-09-09  7:08 UTC (permalink / raw)
  To: help-gnu-emacs

Rusi <rustompmody@gmail.com> writes:

> On Tuesday, September 9, 2014 8:16:01 AM UTC+5:30, Michael Heerdegen wrote:
>> Rusi  writes:
>
>> > $ emacsclient --alternate-editor emacs foo.txt
>> > emacsclient: can't find socket; have you started the server?
>> > To start the server in Emacs, type "M-x server-start".
>> > After printng which, it starts ok, editing the file!!
>> > IOW I find the error message spurious.
>> > Am I missing something?
>
>> I too think this message doesn't make much sense in this context.  But
>> you can presumably safely ignore it.
>
> Sure its not bugging me too much.
> Just thought it was a sufficiently glaring bug in the basic usage of
> alternate-editor that I may be missing something.
>
> Maybe I'll just file a bug report

When you are on it, maybe you could mention too that the error message
when starting a server while a server with the same name is already
running is to harsh IMO.

Its like calling (require 'foo) and getting
"ERROR: foo already loaded, couldn't require foo"
although everything is fine actually ...

A softer informative message like
"Server <<name>> already running, no restart required"
would be less irritating.

-- 
cheers,
Thorsten




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

end of thread, other threads:[~2014-09-09  7:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-08  6:42 Spurious error message? Rusi
2014-09-09  2:46 ` Michael Heerdegen
     [not found] ` <mailman.8494.1410230804.1147.help-gnu-emacs@gnu.org>
2014-09-09  2:57   ` Rusi
2014-09-09  4:51     ` Michael Heerdegen
2014-09-09  7:08     ` Thorsten Jolitz

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.