Re: Emacs in Cygwin: (file-exists-p c:/)?

2011-11-30 Thread Ken Brown

On 11/30/2011 4:08 PM, Tim McDaniel wrote:

I dunno whether anyone here know about Emacs, but I thought I would
ask.

In a previous setup (Windows XP, 32-bit), I believe that running the
Emacs function
(file-exists-p c:/)
produced t.

Now, with the latest Cygwin, Windows 7, 64-bit, emacs-version
23.3.1,
(file-exists-p c:/)
nil
(file-exists-p c:\\)
nil
I notice it because it broke some code, my .emacs startup file to be
precise. It was a quick and easy way to check whether it was running
under Windows.

I have a workaround,
(file-exists-p /mnt/c)
but that only works because I know that I have changed the drive
prefix from /cygdrive to /mnt.

Can it be made to work again? Any suggestions on how to tell in Emacs
whether I'm running under Windows?


I'm not sure what you mean by running under Windows, but I think the 
variable `system-type' should do whatever you need.  For example, I do 
system-specific customization by putting the following in my .emacs file:


(cond
 ((eq system-type 'cygwin) (load cygwin-init))
 ((eq system-type 'windows-nt) (load nt-init))
 ((eq system-type 'gnu/linux) (load linux-init)))

Ken


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Compiling XEmacs 21.4.17 (was Re: Emacs from cygwin in X mode with no X running)

2005-08-30 Thread Henry S. Thompson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

ht writes:

 Or you can compile your own 21.4.17 from source, but this is _not_ a
 'straight-out-of-the-box' exercise.  If you try this and have trouble,
 I'll try to dig out my config.status and other notes from the last
 time I made it all work.  I _think_ the rebase problems (google
 cygwin+xemacs+rebase) have disappeared, but I may be wrong.

For the record, here's what works for me to build XEmacs 21.4.17 from
source under cygwin w/o X:

 ./configure --without-x11 --pdump --with-modules=no
 make

ht
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
 Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: [EMAIL PROTECTED]
   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDFCiIkjnJixAXWBoRAg/0AJ9sRq9anIqhrGpSkkK3SzuoGFSffwCfW+iY
UoH5S12CPke9zNwKxzftbAo=
=1065
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Emacs from cygwin in X mode with no X running

2005-08-27 Thread Harry Putnam
James R. Phillips [EMAIL PROTECTED] writes:

 Have you actually tried installing the x-server and using it?  It takes a 
 while
Yes.  I just wanted to stay away from extra stuff.  But as you
surmised, not if it requires huge energy output.

 to download, but can be used somewhat unobtrusively.


 The default startxwin.sh shell script starts xwin in the multiwindow mode,
 which means you get a black X icon in the system tray when there are no X
 clients, and otherwise each client opens in a fairly normal looking window on
 the windows desktop.  If you comment out the xterm invocation in the script,
 you mostly don't need to be aware that X is running.  Client windows will just

This sounds like a handy way to go at it.  I wasn't clever enough to
think to edit the startx script.  


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Andy Moreton
On Fri, 26 Aug 2005 11:39:39 GMT, Harry Putnam wrote:

 My background is unix/linux so when I find myself on MS OS of one
 vintage or another I sorely need the cygwin tools.  
 
 However, one thing I've not found a way to get smoothed out is how to
 run emacs.
 
 I want to run emacs in gui mode but without starting an X session.
 That is, similar to what is possible with ntemacs.
 
 Now I could just use ntemacs but then one runs into path problems
 since that tool doesn't know about `cygdrive', and I see no handy way
 to make that work with both cygwin setup and win native stuff.
 
 Using the cygwin installed emacs I get the -nw effect as if emacs were
 running in a linux console, unless I start an X session and run emacs
 from there.
 
 Is there a handy way (on winxp) to use emacs as if in X but without
 installing or using the X side of cygwin?

You may find it easier to teach NTemacs about cygwin paths:

http://www.emacswiki.org/cgi-bin/wiki/cygwin-mount.el


AndyM


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Harry Putnam
Andy Moreton [EMAIL PROTECTED] writes:

 On Fri, 26 Aug 2005 11:39:39 GMT, Harry Putnam wrote:

 My background is unix/linux so when I find myself on MS OS of one
 vintage or another I sorely need the cygwin tools.  
 
 However, one thing I've not found a way to get smoothed out is how to
 run emacs.
 
 I want to run emacs in gui mode but without starting an X session.
 That is, similar to what is possible with ntemacs.
 
 Now I could just use ntemacs but then one runs into path problems
 since that tool doesn't know about `cygdrive', and I see no handy way
 to make that work with both cygwin setup and win native stuff.
 
 Using the cygwin installed emacs I get the -nw effect as if emacs were
 running in a linux console, unless I start an X session and run emacs
 from there.
 
 Is there a handy way (on winxp) to use emacs as if in X but without
 installing or using the X side of cygwin?

 You may find it easier to teach NTemacs about cygwin paths:

 http://www.emacswiki.org/cgi-bin/wiki/cygwin-mount.el

What is supposed to happen with this?  Once loaded is it supposed to
make emacs know about /cygdrive?  Doesn't seem to have much of an
effect here.

M-x load-file ./cygwin-mount.el
C-x d /usr/bin

Doesn't work

C-x d /cygdrive/c

Doesn't work

It does seem to have tought emacs thate C:/ = / but in cygwineze that
isn't what is used.  There you have C:/Cygwin = /

So that doesn't help much with cygdrive.  Still /usr/bin is
unknown for example


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Henry S. Thompson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Harry Putnam writes:

 I want to run emacs in gui mode but without starting an X session.
 That is, similar to what is possible with ntemacs.

This can be done easily with XEmacs.  You can get an only slightly
stale version (21.4.13) straight out of the box from XEmacs.org [1]
(pick 'native windows').

Or you can compile your own 21.4.17 from source, but this is _not_ a
'straight-out-of-the-box' exercise.  If you try this and have trouble,
I'll try to dig out my config.status and other notes from the last
time I made it all work.  I _think_ the rebase problems (google
cygwin+xemacs+rebase) have disappeared, but I may be wrong.

ht

[1] http://www.xemacs.org/Download/win32/setup.exe
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
 Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: [EMAIL PROTECTED]
   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDDxGckjnJixAXWBoRAq/KAJ0bS+t1Z1/51ZmmdehRN5PnkPDUXACfUgTc
XbF8BmdDMGvdyeJ0JSU0fFo=
=gpy+
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Harry Putnam
[EMAIL PROTECTED] (Henry S. Thompson) writes:
[...]

 This can be done easily with XEmacs.  You can get an only slightly
 stale version (21.4.13) straight out of the box from XEmacs.org [1]
 (pick 'native windows').

 Or you can compile your own 21.4.17 from source, but this is _not_ a
 'straight-out-of-the-box' exercise.  If you try this and have trouble,
 I'll try to dig out my config.status and other notes from the last
 time I made it all work.  I _think_ the rebase problems (google
 cygwin+xemacs+rebase) have disappeared, but I may be wrong.

Very kind of you to offer.  However I'm a confirmed fsf emacs user.
Tried Xemacs several times but always returned to fsf emacs.

Its been my tool of choice for  4-6 yrs now.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Igor Pechtchanski
On Fri, 26 Aug 2005, Harry Putnam wrote:

 [EMAIL PROTECTED] (Henry S. Thompson) writes:

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

 [...]

  This can be done easily with XEmacs.  You can get an only slightly
  stale version (21.4.13) straight out of the box from XEmacs.org [1]
  (pick 'native windows').
 
  Or you can compile your own 21.4.17 from source, but this is _not_ a
  'straight-out-of-the-box' exercise.  If you try this and have trouble,
  I'll try to dig out my config.status and other notes from the last
  time I made it all work.  I _think_ the rebase problems (google
  cygwin+xemacs+rebase) have disappeared, but I may be wrong.

 Very kind of you to offer.  However I'm a confirmed fsf emacs user.
 Tried Xemacs several times but always returned to fsf emacs.

 Its been my tool of choice for  4-6 yrs now.

Well, you could try compiling Emacs yourself and linking it against libW11
(that comes with rxvt).  Most likely, this will not work, but I'm sure
patches for missing functionality would be thoughtfully considered by the
developers of rxvt.  'Tis a long and winding road, though.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Andy Moreton
On Fri, 26 Aug 2005 12:46:38 GMT, Harry Putnam wrote:

 Andy Moreton [EMAIL PROTECTED] writes:
 
 On Fri, 26 Aug 2005 11:39:39 GMT, Harry Putnam wrote:
[snipped]

 You may find it easier to teach NTemacs about cygwin paths:

 http://www.emacswiki.org/cgi-bin/wiki/cygwin-mount.el
 
 What is supposed to happen with this?  Once loaded is it supposed to
 make emacs know about /cygdrive?  Doesn't seem to have much of an
 effect here.
 
 M-x load-file ./cygwin-mount.el
 C-x d /usr/bin
 
 Doesn't work
 
 C-x d /cygdrive/c
 
 Doesn't work
 
 It does seem to have tought emacs thate C:/ = / but in cygwineze that
 isn't what is used.  There you have C:/Cygwin = /
 
 So that doesn't help much with cygdrive.  Still /usr/bin is
 unknown for example

Try a little reading - its all documented in the file.
Either use the Cygwin Mount group in Customize, or add the following:

(require 'cygwin-mount)
(cygwin-mount-activate)


AndyM


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Harry Putnam
Igor Pechtchanski [EMAIL PROTECTED] writes:


 Well, you could try compiling Emacs yourself and linking it against libW11
 (that comes with rxvt).  Most likely, this will not work, but I'm sure
 patches for missing functionality would be thoughtfully considered by the
 developers of rxvt.  'Tis a long and winding road, though.

I'm sure they would.. but I'm afraid this is well above my skill level.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Harry Putnam
Andy Moreton [EMAIL PROTECTED] writes:


 (cygwin-mount-activate)

Egad I am being a tedious bore.   I failed to eval that in my test.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread Harry Putnam
Andy Moreton [EMAIL PROTECTED] writes:

 On Fri, 26 Aug 2005 12:46:38 GMT, Harry Putnam wrote:

 Andy Moreton [EMAIL PROTECTED] writes:
 
 On Fri, 26 Aug 2005 11:39:39 GMT, Harry Putnam wrote:
 [snipped]

 You may find it easier to teach NTemacs about cygwin paths:

 http://www.emacswiki.org/cgi-bin/wiki/cygwin-mount.el
 
 What is supposed to happen with this?  Once loaded is it supposed to
 make emacs know about /cygdrive?  Doesn't seem to have much of an
 effect here.
 
 M-x load-file ./cygwin-mount.el
 C-x d /usr/bin
 
 Doesn't work
 
 C-x d /cygdrive/c
 
 Doesn't work
 
 It does seem to have tought emacs thate C:/ = / but in cygwineze that
 isn't what is used.  There you have C:/Cygwin = /
 
 So that doesn't help much with cygdrive.  Still /usr/bin is
 unknown for example

 Try a little reading - its all documented in the file.
 Either use the Cygwin Mount group in Customize, or add the following:

 (require 'cygwin-mount)
 (cygwin-mount-activate)

I do know how to load it .. that wasn't what asked about.

I'm sorry I must seem like a lamo here and appear to be trying your
patience, but I had read most of the documentation in cygwin-mount.el,
particularly the opening sort of overview which says it will make
emacs understand cygdrive.

Here it does not.  Below is an exerpt from emacs *Messages* buffer:
You may note that after loading cygwin-mount.el.  Emacs does not know
where /cygdrive/c is.
I typed in C-x d /cygdrive/c  But emacs sees c:/cygdrive/c
I type in C-x d /usr/bin.  But emacs sees C:/usr/bin.

So it has learned neither cygwins cygdrive or cygwins idea of /.

All that seems to have transpired is that emacs now sees / and C:/.
This is not what cygwin does.

[...]
Loading c:/users/harry/.emacs-dir/cygwin-mount.el (source)...done
Loading dired...done
Reading directory c:/cygdrive/c...
dired-readin-insert: Directory c:/cygdrive/c inaccessible or nonexistent


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Emacs from cygwin in X mode with no X running

2005-08-26 Thread James R. Phillips
Have you actually tried installing the x-server and using it?  It takes a while
to download, but can be used somewhat unobtrusively.

The default startxwin.sh shell script starts xwin in the multiwindow mode,
which means you get a black X icon in the system tray when there are no X
clients, and otherwise each client opens in a fairly normal looking window on
the windows desktop.  If you comment out the xterm invocation in the script,
you mostly don't need to be aware that X is running.  Client windows will just
pop up over the windows desktop.  Put your modified script in /usr/local/bin,
and you are in business.

My advice is to just try X, and see if you might like it, as opposed to going
to huge lengths not to use it.

Jim Phillips


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Emacs in Cygwin

2003-02-12 Thread David Robinow
S Gupta [EMAIL PROTECTED] wrote:

I am at home now, and if I have my display environment
variable set to:  ${HOST}:0.0 or :0
and if I have the program Cygwin/XFree86 rl open in
the background, emacs opens up in the XFree program
and not the current window. (If I do not have the
XFree program open, then I get an error saying I can't
connect to X server)

 This is expected behavior.  This has been discussed many times before. It should be 
in the archives.

For some reason the above only works in tcsh; the
other shells all seem to open up emacs in the same
window.
  You probably have an emacs function defined in a shell startup file (e.g. 
~/.bashrc).  Examples have been posted here several times.

Does anyone know what causes the cygwin emacs to open
up in XFree instead of the current window?
 That's how it's compiled.

It has stopped doing this on my computer at work (I
think it was a result of my reinstalling cygwin emacs
or maybe something else that got changed in the
process of running the cygwin setup), and I'm
wondering what has to be changed so it does it again.

 Include tty in your CYGWIN environment variable.
 Type emacs -nw instead of emacs


 

__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: emacs on cygwin

2002-10-14 Thread Joe Buehler

Joshua Daniel Franklin wrote:

No. If you want NT Emacs to understand Cygwin paths, get cygwin-mount.el from
http://www.emacswiki.org/elisp/index.html.

The Cygwin GNU emacs understands //machine/share syntax, but not X:/path syntax.
Normal Cygwin /some/path/to/file syntax is fine also (of course).

If you want to run emacs -nw, say from a remote login shell, you can't. (The
error is emacs: standard input is not a tty.) Instead, use a Cygwin version 
of XEmacs, from http://www.xemacs.org/. Using xemacs -nw from a remote shell

This works fine for Cygwin GNU emacs.  You want tty in the CYGWIN environment
variable value for it to work well.

Joe Buehler




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: emacs on cygwin

2002-10-14 Thread Kris Thielemans


Hi Gareth and all,

just to mention that I'm using cygwin's telnetd now (I was using exceed's
telnetd), and now emacs -nw works perfectly!

thanks

Kris


  To add to my tests I reported in my previous mail:
  - I am on my NT PC
  - I telnet (using cygwin's telnet) to my NT PC
  - \cygwin\cygwin, emacs- nw
 
  This is a lot better than when I telnetted from my linux box.
 The display
 is
  ok now. However, arrow keys don't work (they get entered as ABC
 etc. i.e.
  the last part of the ANSI sequence), and Ctrl-C still beeps and doesn't
 get
  entered into emacs.

 i think in the linux case you had termcap issues.

 and in the general case - you have tty issues.

 Gareth - just a guess.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: emacs on cygwin

2002-10-10 Thread David Starks-Browning

On Wednesday 9 Oct 02, Christopher Faylor writes:
 On Wed, Oct 09, 2002 at 07:10:31PM -0700, Joshua Daniel Franklin wrote:
 I was looking at the FAQ and realized some questions need an update.
 I plan to do this. However, some of them I don't have the knowledge
 to frame a correct updated answer. One I particularly noticed was:
 
 Is there a Cygwin port of GNU Emacs?
 
 No. If you want NT Emacs to understand Cygwin paths, get cygwin-mount.el from
 http://www.emacswiki.org/elisp/index.html.
 
 If you want to run emacs -nw, say from a remote login shell, you can't. (The
 error is emacs: standard input is not a tty.) Instead, use a Cygwin version 
 of XEmacs, from http://www.xemacs.org/. Using xemacs -nw from a remote shell
 
 works fine. 
 
 To be exact, I know that there is now a Cygwin version of GNU Emacs, that
 XEmacs does not have a (setup.exe) Cygwin package, and that those URLs work.
 However, I don't the status of GNU Emacs or NT Emacs in a remote login shell.
 
 I haven't seen David Starks-Browning (FAQ maintainer) around lately but
 I suspect that he might be interested in fixing this.

Indeed!  I will certainly have to fix that question.  Thanks for
bringing it to my attention.

However, I don't use the Cygwin port of Emacs (yet?), so I also do not
know the status of using emacs -nw from a remote shell.

Has anyone tried this?  Does it work?

Thanks,
David


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: emacs on cygwin

2002-10-10 Thread Kris Thielemans



 However, I don't use the Cygwin port of Emacs (yet?), so I also do not
 know the status of using emacs -nw from a remote shell.

 Has anyone tried this?  Does it work?

Hi

I have NT4.0, latest cygwin, Exceed for X-windows emulation and Exceed
telnetd.
I let cygwin-setup install 'emacs with X toolkit'.

Summary: in my configuration, emacs -nw does not work using telnet.

I tried the following:
- use exceed to open on xterm on a Linux machine
- from there telnet to my NT machine
- I execute \cygwin\cygwin.bat to get my cygwin environment
  this sort of works, but the terminal display rather screwed up
- I try to improve on this using
export TERM=xterm
- I do
export DISPLAY=myNT:0
emacs
  and yes! there comes an X window version of emacs up, just like it happens
  when I did the 2 above lines on my NT machine locally. (ok, no surprise
maybe)
- I now do
emacs -nw
and things go very wrong. emacs does start. You see things happening on the
screen,
but it's all jumbled up (it's even worse without the TERM statement). I
can't really do a thing. When I try to quit with ctrl-X ctrl-C I hear a beep
when I press the ctrl-C and that's it. I can't get out. Have to quit telnet
by hand.



Maybe playing around with the CYGWIN_TTY environment variable would help
(but I didn't find any doc on that one).
Of course, using another telnetd might also improve matters. (Is cygwin's
telnetd good and easy to install these days?)

Kris


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: emacs on cygwin

2002-10-10 Thread David Starks-Browning

On Thursday 10 Oct 02, Bjoern Kahl AG Resy writes:
  However, I don't use the Cygwin port of Emacs (yet?), so I also do not
  know the status of using emacs -nw from a remote shell.
 
  Has anyone tried this?  Does it work?
 
  I have installed Cygwin including the GNU-emacs package offered by
  cygwin-setup. I use the GNU-emacs both, with X11 and in terminal
  (emacs -nw) mode. No problems in local or remote (via ssh) execution.
  Works well in xterm (emacs -nw), direkt via X11 (emacs draws its own
  window) and in cygwin-terminal (cygwin.bat and emacs -nw).

Thanks very much for this report.

I'll try to update the FAQ tonight.

Kind regards,
David


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: emacs on cygwin

2002-10-10 Thread Kris Thielemans


Hi Bjoern,

that's interesting, as emacs -nw doesn't work for me... Could you offer a
bit more detail on what you mean with remote execution? Where do you com
from? Which daemon are you using?


To add to my tests I reported in my previous mail:
- I am on my NT PC
- I telnet (using cygwin's telnet) to my NT PC
- \cygwin\cygwin, emacs- nw

This is a lot better than when I telnetted from my linux box. The display is
ok now. However, arrow keys don't work (they get entered as ABC etc. i.e.
the last part of the ANSI sequence), and Ctrl-C still beeps and doesn't get
entered into emacs.

(By the way, arrowkeys don't work in bash as well, but ctrl-c does seem to).

Kris


  I have installed Cygwin including the GNU-emacs package offered by
  cygwin-setup. I use the GNU-emacs both, with X11 and in terminal
  (emacs -nw) mode. No problems in local or remote (via ssh) execution.
  Works well in xterm (emacs -nw), direkt via X11 (emacs draws its own
  window) and in cygwin-terminal (cygwin.bat and emacs -nw).




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: emacs on cygwin

2002-10-10 Thread Gareth Pearce

 To add to my tests I reported in my previous mail:
 - I am on my NT PC
 - I telnet (using cygwin's telnet) to my NT PC
 - \cygwin\cygwin, emacs- nw

 This is a lot better than when I telnetted from my linux box. The display
is
 ok now. However, arrow keys don't work (they get entered as ABC etc. i.e.
 the last part of the ANSI sequence), and Ctrl-C still beeps and doesn't
get
 entered into emacs.

i think in the linux case you had termcap issues.

and in the general case - you have tty issues.

Gareth - just a guess.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: emacs on cygwin

2002-10-09 Thread Christopher Faylor

On Wed, Oct 09, 2002 at 07:10:31PM -0700, Joshua Daniel Franklin wrote:
I was looking at the FAQ and realized some questions need an update.
I plan to do this. However, some of them I don't have the knowledge
to frame a correct updated answer. One I particularly noticed was:

Is there a Cygwin port of GNU Emacs?

No. If you want NT Emacs to understand Cygwin paths, get cygwin-mount.el from
http://www.emacswiki.org/elisp/index.html.

If you want to run emacs -nw, say from a remote login shell, you can't. (The
error is emacs: standard input is not a tty.) Instead, use a Cygwin version 
of XEmacs, from http://www.xemacs.org/. Using xemacs -nw from a remote shell

works fine. 

To be exact, I know that there is now a Cygwin version of GNU Emacs, that
XEmacs does not have a (setup.exe) Cygwin package, and that those URLs work.
However, I don't the status of GNU Emacs or NT Emacs in a remote login shell.

I haven't seen David Starks-Browning (FAQ maintainer) around lately but
I suspect that he might be interested in fixing this.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: Emacs for cygwin?

2002-03-20 Thread Robert Mark Bram

I take that back - I have found references to Emacs, but can anyone point me
in the right direction for a download site (hopefully with a few
instructions)?

Thanks!

Rob

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Robert Mark Bram
Sent: Wednesday, 20 March 2002 11:49 PM
To: Cygwin
Subject: Emacs for cygwin?


Hi all!

I just visited the archives and cygwin.com and could not get any positive
hit, but this seems like such an important utility. Is it true there is no
emacs for Cygwin?

Thanks!

Rob

:)
:-}
;-


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: Emacs for cygwin?

2002-03-20 Thread David Starks-Browning

On Thursday 21 Mar 02, Robert Mark Bram writes:
 I take that back - I have found references to Emacs, but can anyone point me
 in the right direction for a download site (hopefully with a few
 instructions)?

Since GNU Emacs is not a Cygwin application, such a query is off-topic
for this list.  I refer you to http://www.gnu.org/software/emacs/.

XEmacs, on the other hand, *is* ported to Cygwin, but likewise I refer
you to http://www.xemacs.org/.

This will be in the FAQ soon.

Regards,
David


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Emacs for Cygwin (was: cygwin-mount.el, Using GDB in NTEMACS)

2002-02-28 Thread Katherina O'Connor

Hello,

I am very interested in a cygwin/xfree86
emacs, because NTemacs can't be regarded
as an full emacs port, and xemacs isn't
really compatible, and much too slow.
Furthermore I believe that since the
21.1 emacs has become better than xemacs.
However I must mention that I am very
happy that xemacs is available in a
cygwin version.

In the past I tried porting emacs to
cygwin/xfree86/lesstif, however it wasn't
succesful. If anybody can help please let
me know.

-Kathy

FWIW, there's a true Cygwin port of XEmacs available now
(as well as a
Windows-native port). See http://www.xemacs.org

Jon Cast wrote:

 You wrote:

  I think that we need a CygEmacs - an emacs that will be
compiled
  with the real Cygwin ported gcc (i.e. without the
  -mno-cygwin).

 I should probably point out that I am (slowly) working on
such a port
 of Emacs.



__
Über 1 Mio. Angebote - Startpreis Euro 1,- http://www.fireball.de/ebay.html





--
Unsubscribe info:  http://cygwincom/ml/#unsubscribe-simple
Bug reporting: http://cygwincom/bugshtml
Documentation: http://cygwincom/docshtml
FAQ:   http://cygwincom/faq/


Re: Emacs for Cygwin (was: cygwin-mount.el, Using GDB in NTEMACS)

2002-02-28 Thread Charles Wilson

Jon Cast wrote:

 Sorry to start a flamewar, but this needs replying to:


Sure In PRIVATE mail

Please take this incipient flamewar offline

--Chuck



--
Unsubscribe info:  http://cygwincom/ml/#unsubscribe-simple
Bug reporting: http://cygwincom/bugshtml
Documentation: http://cygwincom/docshtml
FAQ:   http://cygwincom/faq/




Re: Emacs for Cygwin (was: cygwin-mount.el, Using GDB in NTEMACS)

2002-02-28 Thread Jon Cast


Katherina O'Connor [EMAIL PROTECTED] wrote:

 I am very interested in a cygwin/xfree86 emacs,

Thank you for your interest.

reasoning skipped

 However I must mention that I am very happy that xemacs is available
 in a cygwin version.

Naturally.

 In the past I tried porting emacs to cygwin/xfree86/lesstif, however
 it wasn't succesful. If anybody can help please let me know.

I hope I can help--that's why I'm working on the port.  If you want,
you can review the ``cygwin-mount.el, Using GDB in NTEMACS'' thread on
[EMAIL PROTECTED], and post additional details from your experience
porting there.

Jon Cast

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Emacs for Cygwin (was: cygwin-mount.el, Using GDB in NTEMACS)

2002-02-28 Thread John A. Turner

Charles Wilson wrote:
 
 Jon Cast wrote:
 
  Sorry to start a flamewar, but this needs replying to:
 
 Sure In PRIVATE mail
 
 Please take this incipient flamewar offline

I have no interest in a flame war even offline  I didn't even understand
half of what Jon was saying about political beliefs and such, but frankly
I don't give a rat's ass either

So as far as I'm concerned it's over

-JT

--
Unsubscribe info:  http://cygwincom/ml/#unsubscribe-simple
Bug reporting: http://cygwincom/bugshtml
Documentation: http://cygwincom/docshtml
FAQ:   http://cygwincom/faq/




Re: Emacs for Cygwin (was: cygwin-mount.el, Using GDB in NTEMACS)

2002-02-27 Thread Eli Zaretskii

 From: Jon Cast [EMAIL PROTECTED]
 Date: Tue, 26 Feb 2002 21:33:11 -0600
 
  CygEmacs will have UNIX APIs for I/O (files and
  sockets), and M$Windows APIs for the display and the keyboard. This
  is already done (partly) by the Cygwin port of rxvt.
 
 I used to agree with you, but the more I think about it, the more I
 think the ideal solution (bearing in mind that we are talking about a
 *Cygwin* port of Emacs) is use the normal LessTif toolkit support, and
 make LessTif work ``right'' from our perspective under Windows.  (This
 would also allow us to support remote X connections, which is IMNSHO
 one of the major features X has over Windows.)  Only if/while this is
 not workable/not worth the effort should we use the native APIs
 directly.

I don't use Lesstiff too much, so please take what's below with a
grain of salt.

I think we should be aware of Windows users expectations, not only of
technical merits.  In a somehwat limited experience with a Windows
port of Gimp (which I believe uses ported toolkits for its GUI), I
find that even experienced and computer-savvy users feel annoyed by a
very different set of conventions presented by the X toolkits.

I don't have enough experience and data to judge whether that's a real
concern or just an NIH syndrom, but I thought I'd mention it anyway.

 It's certainly non-trivial, but it's not difficult, either.  All it
 takes is a grep for WINDOWSNT, and then a check of each of those ~ 206
 occurrences to see if each one should read WINDOWSNT or (WINDOWSNT ||
 CYGWIN).

Unfortunately, it's more than that.

First, there are those w32*.c files which hide an enormous complexity
of the Windows port from the mainline code (that's why you see only
200-odd ifdefs).  Some of that code can be safely tossed in the Cygwin
port--the part merely tries to wrap library functions with
Posix-compliant wrappers--but some cannot.  So you might find yourself
_adding_ ifdefs ;-)

And then there's the issue of the Lisp code.  What would be the value
of system-type in the Cygwin port?  It could use the same symbol
windows-nt used by the current Windows port, or it could invent a new
symbol.  Either way, there will be a need to go through all the
bundled packages and make sure code which does a different thing for
windows-nt will DTRT in the Cygwin port.  The difficulty here is that
in some cases the Cygwin port should take the Unix/GNU branch (like
with file names and the shell), while in others (like browse-url, for
example) it should take the Windows branch.  This probably calls for a
new symbol rather than reusing windows-nt, but the work has to be done
anyway.  I counted more than 120 places where windows-nt is mentioned
in bundled Lisp code.

  may be a version of Emacs for Cygwin, that use only the UNIX APIs
  can be ported. This Emacs version will be used only within Cygwin's
  windows - Console or rxvt (Emacs in TTY mode) or real display (using
  Cygwin-Xfree).
 
 This second approach surrenders practically nothing for the kind of
 user Cygwin targets once Cygwin-Xfree supports a rootless X server.
 So, I think if that approach is workable it should be pursued instead.

How is this different from the alternative to use Lesstiff?  That one
is also based on the ported XFree, right?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Emacs for Cygwin (was: cygwin-mount.el, Using GDB in NTEMACS)

2002-02-27 Thread David Rothenberger

FWIW, there's a true Cygwin port of XEmacs available now (as well as a
Windows-native port).  See http://www.xemacs.org

Jon Cast wrote:
 
 You wrote:
 
  I think that we need a CygEmacs - an emacs that will be compiled
  with the real Cygwin ported gcc (i.e. without the
  -mno-cygwin).
 
 I should probably point out that I am (slowly) working on such a port
 of Emacs.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Emacs for Cygwin (was: cygwin-mount.el, Using GDB in NTEMACS)

2002-02-27 Thread Jon Cast


David Rothenberger [EMAIL PROTECTED] wrote:

 FWIW, there's a true Cygwin port of XEmacs available now (as well as
 a Windows-native port).  See http://www.xemacs.org

FWIW, I'm a GNU fanatic who wouldn't touch XEmacs with a ten-foot
pole :)

Seriously, this kind of message is one (although by no means the
primary) motivation for my doing this--to stop XEmacs supporters from
sending this type of email *every time* *anyone* asks (or talks,
apparently) about Emacs on Cygwin.

Jon Cast

p.s. Flames (on both sides) to /dev/null, please

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Emacs for Cygwin (was: cygwin-mount.el, Using GDB in NTEMACS)

2002-02-27 Thread John A. Turner

Jon Cast wrote:

 FWIW, I'm a GNU fanatic who wouldn't touch XEmacs with a ten-foot
 pole :)

smiley notwithstanding, that doesn't seem all that amusing to me

XEmacs is of course GPL'd, and I'd direct anyone who might wonder
about the source of misguided comments such as the above to:

http://wwwxemacsorg/About/XEmacsVsGNUemacshtml

-JT

(damn, two non-cygwin posts within a week I'm a very bad man)

--
Unsubscribe info:  http://cygwincom/ml/#unsubscribe-simple
Bug reporting: http://cygwincom/bugshtml
Documentation: http://cygwincom/docshtml
FAQ:   http://cygwincom/faq/




Re: Emacs for Cygwin (was: cygwin-mount.el, Using GDB in NTEMACS)

2002-02-26 Thread Jon Cast


You wrote:

 I think that we need a CygEmacs - an emacs that will be compiled
 with the real Cygwin ported gcc (i.e. without the
 -mno-cygwin).

I should probably point out that I am (slowly) working on such a port
of Emacs.

 CygEmacs will have UNIX APIs for I/O (files and
 sockets), and M$Windows APIs for the display and the keyboard. This
 is already done (partly) by the Cygwin port of rxvt.

I used to agree with you, but the more I think about it, the more I
think the ideal solution (bearing in mind that we are talking about a
*Cygwin* port of Emacs) is use the normal LessTif toolkit support, and
make LessTif work ``right'' from our perspective under Windows.  (This
would also allow us to support remote X connections, which is IMNSHO
one of the major features X has over Windows.)  Only if/while this is
not workable/not worth the effort should we use the native APIs
directly.

 If this is too difficult, 

It's certainly non-trivial, but it's not difficult, either.  All it
takes is a grep for WINDOWSNT, and then a check of each of those ~ 206
occurrences to see if each one should read WINDOWSNT or (WINDOWSNT ||
CYGWIN).

 may be a version of Emacs for Cygwin, that use only the UNIX APIs
 can be ported. This Emacs version will be used only within Cygwin's
 windows - Console or rxvt (Emacs in TTY mode) or real display (using
 Cygwin-Xfree).

This second approach surrenders practically nothing for the kind of
user Cygwin targets once Cygwin-Xfree supports a rootless X server.
So, I think if that approach is workable it should be pursued instead.

 Any of these version will solve the 2 major issues of using Emacs
 with Cygwin - 1. The files (names and attributes). 2. Running of
 sub-shells in Emacs (file is not tty problem). It may solve another
 problem that bothers me - running a client on the PC to a server on
 UNIX.

Right, because the alternatives you name don't affect the use of Posix
APIs for these operations.  (Although I agree that the primary purpose
of a Cygwin port of Emacs is to get the Posix APIs for the
operations.)

 Ehud.

Jon Cast

 LocalWords:  LessTif WINDOWSNT

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/