[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [h-e-w] Problems with gnuserv and NTEmacs (again)
From: |
Eli Daniel |
Subject: |
RE: [h-e-w] Problems with gnuserv and NTEmacs (again) |
Date: |
Thu, 12 Dec 2002 11:37:51 -0500 |
I'm not sure that we have exactly the same problem, because my *server*
window doesn't give the "Server subprocess exited" message.
However, I too had essentially the same symptom. I think it's caused by
a windows bug. I tried attaching the VC++ debugger to gnuserv to see if
I could find the problem, and discovered that when gnuserv had the
debugger attached, everything works fine. Furthermore, as long as VC++
keeps running (even if the original gnuserv process dies and I start
another), everything works. But when I close VC++, it stops working.
So, now I just keep an instance of VC++ running in the background, and
everything is fine. I imagine one of these days, a windows service pack
will come out that fixes the problem.
If you have VC++ (or another debugger), give that a shot.
Alternatively, you can try using a different version of gnuserv. I
remember there was an old one around for windows that used mailslots for
inter-process communication instead of TCP sockets. That one might not
suffer from the same problem.
-Eli
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Fredrik Ă–berg
> Sent: Thursday, December 12, 2002 10:11 AM
> To: address@hidden
> Subject: [h-e-w] Problems with gnuserv and NTEmacs (again)
>
> Dear list,
> a couple of months ago I had problems getting gnuserv to work on my
> XP machine. What I was trying to achieve was to have a shortcut to
> gnuclientw in my SendTo folder to be able to open files in emacs in
> an easy way. The first time I sent a file to emacs, it all worked
well,
> but I was not able to send another file to emacs. Nothing happened in
> emacs, ie the second file never showed up. I mailed the list and got
> help from several of you, but it didn't solve the problem. Then, after
> installing XP SP1 everything worked and I was happy with that.
>
> Now I'm trying to set up the same configuration on a W2K box but end
> up with the same result. In my .emacs I have
>
> (setenv "GNUSERV_SHOW_EMACS" "1")
> (setq gnuserv-frame (selected-frame))
> (get-buffer-create "*server*")
> (require 'gnuserv)
> (gnuserv-start)
> (message "gnuserv started.")
>
>
> gnuserv.el is in emacs\site-lisp, gnuserv binaries are in emacs\bin.
>
> When starting emacs by just using the shortcut, *Message* buffer looks
> like this:
>
> (C:\Program\emacs-21.2\bin\emacs.exe)
> gnuserv started.
> Loading font-lock...
> Loading regexp-opt...done
> Loading font-lock...done
> Loading paren...done
> Loading time...
> Loading image...done
> Loading time...done
> For information about the GNU Project and its goals, type C-h C-p.
> Server subprocess exited
> Loading lazy-lock...done
> Fontifying *scratch*... (regexps.............)
> Loading lazy-lock...done
>
> while the *server* buffer says
>
> Server subprocess exited
>
>
> Task manager tells me gnuserv.exe is running. Trying to send a file to
> emacs now will result in emacs getting the focus and the hourglass is
> shown but no file is read into emacs. After a second or two, the
> hourglass disappears. There is no action in *server* or *Messages*
>
> If I exit emacs, selects a file in explorer and sends it to emacs,
the
> file is read into emacs. *server* says
>
> 324 (server-edit-files-quickly '((1 . "c:/Program/emacs-21.2/site-
> lisp/gnuserv.el")))
> 324/3:nil
>
> while *Messages* say
>
> (C:\Program\emacs-21.2\bin\emacs.exe)
> gnuserv started.
> Loading font-lock...
> Loading regexp-opt...done
> Loading font-lock...done
> Loading paren...done
> Loading time...
> Loading image...done
> Loading time...done
> For information about the GNU Project and its goals, type C-h C-p.
> Loading lazy-lock...done
> Fontifying gnuserv.el... (regexps.............)
> Loading lazy-lock...done
> Fontifying *scratch*... (regexps.............)
> Loading lazy-lock...done
>
>
> Trying to send another file does nothing, no action in *Messages* or
> *server*. However, there is a gnuclientw.exe running in Task manager.
>
> Can anybody help me on this?
>
> Many thanks in advance
> //Fredrik