all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* server-start under Windows
@ 2002-11-06  4:45 Ben Key
  2002-11-06  9:53 ` Kim F. Storm
  0 siblings, 1 reply; 9+ messages in thread
From: Ben Key @ 2002-11-06  4:45 UTC (permalink / raw)


I have managed to get emacsclient to build under Windows.  However, I cannot
test it because whenever I call server-start, I get a "Unknown address
family" error message.  I spent some time debugging this and I found that it
is being generated by the built in function "make-network-process" in
process.c, line 2749.  I am at a loss as to how to resolve this problem.  If
someone could help me resolve this issue, I might be able to complete my
Windows port of emacsclient this weekend.

For those of you who are interested in knowing how I got emacsclient to
build under Windows, it was actually pretty easy, but time consuming.  All I
really needed to do was copy a bunch of code from w32.c (the socket related
functions such as  sys_connect, sys_gethostname and sys_socket and the user
information functions such as getuid, geteuid, and getpwnam) and w32proc.c
(various process related functions such as new_child).

Beyond that, there were only relatively minor changes that were required.

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: server-start under Windows
@ 2002-11-06 14:34 bkey1
  2002-11-06 15:55 ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: bkey1 @ 2002-11-06 14:34 UTC (permalink / raw)


storm@cua.dk wrote:
  > Probably, the solution is to use a local network connection if
  > :family 'local isn't supported.  This can be tested in lisp with
  >
  >      (featurep 'make-network-process '(:family  local))
  >
  > Maybe Stefan can help you here.

Stephan, can you provide any assistance with this issue?  If you can give me an 
idea what needs to be changed, I would be more than willing to make the change.

Just as a reminder, the issue at hand is that I have managed to port 
emacsclient to Windows but I cannot test it because I get the following error 
when I call server-start
   "Unknown address family"
due to a failure in the built in function "make-network-process" (process.c, 
line 2749).

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: server-start under Windows
@ 2002-11-06 20:01 bkey1
  2002-11-07 14:49 ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: bkey1 @ 2002-11-06 20:01 UTC (permalink / raw)
  Cc: emacs-devel

"Stefan Monnier" <monnier@rum.cs.yale.edu> wrote

> You'll need to hack process.c like you did for emacsclient.c to make
> it understand `local' connections (I assume that w32 has unix-domain
> sockets of some sort).

It appear as if most of this has been done.  I just do not know what
make-network-process is supposed to be doing so I cannot tell what is going 
wrong.  If someone knows how make-network-process is supposed to work and can 
provide a few pointers I may be able to figure it out.

>  Could you show us the patches you needed to
> apply to emacsclient.c ?

I would be more than happy to provide a patch for emacsclient.c that 
incorporates my changes.  I had wanted to be able to test my work before doing 
so, but I could send it to the list tonight with the disclaimer that it is 
almost completely untested.

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

end of thread, other threads:[~2002-11-08 14:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-06  4:45 server-start under Windows Ben Key
2002-11-06  9:53 ` Kim F. Storm
2002-11-06 15:45   ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2002-11-06 14:34 bkey1
2002-11-06 15:55 ` Stefan Monnier
2002-11-06 20:02   ` Jason Rumney
2002-11-08 14:53     ` Kim F. Storm
2002-11-06 20:01 bkey1
2002-11-07 14:49 ` Stefan Monnier

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.