* gnuserve switches to the old Emacs window but does not open the file
@ 2006-06-09 10:02 Bernhard Koenig
2006-06-09 16:57 ` Lennart Borgman
0 siblings, 1 reply; 8+ messages in thread
From: Bernhard Koenig @ 2006-06-09 10:02 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 1139 bytes --]
I'm using a Windows machine with Emacs 22.0.50.1.
I also installed the gnuserve package and it seems to be correctly installed,
my .emacs contains
(require 'gnuserv)
(setq gnuserv-frame (car (frame-list)))
(gnuserv-start)
(defadvice server-find-file (around ignore-percent-one (file) activate)
(if (or (not (string= "%1" (file-name-nondirectory file)))
(file-exists-p file))
ad-do-it))
At times, when I use the command "gnuclientw -F filename.txt" this will only
switch to the old emacs window but NOT open the file "filename.txt". Once
this happened, I cannot pass any more files to this old window but have to
close it. Closing then produces a beep on my machine, while usually emacs does not
beep when exiting. In the message box, the line "Server subprocess exited"
appears sometimes, which seems to be related to this problem.
The problem shows up sometimes but not all the times, I couldn't quite
figure out when it does and when not. E.g. if I click two files with gnuclientw
in a very short interval, then it usually works. The longer the interval, the more
likely the problem occurs.
[-- Attachment #1.2: Type: text/html, Size: 2422 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnuserve switches to the old Emacs window but does not open the file
2006-06-09 10:02 gnuserve switches to the old Emacs window but does not open the file Bernhard Koenig
@ 2006-06-09 16:57 ` Lennart Borgman
2006-06-09 20:52 ` Bernhard Koenig
0 siblings, 1 reply; 8+ messages in thread
From: Lennart Borgman @ 2006-06-09 16:57 UTC (permalink / raw)
Cc: help-gnu-emacs
Bernhard Koenig wrote:
> I'm using a Windows machine with Emacs 22.0.50.1.
> I also installed the gnuserve package and it seems to be correctly
> installed,
> my .emacs contains
>
> (require 'gnuserv)
> (setq gnuserv-frame (car (frame-list)))
> (gnuserv-start)
>
> (defadvice server-find-file (around ignore-percent-one (file) activate)
> (if (or (not (string= "%1" (file-name-nondirectory file)))
> (file-exists-p file))
> ad-do-it))
>
> At times, when I use the command "gnuclientw -F filename.txt" this
> will only
> switch to the old emacs window but NOT open the file "filename.txt". Once
> this happened, I cannot pass any more files to this old window but have to
> close it. Closing then produces a beep on my machine, while usually
> emacs does not
> beep when exiting. In the message box, the line "Server subprocess exited"
> appears sometimes, which seems to be related to this problem.
>
> The problem shows up sometimes but not all the times, I couldn't quite
> figure out when it does and when not. E.g. if I click two files with
> gnuclientw
> in a very short interval, then it usually works. The longer the
> interval, the more
> likely the problem occurs.
There are several gnuserve packages. Please use the latest from EmacsW32
(http://ourcomments.org/Emacs/EmacsW32.html) or Guy Gascoigne-Piggford
website.
There is a name clash between the package server.el and gnuserv.el in
the old packages.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnuserve switches to the old Emacs window but does not open the file
2006-06-09 16:57 ` Lennart Borgman
@ 2006-06-09 20:52 ` Bernhard Koenig
2006-06-09 21:42 ` Lennart Borgman
0 siblings, 1 reply; 8+ messages in thread
From: Bernhard Koenig @ 2006-06-09 20:52 UTC (permalink / raw)
Cc: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 2403 bytes --]
----- Original Message -----
From: Lennart Borgman
To: Bernhard Koenig
Cc: help-gnu-emacs@gnu.org
Sent: Friday, June 09, 2006 6:57 PM
Subject: Re: gnuserve switches to the old Emacs window but does not open the file
Bernhard Koenig wrote:
> I'm using a Windows machine with Emacs 22.0.50.1.
> I also installed the gnuserve package and it seems to be correctly
> installed,
> my .emacs contains
>
> (require 'gnuserv)
> (setq gnuserv-frame (car (frame-list)))
> (gnuserv-start)
>
> (defadvice server-find-file (around ignore-percent-one (file) activate)
> (if (or (not (string= "%1" (file-name-nondirectory file)))
> (file-exists-p file))
> ad-do-it))
>
> At times, when I use the command "gnuclientw -F filename.txt" this
> will only
> switch to the old emacs window but NOT open the file "filename.txt". Once
> this happened, I cannot pass any more files to this old window but have to
> close it. Closing then produces a beep on my machine, while usually
> emacs does not
> beep when exiting. In the message box, the line "Server subprocess exited"
> appears sometimes, which seems to be related to this problem.
>
> The problem shows up sometimes but not all the times, I couldn't quite
> figure out when it does and when not. E.g. if I click two files with
> gnuclientw
> in a very short interval, then it usually works. The longer the
> interval, the more
> likely the problem occurs.
There are several gnuserve packages. Please use the latest from EmacsW32
(http://ourcomments.org/Emacs/EmacsW32.html) or Guy Gascoigne-Piggford
website.
There is a name clash between the package server.el and gnuserv.el in
the old packages.
I downloaded the whole package Emacs-22-CvsP060314-EmacsW32-1.00.exe from your link above.
But the problem seems to be the same. The problem happens if I open a file with gnuclientw,
then e.g. browse through directories for a while, then open another file with gnuclientw and
the old emacs windows pops up but does not load the second file.
The new thing with this version is that after closing the emacs window, I get the message:
unable to read the reply from the server
WSAGetLastError=10054
It doesn't seem to be a firewall problem though since I also tried it with the firewall switched off.
[-- Attachment #1.2: Type: text/html, Size: 4142 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnuserve switches to the old Emacs window but does not open the file
2006-06-09 20:52 ` Bernhard Koenig
@ 2006-06-09 21:42 ` Lennart Borgman
2006-06-09 22:15 ` Bernhard Koenig
0 siblings, 1 reply; 8+ messages in thread
From: Lennart Borgman @ 2006-06-09 21:42 UTC (permalink / raw)
Cc: help-gnu-emacs
Bernhard Koenig wrote:
> ----- Original Message -----
>
> *From:* Lennart Borgman <mailto:lennart.borgman.073@student.lu.se>
>
> Bernhard Koenig wrote:
> > The problem shows up sometimes but not all the times, I couldn't
> quite
> > figure out when it does and when not. E.g. if I click two files
> with
> > gnuclientw
> > in a very short interval, then it usually works. The longer the
> > interval, the more
> > likely the problem occurs.
> There are several gnuserve packages. Please use the latest from
> EmacsW32
> (http://ourcomments.org/Emacs/EmacsW32.html) or Guy
> Gascoigne-Piggford
> website.
>
> There is a name clash between the package server.el and gnuserv.el in
> the old packages.
>
> I downloaded the whole package
> Emacs-22-CvsP060314-EmacsW32-1.00.exe from your link above.
> But the problem seems to be the same. The problem happens if I open a
> file with gnuclientw,
> then e.g. browse through directories for a while, then open another
> file with gnuclientw and
> the old emacs windows pops up but does not load the second file.
> The new thing with this version is that after closing the emacs
> window, I get the message:
>
> unable to read the reply from the server
> WSAGetLastError=10054
> It doesn't seem to be a firewall problem though since I also tried it
> with the firewall switched off.
>
Strange, I have never seen this. But did you remove everything about
gnuserv from your startup files (.emacs etc)? If you use the EmacsW32
setup then this starts Emacs and gnuserv automatically for you when you
click a file for example. If you have not removed everything about
gnuserv, could you please try that?
(I guess you downloaded Emacs-22 CvsP060608-EmacsW32-1.03.exe?)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnuserve switches to the old Emacs window but does not open the file
2006-06-09 21:42 ` Lennart Borgman
@ 2006-06-09 22:15 ` Bernhard Koenig
2006-06-09 22:45 ` Lennart Borgman
0 siblings, 1 reply; 8+ messages in thread
From: Bernhard Koenig @ 2006-06-09 22:15 UTC (permalink / raw)
Cc: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 3014 bytes --]
----- Original Message -----
From: Lennart Borgman
To: Bernhard Koenig
Cc: help-gnu-emacs@gnu.org
Sent: Friday, June 09, 2006 11:42 PM
Subject: Re: gnuserve switches to the old Emacs window but does not open the file
Bernhard Koenig wrote:
> ----- Original Message -----
>
> *From:* Lennart Borgman <mailto:lennart.borgman.073@student.lu.se>
>
> Bernhard Koenig wrote:
> > The problem shows up sometimes but not all the times, I couldn't
> quite
> > figure out when it does and when not. E.g. if I click two files
> with
> > gnuclientw
> > in a very short interval, then it usually works. The longer the
> > interval, the more
> > likely the problem occurs.
> There are several gnuserve packages. Please use the latest from
> EmacsW32
> (http://ourcomments.org/Emacs/EmacsW32.html) or Guy
> Gascoigne-Piggford
> website.
>
> There is a name clash between the package server.el and gnuserv.el in
> the old packages.
>
> I downloaded the whole package
> Emacs-22-CvsP060314-EmacsW32-1.00.exe from your link above.
> But the problem seems to be the same. The problem happens if I open a
> file with gnuclientw,
> then e.g. browse through directories for a while, then open another
> file with gnuclientw and
> the old emacs windows pops up but does not load the second file.
> The new thing with this version is that after closing the emacs
> window, I get the message:
>
> unable to read the reply from the server
> WSAGetLastError=10054
> It doesn't seem to be a firewall problem though since I also tried it
> with the firewall switched off.
>
Strange, I have never seen this. But did you remove everything about
gnuserv from your startup files (.emacs etc)? If you use the EmacsW32
setup then this starts Emacs and gnuserv automatically for you when you
click a file for example. If you have not removed everything about
gnuserv, could you please try that?
(I guess you downloaded Emacs-22 CvsP060608-EmacsW32-1.03.exe?)
You're right, I downloaded Emacs-22 CvsP060608-EmacsW32-1.03.exe but note that
on http://ourcomments.org/Emacs/EmacsW32.html the link reads Emacs-22-CvsP060314-EmacsW32-1.00.exe.
Previously, I still had gnuserv in my .emacs file. Now I removed gnuserve from .emacs and if
I type "gnuclientw filename.txt" then emacs opens but does not load any file (now even if it's the
first file to open).
Starting emacs (in whichever way) now almost immediately leads to the following message:
"Started Emacs and tried to connect during 60 seconds. Connection still fails. Are you sure gnuserve.exe
is started by Emacs? WSAGetLastError=10061."
Maybe there is a problem with my setup, but I simply used the install wizard until finish (and I'm really
working with the new version now). Is there anything I might have forgotten in the setup?
[-- Attachment #1.2: Type: text/html, Size: 5621 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnuserve switches to the old Emacs window but does not open the file
2006-06-09 22:15 ` Bernhard Koenig
@ 2006-06-09 22:45 ` Lennart Borgman
0 siblings, 0 replies; 8+ messages in thread
From: Lennart Borgman @ 2006-06-09 22:45 UTC (permalink / raw)
Cc: help-gnu-emacs
Bernhard Koenig wrote:
>
> You're right, I downloaded Emacs-22 CvsP060608-EmacsW32-1.03.exe but
> note that
> on http://ourcomments.org/Emacs/EmacsW32.html the link reads
> Emacs-22-CvsP060314-EmacsW32-1.00.exe.
Hm. I will try to do something about that ... - I just don't want to
change all the dates every time I upload a new version.
>
> Previously, I still had gnuserv in my .emacs file. Now I removed
> gnuserve from .emacs and if
> I type "gnuclientw filename.txt" then emacs opens but does not load
> any file (now even if it's the
> first file to open).
Could you please try the tests below?
Try the command file emacs.cmd that is written at the installation to
the EmacsW32 subdirectory. To open a file you can do
emacs.cmd filename.txt
Try also the Send To shortcut in Windows Explorer. There should be an
Emacs entry now.
Try the above two tests first with Emacs not started and then with Emacs
already started. Start Emacs from the Quick Launch icon then.
> Starting emacs (in whichever way) now almost immediately leads to the
> following message:
>
> "Started Emacs and tried to connect during 60 seconds. Connection
> still fails. Are you sure gnuserve.exe
> is started by Emacs? WSAGetLastError=10061."
This means there was a timeout when gnuclient waited for gnuserv. The
most likely reason is that it took long time to start Emacs. Do you have
a gnuserv process in Emacs? Inside Emacs do
M-x list-processes
The output should look something like (possibly scrambled a bit by mail):
Proc Status
Buffer Command
---- ------
------ -------
server run
(none) c:/Program
Files/Emacs/EmacsW32/bin/gnuserv.exe
>
> Maybe there is a problem with my setup, but I simply used the install
> wizard until finish (and I'm really
> working with the new version now). Is there anything I might have
> forgotten in the setup?
The setup should be fine then if you do not have something else in your
setup that clashes with gnuserv. You could of course try renaming .emacs
temporarily and restart Emacs to test that.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnuserve switches to the old Emacs window but does not open the file
@ 2006-06-09 22:32 Bernhard Koenig
2006-06-09 22:57 ` Lennart Borgman
0 siblings, 1 reply; 8+ messages in thread
From: Bernhard Koenig @ 2006-06-09 22:32 UTC (permalink / raw)
Cc: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 3776 bytes --]
----- Original Message -----
From: Bernhard Koenig
To: Lennart Borgman
Cc: help-gnu-emacs@gnu.org
Sent: Saturday, June 10, 2006 12:15 AM
Subject: Re: gnuserve switches to the old Emacs window but does not open the file
----- Original Message -----
From: Lennart Borgman
To: Bernhard Koenig
Cc: help-gnu-emacs@gnu.org
Sent: Friday, June 09, 2006 11:42 PM
Subject: Re: gnuserve switches to the old Emacs window but does not open the file
Bernhard Koenig wrote:
> ----- Original Message -----
>
> *From:* Lennart Borgman <mailto:lennart.borgman.073@student.lu.se>
>
> Bernhard Koenig wrote:
> > The problem shows up sometimes but not all the times, I couldn't
> quite
> > figure out when it does and when not. E.g. if I click two files
> with
> > gnuclientw
> > in a very short interval, then it usually works. The longer the
> > interval, the more
> > likely the problem occurs.
> There are several gnuserve packages. Please use the latest from
> EmacsW32
> (http://ourcomments.org/Emacs/EmacsW32.html) or Guy
> Gascoigne-Piggford
> website.
>
> There is a name clash between the package server.el and gnuserv.el in
> the old packages.
>
> I downloaded the whole package
> Emacs-22-CvsP060314-EmacsW32-1.00.exe from your link above.
> But the problem seems to be the same. The problem happens if I open a
> file with gnuclientw,
> then e.g. browse through directories for a while, then open another
> file with gnuclientw and
> the old emacs windows pops up but does not load the second file.
> The new thing with this version is that after closing the emacs
> window, I get the message:
>
> unable to read the reply from the server
> WSAGetLastError=10054
> It doesn't seem to be a firewall problem though since I also tried it
> with the firewall switched off.
>
Strange, I have never seen this. But did you remove everything about
gnuserv from your startup files (.emacs etc)? If you use the EmacsW32
setup then this starts Emacs and gnuserv automatically for you when you
click a file for example. If you have not removed everything about
gnuserv, could you please try that?
(I guess you downloaded Emacs-22 CvsP060608-EmacsW32-1.03.exe?)
You're right, I downloaded Emacs-22 CvsP060608-EmacsW32-1.03.exe but note that
on http://ourcomments.org/Emacs/EmacsW32.html the link reads Emacs-22-CvsP060314-EmacsW32-1.00.exe.
Previously, I still had gnuserv in my .emacs file. Now I removed gnuserve from .emacs and if
I type "gnuclientw filename.txt" then emacs opens but does not load any file (now even if it's the
first file to open).
Starting emacs (in whichever way) now almost immediately leads to the following message:
"Started Emacs and tried to connect during 60 seconds. Connection still fails. Are you sure gnuserve.exe
is started by Emacs? WSAGetLastError=10061."
Maybe there is a problem with my setup, but I simply used the install wizard until finish (and I'm really
working with the new version now). Is there anything I might have forgotten in the setup?
I just realized that I should use "gnuclientw -sqf" instead of "gnuclientw -F" (which I used). So forget about
the 10061-error. Now if I use "gnuclientw -sqf filename.txt" then we are back at the old problem.
emacs opens one window but upon further use of "gnuclientw -sqf filename.txt", the windows pops up
but does not load the file. Error again "Unable to reply from the server = 10054".
[-- Attachment #1.2: Type: text/html, Size: 7450 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-06-09 22:57 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-09 10:02 gnuserve switches to the old Emacs window but does not open the file Bernhard Koenig
2006-06-09 16:57 ` Lennart Borgman
2006-06-09 20:52 ` Bernhard Koenig
2006-06-09 21:42 ` Lennart Borgman
2006-06-09 22:15 ` Bernhard Koenig
2006-06-09 22:45 ` Lennart Borgman
-- strict thread matches above, loose matches on Subject: below --
2006-06-09 22:32 Bernhard Koenig
2006-06-09 22:57 ` Lennart Borgman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).