Cygwin stuff 2 niki [was:Re: NEdit Features]

Tony Balinski ajbj at free.fr
Mon Jun 11 22:56:40 CEST 2007


Quoting Joerg Fischer <jf505 at gmx.de>:

> Thorsten Haude wrote:
>
> > We could do this for FTP, but I hoped for something on the webpage.
> > Anything except http://nedit.gmxhome.de/nedit/default.html to put on
> > FTP?
>
> In that post I refered completely to
>
> http://www.nedit.org/niki/index.php/MinimalCygwin
>
> There I created links to files hosted on nedit.gmxhome.de. These are
> mostly text files, but nevertheless I think it would be better to
> create a directory on nedit.org/ftp/contrib/misc/  for this stuff.
>
> Of course, to quote myself: you can copy anything you like from my
> page and put it on nedit.org or niki.

Hmmm. Interesting. It looks like I find cygwin a lot more stable than you do.
I use Cygwin/X rather than Xming. I've never had filter problems, and I can
copy between nedit and windows reasonably well (it tends to stop working in
the "to windows" direction after a while - then you need to restart the X
server). I also only ever use dos->cygwin path translation. This requires
careful management of paths containing spaces. A useful macro I have launches
an Explorer window for the nedit document's directory:

  redirects = "</dev/null >/dev/null 2>&1"
  s = shell_command("exec sh", \
                    "(echo start explorer . | cmd) " redirects " &")
  if (s != "" || $shell_cmd_status != 0)
    {
    if (s != "")
      s = "\n" s
    dialog("Failed to launch Windows Explorer" s, "Dismiss")
    }

It works best when the "Explorer >Options... >Folder Options> View tab" flag
"Launch folder windows in a separate process" is turned off; otherwise you
won't be able to quit nedit (cleanly) until all explorer windows it has opened
are first closed (don't know why nedit is still sensitive to those
processes!).

Tony

Tony



More information about the Develop mailing list