* Weird error message "No error" from emacsclientw.exe, runemacs, cygwin
@ 2008-02-06 0:36 Ben Bullock
2008-02-06 1:12 ` Ben Bullock
0 siblings, 1 reply; 2+ messages in thread
From: Ben Bullock @ 2008-02-06 0:36 UTC (permalink / raw)
To: help-gnu-emacs
I am trying to run Windows native emacs from a Cygwin console. I wrote
a Perl script to assist this process:
#!/usr/bin/perl
use warnings;
use strict;
my @args = @ARGV;
sub cygwin2ms_dir
{
my ($d) = @_;
$d =~ s@/cygdrive/c@C:/@;
return $d;
}
my $emacsbindir = "/cygdrive/c/Program\\ Files/Gnu\\ Emacs\\ 22.1/
bin/";
if (!fork) {
# system($emacsbindir."Emacsclientw.exe --alternate-
editor=".cygwin2ms_dir($emacsbindir)."/runemacs.exe ".join ("
",@args));
system($emacsbindir."Emacsclientw.exe ".join (" ",@args));
}
This worked at first but then I started getting very strange "No
error" error messages as follows:
http://flickr.com/photos/bnz/2245564484/
Commenting out the line with alternate-editor produced the following
problem as well:
http://flickr.com/photos/bnz/2244770591/
Using "emacs.exe" resulted in having one of those nasty black console
windows which is why I am using "runemacs.exe" above. The script does
a fork so as not to hang Cygwin.
Other pertinent information:
* I have been very careful to repeatedly do "server-start" in Emacs
after starting it (I'll provide an image file if disbelieved).
* Sometimes this script works and sometimes it doesn't. I can't see
what I have done differently.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Weird error message "No error" from emacsclientw.exe, runemacs, cygwin
2008-02-06 0:36 Weird error message "No error" from emacsclientw.exe, runemacs, cygwin Ben Bullock
@ 2008-02-06 1:12 ` Ben Bullock
0 siblings, 0 replies; 2+ messages in thread
From: Ben Bullock @ 2008-02-06 1:12 UTC (permalink / raw)
To: help-gnu-emacs
On Feb 6, 9:36 am, Ben Bullock <benkasminbull...@gmail.com> wrote:
> I am trying to run Windows native emacs from a Cygwin console.
Further to this, I've discovered that the emacsclientw.exe connects to
emacs.exe correctly if emacs.exe is started from Cygwin itself, which
solves the problem.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-06 1:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-06 0:36 Weird error message "No error" from emacsclientw.exe, runemacs, cygwin Ben Bullock
2008-02-06 1:12 ` Ben Bullock
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).