Underwood, Jonathan | 1 Mar 2003 01:34
Picon

RE: GnuServ crashing?

Sorry to add nothing more than a "me too" but i find gnuserv crashes
periodically, though not taking emacs with it, often when i click on a file
associated with gnuserv and i already have an emacs open. This is windows
2000, emacs 21.2. I figured it was because gnuserv is old and hacked and
kludgy :)

j.

> -----Original Message-----
> From: Peter Davis [mailto:pd <at> world.std.com]
> Sent: February 27, 2003 10:12 PM
> To: help-emacs-windows <at> gnu.org
> Subject: [h-e-w] GnuServ crashing?
> 
> 
> I'm running GNU Emacs 21.1.1 on Windows NT4 and 2000 (both soon to be
> upgraded to XP Pro.)
> 
> I've been using mutt, running on Cygwin, to read email.  I have the
> editor set to run this shell script, which invokes gnuclient:
> 
> #!/bin/sh
> /cygdrive/d/bin/gnuclient -F c:/temp/`basename $*`
> exit 0
> 
> The problem is that once in a while, gnuserv crashes, taking emacs
> with it.  This always happens just as I'm about to start editing a
> reply.
> 
> Anyone seen this?  Any known cure?  I end up having to exit mutt,
(Continue reading)

Galen Boyer | 1 Mar 2003 07:37

Re: GnuServ crashing?

On Thu, 27 Feb 2003, pd <at> world.std.com wrote:
> I'm running GNU Emacs 21.1.1 on Windows NT4 and 2000 (both soon to be
> upgraded to XP Pro.)
> 
> I've been using mutt, running on Cygwin, to read email.  I have the
> editor set to run this shell script, which invokes gnuclient:
> 
> 
> 
> The problem is that once in a while, gnuserv crashes, taking emacs
> with it.  This always happens just as I'm about to start editing a
> reply.
> 
> Anyone seen this?  Any known cure?  I end up having to exit mutt,
> restart my SSH tunneler, etc.  It's a pain.

You are running

    #!/bin/sh
    /cygdrive/d/bin/gnuclient -F c:/temp/`basename $*`
    exit 0

I thought you were supposed to run gnuclientw.exe?

--

-- 
Galen deForest Boyer
Sweet dreams and flying machines in pieces on the ground.

Peter Davis | 1 Mar 2003 04:58
Picon
Picon
Favicon

Re: Re: GnuServ crashing?

On Fri, Feb 28, 2003 at 10:37:20PM -0800, Galen Boyer wrote:
> On Thu, 27 Feb 2003, pd <at> world.std.com wrote:
> > I'm running GNU Emacs 21.1.1 on Windows NT4 and 2000 (both soon to be
> > upgraded to XP Pro.)
> > 
> > I've been using mutt, running on Cygwin, to read email.  I have the
> > editor set to run this shell script, which invokes gnuclient:
> > 
> > 
> > 
> > The problem is that once in a while, gnuserv crashes, taking emacs
> > with it.  This always happens just as I'm about to start editing a
> > reply.
> > 
> > Anyone seen this?  Any known cure?  I end up having to exit mutt,
> > restart my SSH tunneler, etc.  It's a pain.
> 
> You are running
> 
>     #!/bin/sh
>     /cygdrive/d/bin/gnuclient -F c:/temp/`basename $*`
>     exit 0
> 
> I thought you were supposed to run gnuclientw.exe?

I think gnuclientw is for *asynchronous* use.  I want mutt to block
until I've saved the message and finished with 'C-x #'.  It works
beautifully most of the time, but every few days (with both mutt and
emacs running continuously), it crashes emacs.

(Continue reading)

Richard M. Heiberger | 1 Mar 2003 09:46
Picon

file ownership in NTemacs

Windows XP Home edition has a concept of file ownership that
parts of NTemacs understand and other parts don't.  These are
my observations along with a request for someone who understands
the underlying Windows to fix the behavior I see.

There are three accounts on my machine: Administrator, Owner, rmh.
The machine came with the Owner account and I copied many files to the
machine in that account before I created my own rmh account.

I can gunzip gzipped files belonging to Owner from dired by entering
    X gunzip -N
(The more obvious Z isn't working, I don't know why.  Z does gzip files.)
Then when I open them into emacs, they come up empty with a warning that
the file exists but can't be read.

I discovered that I can use M 777 from dired to change the mode, and then
the file can be read.  The obvious O command to change the owner is not
supported on NTemacs.  The corresponding chown is supported by cygwin.

dired shows owner and group
  -rw-rw-rw-   1 rmh      root    32851 Mar 23  1999 cdrom
find-dired shows
  -rwx------+   1 Owner    mkpasswd    32851 Mar 23  1999 cdrom

system files are shown by dired
  -rw-rw-rw-   1 rmh      root      799 Aug 18  2001 prtwebvw.css
and by find-dired
  -rwxrwx---+   1 Administ SYSTEM        799 Aug 18  2001 prtwebvw.css

I am currently using
(Continue reading)

Harald.Maier.BW | 1 Mar 2003 11:38
Picon
Favicon

Re: GUD and Cygwin


Paul Whitfield <paulw <at> microsol.iinet.net.au> writes:

> Hi All,
>
> I have a question regarding emacs, gdb and cygwin.
>
> I am using a cygwin based version of gdb that communicates with an
> embedded board.
>
> Everything works really well, except that the source paths are
> based on cygwin mounts, so while gdb can find the source, emacs
> can not.
>
> Is there any way I can get emacs/gud to understand cygwin's directory
> mounts and find my source code?

For this case it's maybe easier or better to use the cygwin included
emacs-21.2.  It's a X11 emacs. cygwin too delivers a X server. With
that you can run the cygwin emacs. I have not tried yet to debug
something but I assume that it works fine.

Harald

Robinows | 1 Mar 2003 14:01
Picon
Favicon

Re: GUD and Cygwin

Harald.Maier.BW <at> t-online.de writes:
Paul Whitfield <paulw <at> microsol.iinet.net.au> writes:

>I have a question regarding emacs, gdb and cygwin.
>I am using a cygwin based version of gdb that communicates with an
>embedded board.
>Everything works really well, except that the source paths are
>based on cygwin mounts, so while gdb can find the source, emacs
>can not.
>Is there any way I can get emacs/gud to understand cygwin's directory
>mounts and find my source code?
For this case it's maybe easier or better to use the cygwin included
emacs-21.2.  It's a X11 emacs. cygwin too delivers a X server. With
that you can run the cygwin emacs. I have not tried yet to debug
something but I assume that it works fine.



If you'd rather not run X, you might try cygwin-mount.el at
http://www.emacswiki.org/elisp/index.html

Or, you can always try the cygwin-compiled XEmacs.
Alexandre Dolique | 1 Mar 2003 14:17
Picon

How to tell (windows) emacs which ftp.exe, ediff.exe, grep.exe... files to use

Good afternoon,

Would someone know and could please tell me, how to tell emacs where to find
the ftp.exe, ediff.exe, grep.exe executables it needs to use to access
remote files, execute diffs or grep commands?

I have all these executables on my PC either in the 
directory C:\Program Files\emacs-20.7\bin
or in C:\cygwin\bin.

Is there an emacs variable I need to set in my .emacs file?

Thank you very much for your help.

Regards,

Alexandre DOLIQUE.

Good afternoon,
 
Would someone know and could please tell me, how to tell emacs where to find the ftp.exe, ediff.exe, grep.exe executables it needs to use to access remote files, execute diffs or grep commands?
 
I have all these executables on my PC either in the
directory C:\Program Files\emacs-20.7\bin
or in C:\cygwin\bin.
 
Is there an emacs variable I need to set in my .emacs file?
 
Thank you very much for your help.
 
Regards,
 
Alexandre DOLIQUE.
Wojciech Komornicki | 1 Mar 2003 18:19
Favicon

How to tell (windows) emacs which ftp.exe, ediff.exe, grep.exe... files to use

>>>>> "Alexandre" == Alexandre Dolique <adolique <at> noos.fr> writes:

  Alexandre:> Good afternoon,
  Alexandre:>
  Alexandre:> Would someone know and could please tell me, how to tell emacs where to find
  Alexandre:> the ftp.exe, ediff.exe, grep.exe executables it needs to use to access
  Alexandre:> remote files, execute diffs or grep commands?

  Alexandre:>
  Alexandre:> I have all these executables on my PC either in the
  Alexandre:> directory C:\Program Files\emacs-20.7\bin
  Alexandre:> or in C:\cygwin\bin.
  Alexandre:>
  Alexandre:> Is there an emacs variable I need to set in my .emacs file?

  Alexandre:>

You can either set the path environment variable so that the directory
containing these programs comes first or you can set the variables
     ftp-program
     grep-command
etc to point to the right program.  For example, I have the following
      grep-command's value is
      "c:\\emacs\\bin\\grep -n "

      Documentation:
      The default grep command for M-x grep.
      The default value of this variable is set up by `grep-compute-defaults';
      call that function before using this variable in your program.

      You can customize this variable.

      Defined in `compile'.

--
Wojciech Komornicki                                      Dept of Mathematics
wnk <at> piper.hamline.edu                                     Hamline University
http://www.hamline.edu/~wnk/                               St Paul, MN 55104
                                                                         USA
Galen Boyer | 1 Mar 2003 22:15

Re: How to tell (windows) emacs which ftp.exe, ediff.exe, grep.exe... files to use

On Sat, 1 Mar 2003, adolique <at> noos.fr wrote:
> Good afternoon, Would someone know and could please tell me, how
> to tell emacs where to find the ftp.exe, ediff.exe, grep.exe
> executables it needs to use to access remote files, execute diffs or
> grep commands?  I have all these executables on my PC either in
> the directory C:\Program Files\emacs-20.7\bin or in
> C:\cygwin\bin. Is there an emacs variable I need to set in my
> .emacs file? 

Do you understand the concept of an OS path, but you would like to know
how to do this exclusively in Emacs, or do you not understand PATH and
really just want that this is enabled?  (The explanation for these two
would be different)

--
Galen deForest Boyer
Sweet dreams and flying machines in pieces on the ground.

Guy Worthington | 2 Mar 2003 04:38
Picon

Re: Re: How to tell (windows) emacs which ftp.exe, ediff.exe, grep.exe... files to use

Galen Boyer wrote:
> adolique <at> noos.fr wrote:

> > Good afternoon, Would someone know and could please tell me, how
> > to tell emacs where to find the ftp.exe, ediff.exe, grep.exe
> > executables it needs to use to access remote files, execute diffs or
> > grep commands?

> Do you understand the concept of an OS path, but you would like to know
> how to do this exclusively in Emacs, or do you not understand PATH and
> really just want that this is enabled?  (The explanation for these two
> would be different)

Funny you should ask that question, I've never understood how to
inherit the PATH environment variable from windows.  Eventually I just
gave up trying to inherit common environment variables and I now just
consider emacs as a completely independent shell (i.e. independent
from the windows shell), and manually set all paths for executables
that I want to operate from within emacs.

In the following code snippet, you'll see all the paths to executables
are manually set from within emacs.  The reason I've gone to so much
trouble is that previously I had name collisions.  For instance,
my win2K box has an ftp.exe installed in the path c:\WINNT\system32,
and also an ftp.exe installed in the path c:\cygwin\bin, to avoid a
name collision, I've specifically included the c:\cygwin\bin, (and
I've not included a path c:\WINNT\system32).

So if you add a suitably modified version of the code below to your
.emacs, you should be able to run the Cygwin tools (and other tools
you'd like to run within emacs).

-----

;; set exec-path explicitly, and then Sync exec-path to PATH
(setq exec-path '("c:/emacs-21.2/bin/"
		  "c:/local/TeX/bin/win32/"
		  "c:/gs/gs8.00/bin/"
		  "c:/gs/Ghostgum/gsview/"
		  "c:/Java/j2SDK1.4.0_01/bin/"
		  "c:/Java/jakarta-ant-1.5.1/bin/"
		  "c:/Perl/bin/"
		  "c:/Cygwin/bin/"
		  "c:/Cygwin/usr/local/bin/"))
(setenv "PATH" (mapconcat 'identity exec-path path-separator))

-----

P.S. I don't use tools such as etags.exe, so I'm not sure how you
avoid name collisions, for the handfull of tools that emacs and Cygwin
have in common.


Gmane