[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#2864: emacsclient bugs..
From: |
Dan Nicolaescu |
Subject: |
bug#2864: emacsclient bugs.. |
Date: |
Thu, 2 Apr 2009 13:25:53 -0700 (PDT) |
"Alfred M. Szmidt" <ams@gnu.org> writes:
> > There are a few problems with emacsclient in CVS, first one is that
> > one cannot run emacsclient from the build directory, you can do this
> > with emacs just fine. But emacsclien gets confused as to where
things
> > are, and you must do a `make install' to be able to use emacsclient
> > properly.
>
> Can you please describe what you do step by step?
> I can't reproduce it here.
>
> emacsclient never looks in BUILD/src for emacs, so if you do:
>
> emacs/lib-src/emacsclient -a "" -t
>
> emacsclient will fail with:
>
> ams@beryx:~$ emacs/lib-src/emacsclient -a "" -t
> emacs/lib-src/emacsclient: can't find socket; have you started the server?
> To start the server in Emacs, type "M-x server-start".
> emacs/lib-src/emacsclient: error starting emacs daemon
> Emacs daemon should have started, trying to connect again
> emacs/lib-src/emacsclient: can't find socket; have you started the server?
> To start the server in Emacs, type "M-x server-start".
> Error: Cannot connect even after starting the Emacs daemon
>
> I.e. you have to have BUILD/src in your PATH, or do make instal (which
> will put emacs in bindir/emacs and emacsclient looks there).
That's normal, emacsclient will try to start "emacs --daemon", if you don't have
emacs in your PATH, it won't be able to find it.
IMO it won't be a good idea to try to exec ../src/emacs.
> Another problem I found, but cannot reproduce anymore is that for some
> odd reason emacs started looking for all the elisp files in
> /usr/local. But I have been unable to reproduce, so I think it was
> just something on my side.
>
> > The second one is that the handling of -a/--alternative-editor
> > is problematic,
> >
> > $ emacs/lib-src/emacsclient -a -c
> > emacs/lib-src/emacsclient: file name or argument required
> > Try `emacs/lib-src/emacsclient --help' for more information
> >
> > According to the docstring, the argument to -a is optional, but
> > one must supply a empty string explicitly for things to work as
> > advertised.
>
> There was a typo in the code that made the info about the empty
> string not appear, it should be fixed now.
>
> The argument to -a is not optional, neither are the arguments for
> -d -f -s (which are documented in the same way as -a in --help).
> What needs to be done to make that clearer?
>
> I think a simple note stating that it has to be the empty string would
> be fine.
It should be there already.
- bug#2864: emacsclient bugs.., Alfred M. Szmidt, 2009/04/02
- bug#2864: emacsclient bugs.., Dan Nicolaescu, 2009/04/02
- bug#2864: emacsclient bugs.., Alfred M. Szmidt, 2009/04/02
- bug#2864: emacsclient bugs..,
Dan Nicolaescu <=
- bug#2864: emacsclient bugs.., Alfred M. Szmidt, 2009/04/02
- bug#2864: emacsclient bugs.., Dan Nicolaescu, 2009/04/02
- bug#2864: emacsclient bugs.., Alfred M. Szmidt, 2009/04/02
- bug#2864: emacsclient bugs.., Dan Nicolaescu, 2009/04/02
- bug#2864: emacsclient bugs.., Alfred M. Szmidt, 2009/04/02
- bug#2864: emacsclient bugs.., Stefan Monnier, 2009/04/02