From: Juanma Barranquero <lekktu@gmail.com>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: w32 does not have emacsclient/server
Date: Tue, 9 Aug 2005 02:12:21 +0200 [thread overview]
Message-ID: <f7ccd24b0508081712a68edbc@mail.gmail.com> (raw)
In-Reply-To: <m1ll3catfb.fsf-monnier+emacs@gnu.org>
On 8/9/05, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> Sounds very good. To the host, port, and auth, I'd add a "server
> name" entry, which would default to "server", to reproduce the
> socket-name thingy.
OK.
> > In emacsclient.c I've got rid of all AF_UNIX stuff.
> Doesn't sound so good. I'd rather make it possible to choose between Unix
> and TCP sockets (default to Unix when possible, and TCP otherwise).
Oh. Well, the AF_UNIX code should be conditionally commented out on
Windows, or do you mean to choose at run-time?
> I'd rather see "server-name" which could be a path to a unix socket (like
> now) or just a relative name of a unix socket (like now) or the name of
> a server to be found in ~/.emacs.servers. I.e. if there is no unix socket
> of that name, lookup ~/.emacs.servers for TCP servers.
I'm not sure I'm getting what you intend with this. Why would you do
have several servers on the same .emacs.server(s) file?
- To run several instances of Emacs, each one a server, using the
same .emacs.server? I think that would cause all kinds of race
conditions; it'd be better to simply use different server files.
- Or, for one single Emacs to have several server instances? I don't
think anything is gained there, in particular if you're going to have
the .emacs.server readable for clients (meaning that if they can read
the file, they can read all authorizations). OTOH, having different
servers *with different server files* could be useful.
> > The last change has been to make it consider \path and c:path as absolute
> > paths (previously it would prepend the current directory to Windows-style
> > absolute paths).
>
> Of course this should only be done under w32.
Why? As I see it, the name you send is interpreted by the server, so
the client has to be able to send absolute and relative paths for all
environments (in fact, VMS or Mac ones should also be grokked, if
emacsclient works on these environments). I mean, if I'm on a
GNU/Linux, and the server is running on a Windows machine, emacsclient
c:\my\file.txt is likely to be a file on the server...
> > environments it'd be posible to use emacsclient/server.el with a fixed
> > address/port and no .emacs.server file (emacsclient would have to grow
> > --server-address and --server-port options, of course).
>
> What would be the benefit?
On low-security setups (like the ones I'm gonna find myself 99% of the
time) I could just define an alias toem=`emacsclient --auth=myauth
--host=myhost --port=myport' and not worry about setting reading
permissions on the server's %HOME% dir.
--
/L/e/k/t/u
next prev parent reply other threads:[~2005-08-09 0:12 UTC|newest]
Thread overview: 120+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-15 7:01 w32 does not have emacsclient/server Lennart Borgman
2005-07-15 8:29 ` Jason Rumney
2005-07-15 12:40 ` Lennart Borgman
2005-07-15 15:07 ` David Kastrup
2005-07-15 16:52 ` Lennart Borgman
2005-07-15 18:21 ` Eli Zaretskii
2005-07-16 20:45 ` Richard M. Stallman
2005-07-17 3:33 ` Eli Zaretskii
2005-07-17 17:36 ` Richard M. Stallman
2005-07-17 18:09 ` Eli Zaretskii
2005-07-18 16:33 ` Richard M. Stallman
2005-07-15 8:31 ` David Kastrup
2005-07-15 12:21 ` Lennart Borgman
2005-07-15 12:37 ` David Kastrup
2005-07-15 12:50 ` Lennart Borgman
2005-07-15 15:12 ` David Kastrup
2005-07-15 16:59 ` w32 does not have emacsclient/server - getting paper size Lennart Borgman
2005-07-15 17:13 ` David Kastrup
2005-07-15 17:55 ` Lennart Borgman
2005-07-15 21:20 ` Jason Rumney
2005-07-15 21:39 ` Lennart Borgman
2005-07-15 22:00 ` David Kastrup
2005-07-15 22:13 ` Lennart Borgman
2005-07-15 22:33 ` David Kastrup
2005-07-15 23:07 ` Lennart Borgman
2005-07-16 6:14 ` David Kastrup
2005-07-16 9:46 ` Eli Zaretskii
2005-07-16 11:56 ` David Kastrup
2005-07-17 3:30 ` Eli Zaretskii
2005-07-17 0:59 ` Richard M. Stallman
2005-07-16 9:48 ` Eli Zaretskii
2005-07-15 23:09 ` Jason Rumney
2005-07-15 23:22 ` Lennart Borgman
2005-07-15 23:40 ` Jason Rumney
2005-07-17 0:58 ` Richard M. Stallman
2005-07-16 6:02 ` David Kastrup
2005-07-16 8:31 ` Lennart Borgman
2005-07-16 9:03 ` David Kastrup
2005-07-16 9:39 ` Eli Zaretskii
2005-07-16 9:42 ` Eli Zaretskii
2005-07-16 10:00 ` Eli Zaretskii
2005-07-16 10:28 ` Lennart Borgman
2005-07-16 11:42 ` Jason Rumney
2005-07-16 12:13 ` Eli Zaretskii
2005-07-16 12:44 ` Lennart Borgman
2005-07-16 21:57 ` Jason Rumney
2005-07-16 22:30 ` David Kastrup
2005-07-16 10:58 ` Jason Rumney
2005-07-16 11:07 ` Lennart Borgman
2005-07-16 11:50 ` Jason Rumney
2005-07-16 12:26 ` Eli Zaretskii
2005-07-16 12:53 ` Lennart Borgman
2005-07-16 13:22 ` Eli Zaretskii
2005-07-16 13:36 ` Lennart Borgman
2005-07-16 12:40 ` Lennart Borgman
2005-07-16 13:29 ` Eli Zaretskii
2005-07-16 13:39 ` Lennart Borgman
2005-07-16 21:55 ` Jason Rumney
2005-07-16 12:00 ` David Kastrup
2005-07-17 3:32 ` Eli Zaretskii
2005-07-16 9:54 ` Eli Zaretskii
2005-07-16 10:10 ` Lennart Borgman
2005-07-15 14:33 ` w32 does not have emacsclient/server Jason Rumney
2005-07-15 14:52 ` Lennart Borgman
2005-07-15 15:15 ` David Kastrup
2005-07-15 20:28 ` Stefan Monnier
2005-07-27 14:34 ` Juanma Barranquero
2005-07-27 15:45 ` Jason Rumney
2005-07-27 16:16 ` Juanma Barranquero
2005-07-27 16:31 ` Jason Rumney
2005-07-28 17:20 ` Stefan Monnier
2005-08-05 1:43 ` Juanma Barranquero
2005-08-05 7:59 ` Juanma Barranquero
2005-08-05 9:02 ` Eli Zaretskii
2005-08-05 9:09 ` Juanma Barranquero
2005-08-05 18:50 ` Eli Zaretskii
2005-08-05 23:10 ` Juanma Barranquero
2005-08-06 6:55 ` Eli Zaretskii
2005-08-06 7:12 ` Jason Rumney
2005-08-06 8:10 ` Eli Zaretskii
2005-08-06 9:30 ` Lennart Borgman
2005-08-06 11:08 ` Stephan Stahl
2005-08-06 14:48 ` Eli Zaretskii
2005-08-06 11:21 ` Juanma Barranquero
2005-08-06 14:52 ` Eli Zaretskii
2005-08-05 20:38 ` Richard M. Stallman
2005-08-05 21:34 ` David Kastrup
2005-08-05 23:12 ` Juanma Barranquero
2005-08-05 23:48 ` Lennart Borgman
2005-08-06 0:02 ` Juanma Barranquero
2005-08-06 6:58 ` Eli Zaretskii
2005-08-06 11:20 ` Juanma Barranquero
2005-08-06 12:43 ` David Kastrup
2005-08-06 13:43 ` Juanma Barranquero
2005-08-06 17:45 ` Jason Rumney
2005-08-06 17:54 ` Juanma Barranquero
2005-08-06 6:59 ` David Kastrup
2005-08-06 13:45 ` Juanma Barranquero
2005-08-06 14:03 ` David Kastrup
2005-08-07 17:15 ` Richard M. Stallman
2005-08-07 20:31 ` Juanma Barranquero
2005-08-09 0:26 ` Richard M. Stallman
2005-08-09 0:39 ` Juanma Barranquero
2005-08-06 18:35 ` Richard M. Stallman
2005-08-06 18:44 ` Juanma Barranquero
2005-08-05 11:06 ` Juanma Barranquero
2005-08-08 23:49 ` Stefan Monnier
2005-08-09 0:12 ` Juanma Barranquero [this message]
2005-08-10 0:42 ` Stefan Monnier
2005-08-09 0:19 ` Juanma Barranquero
2005-08-10 0:49 ` Stefan Monnier
2005-08-10 0:58 ` Juanma Barranquero
2005-07-15 15:13 ` Juanma Barranquero
2005-07-15 15:48 ` David Kastrup
2005-07-18 6:22 ` Juanma Barranquero
2005-07-15 17:15 ` Lennart Borgman
2005-07-15 23:24 ` Robert J. Chassell
2005-07-15 17:53 ` Guy Gascoigne - Piggford
-- strict thread matches above, loose matches on Subject: below --
2005-07-15 15:36 klaus.berndl
2005-07-16 13:28 ` Juanma Barranquero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f7ccd24b0508081712a68edbc@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.