Re: How to run GNU Emacs from Windows icon

2009-06-18 Thread Ken Brown

On 6/4/2009 12:10 PM, David Karr wrote:

emacs: Terminal type cygwin is not defined.

My guess is that this is a terminfo issue.  Try installing the terminfo0
package.


Getting back to this, I already have terminfo0 installed.


I think the cause of your problem with emacs-21 may have been found:

  http://cygwin.com/ml/cygwin/2009-06/msg00615.html

Anyway, I hope you're happily using emacs-23 now so that this is no 
longer relevant.  (emacs-23 depends on terminfo rather than terminfo0.)


Ken

--
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: How to run GNU Emacs from Windows icon

2009-06-18 Thread David Karr
 -Original Message-
 From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf
 Of Ken Brown
 Sent: Thursday, June 18, 2009 11:35 AM
 To: cygwin@cygwin.com
 Subject: Re: How to run GNU Emacs from Windows icon
 
 On 6/4/2009 12:10 PM, David Karr wrote:
  emacs: Terminal type cygwin is not defined.
  My guess is that this is a terminfo issue.  Try installing the
 terminfo0
  package.
 
  Getting back to this, I already have terminfo0 installed.
 
 I think the cause of your problem with emacs-21 may have been found:
 
http://cygwin.com/ml/cygwin/2009-06/msg00615.html
 
 Anyway, I hope you're happily using emacs-23 now so that this is no
 longer relevant.  (emacs-23 depends on terminfo rather than terminfo0.)

It is working fine, but I have a feeling the solution I ended up using
probably would have worked in the regular version also.  My shortcut command
line is (paraphrased) rxvt bash emacs.  I'm not going to worry too much
about it at this point.

Thanks.


--
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: How to run GNU Emacs from Windows icon

2009-06-08 Thread David Karr
 -Original Message-
 From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf
 Of Andrew DeFaria
 Sent: Friday, June 05, 2009 8:03 PM
 To: cygwin@cygwin.com
 Subject: Re: How to run GNU Emacs from Windows icon
 
 David Karr wrote:
  -Original Message-
  From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On
 Behalf
  Of Andrew DeFaria
  Sent: Friday, June 05, 2009 8:47 AM
  To: cygwin@cygwin.com
  Subject: Re: How to run GNU Emacs from Windows icon
 
  David Karr wrote:
  I now need to set up Windows desktop icons that can start these
  processes. I managed to get XEmacs working, with the following
  command line:
 
  C:\cygwin\bin\bash.exe --login -c C:/cygwin/bin/xemacs-21.4.22.exe
  Why the insistence on running bash? Why not simply run Xemacs? That's
  what I do at work and it works fine for me.
  It may not produce any difficult symptoms with XEmacs itself, but
  without that I don't get a normal login shell out of the box.
 And why do you require a normal login shell? Here's what I have for my
 shortcut that starts up XEmacs: C:\Cygwin\bin\run.exe xemacs. Nothing
 else is required. I don't need to login. I'm logged in already. I just
 need to edit files...
  Again, why run bash first then run emacs?
  Again, so I get a login shell. In any case, this has no effect on the
  symptom. I tried doing this without bash, and it fails in exactly the
  same way.
 You have not defined what exactly your symptom is WRT xemacs. You
 stated:
 
 I managed to get XEmacs working, with the following command line:
 
   C:\cygwin\bin\bash.exe --login -c C:/cygwin/bin/xemacs-21.4.22.exe
 
 
 Then went on to describe how it fails with emacs (not xemacs) because
 emacs and a problem with your terminal type. I would think that xemacs
 doesn't care as much about terminal type. Is xemacs failing with the
 same error about terminal type? What is TERM set to for you? (Me: it's
 set to cygwin).

Sorry I didn't make that clear, but it wasn't really relevant to this.
XEmacs is working fine with respect to basic startup from an icon.  I'm
having issues with the help window machinery, which doesn't have anything to
do with these problems.


--
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: How to run GNU Emacs from Windows icon

2009-06-06 Thread Ken Brown

On 6/5/2009 11:03 PM, Andrew DeFaria wrote:

And why do you require a normal login shell?


He wants his bash initialization files to be processed so that he has 
the same environment (e.g., PATH) inside emacs that he normally has in a 
bash shell.


Ken

--
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: How to run GNU Emacs from Windows icon

2009-06-05 Thread Andrew DeFaria

David Karr wrote:
I now need to set up Windows desktop icons that can start these 
processes. I managed to get XEmacs working, with the following command 
line:


C:\cygwin\bin\bash.exe --login -c C:/cygwin/bin/xemacs-21.4.22.exe
Why the insistence on running bash? Why not simply run Xemacs? That's 
what I do at work and it works fine for me.
However, when I try to do something similar for GNU Emacs, it fails 
immediately. When I tried running the analogous command from the DOS 
prompt, I got this:


-

C:\cygwin\bin\bash.exe --login -c C:/cygwin/bin/emacs.exe

emacs: Terminal type cygwin is not defined.
If that is not the actual type of terminal you have,
use the Bourne shell command `TERM=... export TERM' (C-shell:
`setenv TERM ...') to specify the correct type. It may be necessary
to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.

Again, why run bash first then run emacs?
--
Andrew DeFaria http://defaria.com
Press any key to continue or any other key to quit...


--
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: How to run GNU Emacs from Windows icon

2009-06-05 Thread David Karr
 -Original Message-
 From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf
 Of Andrew DeFaria
 Sent: Friday, June 05, 2009 8:47 AM
 To: cygwin@cygwin.com
 Subject: Re: How to run GNU Emacs from Windows icon
 
 David Karr wrote:
  I now need to set up Windows desktop icons that can start these
  processes. I managed to get XEmacs working, with the following command
  line:
 
  C:\cygwin\bin\bash.exe --login -c C:/cygwin/bin/xemacs-21.4.22.exe
 Why the insistence on running bash? Why not simply run Xemacs? That's
 what I do at work and it works fine for me.

It may not produce any difficult symptoms with XEmacs itself, but without
that I don't get a normal login shell out of the box.

  However, when I try to do something similar for GNU Emacs, it fails
  immediately. When I tried running the analogous command from the DOS
  prompt, I got this:
 
  -
  C:\cygwin\bin\bash.exe --login -c C:/cygwin/bin/emacs.exe
  emacs: Terminal type cygwin is not defined.
  If that is not the actual type of terminal you have,
  use the Bourne shell command `TERM=... export TERM' (C-shell:
  `setenv TERM ...') to specify the correct type. It may be necessary
  to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.
 Again, why run bash first then run emacs?

Again, so I get a login shell.  In any case, this has no effect on the
symptom.  I tried doing this without bash, and it fails in exactly the same
way.

Thanks.


--
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: How to run GNU Emacs from Windows icon

2009-06-05 Thread Ken Brown

On 6/5/2009 11:58 AM, David Karr wrote:

C:\cygwin\bin\bash.exe --login -c C:/cygwin/bin/emacs.exe

emacs: Terminal type cygwin is not defined.
If that is not the actual type of terminal you have,
use the Bourne shell command `TERM=... export TERM' (C-shell:
`setenv TERM ...') to specify the correct type. It may be necessary
to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.

Again, why run bash first then run emacs?


Again, so I get a login shell.  In any case, this has no effect on the
symptom.  I tried doing this without bash, and it fails in exactly the same
way.


I have a few other suggestions if you want to keep trying to track this 
down:


1. Send cygcheck output (as an attachment) as requested at 
http://cygwin.com/problems.html


2. Try emacs -q to make sure there's nothing in your initialization 
file(s) causing the problem.


3. Try emacs 23:

  http://sourceware.org/ml/cygwin/2009-05/msg00475.html
  http://sourceware.org/ml/cygwin/2009-05/msg00635.html

Ken

--
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: How to run GNU Emacs from Windows icon

2009-06-05 Thread David Karr
 -Original Message-
 From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf
 Of Ken Brown
 Sent: Friday, June 05, 2009 11:37 AM
 To: cygwin@cygwin.com
 Subject: Re: How to run GNU Emacs from Windows icon
 
 On 6/5/2009 11:58 AM, David Karr wrote:
  C:\cygwin\bin\bash.exe --login -c C:/cygwin/bin/emacs.exe
  emacs: Terminal type cygwin is not defined.
  If that is not the actual type of terminal you have,
  use the Bourne shell command `TERM=... export TERM' (C-shell:
  `setenv TERM ...') to specify the correct type. It may be necessary
  to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.
  Again, why run bash first then run emacs?
 
  Again, so I get a login shell.  In any case, this has no effect on the
  symptom.  I tried doing this without bash, and it fails in exactly the
 same
  way.
 
 I have a few other suggestions if you want to keep trying to track this
 down:
 
 1. Send cygcheck output (as an attachment) as requested at
 http://cygwin.com/problems.html

Attached.

 2. Try emacs -q to make sure there's nothing in your initialization
 file(s) causing the problem.

No difference.  Considering the failure happens even before the window comes
up, I would have been shocked if it made a difference.

 3. Try emacs 23:
 
http://sourceware.org/ml/cygwin/2009-05/msg00475.html
http://sourceware.org/ml/cygwin/2009-05/msg00635.html

I'll proceed with that.

Thanks.


cygcheck.out
Description: Binary data
--
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: How to run GNU Emacs from Windows icon

2009-06-05 Thread David Karr
 -Original Message-
 From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf
 Of Ken Brown
 Sent: Friday, June 05, 2009 11:37 AM
 To: cygwin@cygwin.com
 Subject: Re: How to run GNU Emacs from Windows icon
 
 On 6/5/2009 11:58 AM, David Karr wrote:
  C:\cygwin\bin\bash.exe --login -c C:/cygwin/bin/emacs.exe
  emacs: Terminal type cygwin is not defined.
  If that is not the actual type of terminal you have,
  use the Bourne shell command `TERM=... export TERM' (C-shell:
  `setenv TERM ...') to specify the correct type. It may be necessary
  to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.
  Again, why run bash first then run emacs?
 
  Again, so I get a login shell.  In any case, this has no effect on the
  symptom.  I tried doing this without bash, and it fails in exactly the
 same
  way.
 
 I have a few other suggestions if you want to keep trying to track this
 down:
 
 3. Try emacs 23:
 
http://sourceware.org/ml/cygwin/2009-05/msg00475.html
http://sourceware.org/ml/cygwin/2009-05/msg00635.html

Ok, I've done some searching, but I can't figure out how to get this
package.  I've never installed experimental packages before.  The latest
available from setup.exe, even in experimental state, is 22.1-3.  I assume
I'm looking for -23.0.92-2?


--
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: How to run GNU Emacs from Windows icon

2009-06-05 Thread Ken Brown

On 6/5/2009 3:25 PM, David Karr wrote:

1. Send cygcheck output (as an attachment) as requested at
http://cygwin.com/problems.html


Attached.


Two things jump out at me.  First, it's clear from the environment 
variables that you ran cygcheck from a shell within emacs.  I don't 
think it matters in this case, but in general it's probably best not to 
do that, since you want to see the environment *before* starting emacs. 
  Emacs changes some of the variables.


More importantly, I see this:


CYGWIN = 'check_case:strict tty'


I don't know whether this could be causing your problem, but the cygwin 
user's guide (http://cygwin.com/cygwin-ug-net/using-cygwinenv.html) says 
the following:


check_case:level - THIS OPTION IS DEPRECATED. Don't use it unless you 
know what you're doing and don't see any way around it. And even then, 
this option is error prone, slows down Cygwin and not well maintained.


On 6/5/2009 3:44 PM, David Karr wrote:

Ok, I've done some searching, but I can't figure out how to get this
package.  I've never installed experimental packages before.  The latest
available from setup.exe, even in experimental state, is 22.1-3.  I assume
I'm looking for -23.0.92-2?


Just run setup.exe, locate the emacs packages, and repeatedly click on 
the version number in the New column.  It cycles through all of the 
choices, one of which should be 23.0.92-2.


Ken

Ken

--
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: How to run GNU Emacs from Windows icon

2009-06-05 Thread David Karr
 -Original Message-
 From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf
 Of Ken Brown
 Sent: Friday, June 05, 2009 2:04 PM
 To: cygwin@cygwin.com
 Subject: Re: How to run GNU Emacs from Windows icon
 
 On 6/5/2009 3:25 PM, David Karr wrote:
  1. Send cygcheck output (as an attachment) as requested at
  http://cygwin.com/problems.html
 
  Attached.
 
 Two things jump out at me.  First, it's clear from the environment
 variables that you ran cygcheck from a shell within emacs.  I don't
 think it matters in this case, but in general it's probably best not to
 do that, since you want to see the environment *before* starting emacs.
Emacs changes some of the variables.

Regenerated, and reattached.

 More importantly, I see this:
 
  CYGWIN = 'check_case:strict tty'
 
 I don't know whether this could be causing your problem, but the cygwin
 user's guide (http://cygwin.com/cygwin-ug-net/using-cygwinenv.html) says
 the following:
 
 check_case:level - THIS OPTION IS DEPRECATED. Don't use it unless you
 know what you're doing and don't see any way around it. And even then,
 this option is error prone, slows down Cygwin and not well maintained.

Hmph.  When I read the documentation for a framework, I almost always go
directly to the PDF, if it's available.  The PDF doesn't say anything about
this being deprecated.  I wouldn't have used it if it had.  If I'm
interpreting the modification date on the file properly, this PDF hasn't
been regenerated in 5 years.

Looking at this also made me realize a silly mistake I was making, in that I
was setting CYGWIN in my .bashrc, not in my system env vars.  I fixed that,
and also removed check_case, but it had no obvious effect.

 On 6/5/2009 3:44 PM, David Karr wrote:
  Ok, I've done some searching, but I can't figure out how to get this
  package.  I've never installed experimental packages before.  The
 latest
  available from setup.exe, even in experimental state, is 22.1-3.  I
 assume
  I'm looking for -23.0.92-2?
 
 Just run setup.exe, locate the emacs packages, and repeatedly click on
 the version number in the New column.  It cycles through all of the
 choices, one of which should be 23.0.92-2.

Ah, yes.  It's been a while.  Proceeding.



cygcheck.out
Description: Binary data
--
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: How to run GNU Emacs from Windows icon

2009-06-05 Thread David Karr
 -Original Message-
 From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf
 Of Ken Brown
 Sent: Friday, June 05, 2009 11:37 AM
 To: cygwin@cygwin.com
 Subject: Re: How to run GNU Emacs from Windows icon
 
 On 6/5/2009 11:58 AM, David Karr wrote:
  C:\cygwin\bin\bash.exe --login -c C:/cygwin/bin/emacs.exe
  emacs: Terminal type cygwin is not defined.
  If that is not the actual type of terminal you have,
  use the Bourne shell command `TERM=... export TERM' (C-shell:
  `setenv TERM ...') to specify the correct type. It may be necessary
  to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.
  Again, why run bash first then run emacs?
 
  Again, so I get a login shell.  In any case, this has no effect on the
  symptom.  I tried doing this without bash, and it fails in exactly the
 same
  way.
 
 I have a few other suggestions if you want to keep trying to track this
 down:
 
 1. Send cygcheck output (as an attachment) as requested at
 http://cygwin.com/problems.html
 
 2. Try emacs -q to make sure there's nothing in your initialization
 file(s) causing the problem.
 
 3. Try emacs 23:
 
http://sourceware.org/ml/cygwin/2009-05/msg00475.html
http://sourceware.org/ml/cygwin/2009-05/msg00635.html

Ok, I've installed Emacs 23.  The results are sort of better, but worse.
Running it now, which actually runs emacs-X11 through a link, looks like
emacs -nw.  It's definitely not using X11.  If I run it from a Bash prompt
in rxvt, it comes up fine (with the minor annoyance that setting the
frame-position at 0,0 doesn't mean the same thing as it did before), and the
fonts are definitely nicer. :)

 
 Ken
 
 --
 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/


--
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: How to run GNU Emacs from Windows icon

2009-06-05 Thread David Karr
 -Original Message-
 From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf
 Of Ken Brown
 Sent: Friday, June 05, 2009 11:37 AM
 To: cygwin@cygwin.com
 Subject: Re: How to run GNU Emacs from Windows icon
 
 3. Try emacs 23:
 
http://sourceware.org/ml/cygwin/2009-05/msg00475.html
http://sourceware.org/ml/cygwin/2009-05/msg00635.html

For now, I can at least hide most of the cruft by using this as my shortcut
command:

C:\cygwin\bin\rxvt.exe -geometry 1x1 -e /usr/bin/bash --login -c emacs

Along with hacking the frame-position to 4,26 (I imagine this will only be a
temporary problem).

This gives me a usable window without additional manual steps.

(Now I just have to find a reasonable Windows icon for it.)


--
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: How to run GNU Emacs from Windows icon

2009-06-05 Thread Ken Brown

On 6/5/2009 5:46 PM, David Karr wrote:

Ok, I've installed Emacs 23.  The results are sort of better, but worse.
Running it now, which actually runs emacs-X11 through a link, looks like
emacs -nw.  It's definitely not using X11.


If you have an X server running and the DISPLAY environment variable set 
appropriately, emacs-X11 will use X11.  Try this:  Start the X server 
and then type 'emacs' in an xterm window.  This should cause emacs to 
open in a new window, using X11.


The startemacs.bat that I sent you earlier in the thread achieves the 
same effect (as long as the X server is running).


Ken

--
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: How to run GNU Emacs from Windows icon

2009-06-05 Thread Andrew DeFaria

David Karr wrote:

-Original Message-
From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf
Of Andrew DeFaria
Sent: Friday, June 05, 2009 8:47 AM
To: cygwin@cygwin.com
Subject: Re: How to run GNU Emacs from Windows icon

David Karr wrote:
I now need to set up Windows desktop icons that can start these 
processes. I managed to get XEmacs working, with the following 
command line:


C:\cygwin\bin\bash.exe --login -c C:/cygwin/bin/xemacs-21.4.22.exe
Why the insistence on running bash? Why not simply run Xemacs? That's 
what I do at work and it works fine for me.
It may not produce any difficult symptoms with XEmacs itself, but 
without that I don't get a normal login shell out of the box.
And why do you require a normal login shell? Here's what I have for my 
shortcut that starts up XEmacs: C:\Cygwin\bin\run.exe xemacs. Nothing 
else is required. I don't need to login. I'm logged in already. I just 
need to edit files...

Again, why run bash first then run emacs?
Again, so I get a login shell. In any case, this has no effect on the 
symptom. I tried doing this without bash, and it fails in exactly the 
same way.

You have not defined what exactly your symptom is WRT xemacs. You stated:

I managed to get XEmacs working, with the following command line:

 C:\cygwin\bin\bash.exe --login -c C:/cygwin/bin/xemacs-21.4.22.exe


Then went on to describe how it fails with emacs (not xemacs) because 
emacs and a problem with your terminal type. I would think that xemacs 
doesn't care as much about terminal type. Is xemacs failing with the 
same error about terminal type? What is TERM set to for you? (Me: it's 
set to cygwin).

--
Andrew DeFaria http://defaria.com
Computers make very fast, very accurate mistakes.


--
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: How to run GNU Emacs from Windows icon

2009-06-04 Thread David Karr
 -Original Message-
 From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf
 Of Ken Brown
 Sent: Tuesday, June 02, 2009 4:52 AM
 To: cygwin@cygwin.com
 Subject: Re: How to run GNU Emacs from Windows icon
 
 On 6/2/2009 7:18 AM, Ken Brown wrote:
  On 6/2/2009 5:30 AM, Marc Girod wrote:
  I can also start a Cygwin window, and run GNU emacs there (with a -nw
  option).
  It starts, although doesn't work well. The keyboard bindings are weird
  for a
  start (e.g. C-x C-c gives in fact C-x C-g, which forces you to exit
  with M-x
  kill-emacs).
  I'm sure this was discussed already.
 
  You need to have 'tty' in your CYGWIN environment variable in order to
  prevent this from happening.  But even then, you'll find that many
  keystrokes don't work as expected.  If you want to run emacs in a
  terminal (rather than under X), you'll get much better results with
  mintty or rxvt.
 
 But none of this addresses the OP's original problem:
 
  emacs: Terminal type cygwin is not defined.
 
 My guess is that this is a terminfo issue.  Try installing the terminfo0
 package.

Getting back to this, I already have terminfo0 installed.

I tried Marc Girod's emacs.bat script from an earlier reply, but it doesn't
work for me because I already have an X server running.  What I really need
is something that gives me a regular separate Windows decorated frame, with
Emacs running inside.  I get that out of the box with XEmacs, but some
things work a little better in GNU Emacs, so I'm trying to get that working.


--
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: How to run GNU Emacs from Windows icon

2009-06-04 Thread Ken Brown

On 6/4/2009 12:10 PM, David Karr wrote:

On 6/2/2009 7:18 AM, Ken Brown wrote:

On 6/2/2009 5:30 AM, Marc Girod wrote:

I can also start a Cygwin window, and run GNU emacs there (with a -nw
option).
It starts, although doesn't work well. The keyboard bindings are weird
for a
start (e.g. C-x C-c gives in fact C-x C-g, which forces you to exit
with M-x
kill-emacs).
I'm sure this was discussed already.

You need to have 'tty' in your CYGWIN environment variable in order to
prevent this from happening.  But even then, you'll find that many
keystrokes don't work as expected.  If you want to run emacs in a
terminal (rather than under X), you'll get much better results with
mintty or rxvt.

But none of this addresses the OP's original problem:


emacs: Terminal type cygwin is not defined.

My guess is that this is a terminfo issue.  Try installing the terminfo0
package.


Getting back to this, I already have terminfo0 installed.


In that case, I don't know why emacs isn't recognizing the cygwin 
terminal type.  It does for me.  But I don't think it's worth investing 
a lot of time in debugging this, since, as I said before, emacs doesn't 
work well in the Cygwin console anyway.


A better option would be to make a shortcut that runs mintty or rxvt 
with a command to start emacs.  Even better, since you already have an X 
server running, you could use something like the following (which is the 
way I usually start emacs when I have an X server running):


$ cat bin/startemacs.bat
@echo off
SET DISPLAY=127.0.0.1:0.0
SET CYGWIN_ROOT=\cygwin-1.7
SET RUN=%CYGWIN_ROOT%\bin\run
SET PATH=%CYGWIN_ROOT%\bin;%PATH%
%RUN% bash -l -c /usr/bin/emacs

The target of my windows shortcut is then

  D:\cygwin-1.7\bin\run.exe D:\cygwin-1.7\home\kbrown\bin\startemacs.bat

Ken

--
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: How to run GNU Emacs from Windows icon

2009-06-02 Thread Marc Girod


David Karr wrote:
 
 However, when I try to do something similar for GNU Emacs, it fails
 immediately.
Do you want to run GNU emacs in terminal mode?
I run it in X mode with:

@echo off

C:
chdir C:\cygwin2\bin

bash --login -c /usr/bin/startx /usr/bin/emacs -g 80x40+88+69 -- /usr/bin/X
:0 -multiwindow -clipboard


I can also start a Cygwin window, and run GNU emacs there (with a -nw
option).
It starts, although doesn't work well. The keyboard bindings are weird for a
start (e.g. C-x C-c gives in fact C-x C-g, which forces you to exit with M-x
kill-emacs).
I'm sure this was discussed already.
Marc

-- 
View this message in context: 
http://www.nabble.com/How-to-run-GNU-Emacs-from-Windows-icon-tp23826930p23827772.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: How to run GNU Emacs from Windows icon

2009-06-02 Thread Ken Brown

On 6/2/2009 5:30 AM, Marc Girod wrote:

I can also start a Cygwin window, and run GNU emacs there (with a -nw
option).
It starts, although doesn't work well. The keyboard bindings are weird for a
start (e.g. C-x C-c gives in fact C-x C-g, which forces you to exit with M-x
kill-emacs).
I'm sure this was discussed already.


You need to have 'tty' in your CYGWIN environment variable in order to 
prevent this from happening.  But even then, you'll find that many 
keystrokes don't work as expected.  If you want to run emacs in a 
terminal (rather than under X), you'll get much better results with 
mintty or rxvt.


Ken

--
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: How to run GNU Emacs from Windows icon

2009-06-02 Thread Ken Brown

On 6/2/2009 7:18 AM, Ken Brown wrote:

On 6/2/2009 5:30 AM, Marc Girod wrote:

I can also start a Cygwin window, and run GNU emacs there (with a -nw
option).
It starts, although doesn't work well. The keyboard bindings are weird 
for a
start (e.g. C-x C-c gives in fact C-x C-g, which forces you to exit 
with M-x

kill-emacs).
I'm sure this was discussed already.


You need to have 'tty' in your CYGWIN environment variable in order to 
prevent this from happening.  But even then, you'll find that many 
keystrokes don't work as expected.  If you want to run emacs in a 
terminal (rather than under X), you'll get much better results with 
mintty or rxvt.


But none of this addresses the OP's original problem:


emacs: Terminal type cygwin is not defined.


My guess is that this is a terminfo issue.  Try installing the terminfo0 
package.


Chuck, the ancient-but-still-current emacs requires libncurses7; the 
latter requires terminfo, but I think it should require terminfo0 instead.


Ken

--
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: How to run GNU Emacs from Windows icon

2009-06-02 Thread Ken Brown

On 6/2/2009 7:51 AM, Ken Brown wrote:
Chuck, the ancient-but-still-current emacs requires libncurses7; the 
latter requires terminfo, but I think it should require terminfo0 instead.


And, to head off the next question, I think the 
ancient-but-still-current version of emacs-X11 needs libXaw7 
(http://cygwin.com/ml/cygwin/2009-05/msg00619.html).  Can someone add 
that to the requires line?


Thanks.

Ken

--
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: How to run GNU Emacs from Windows icon

2009-06-02 Thread Marc Girod


Ken Brown-6 wrote:
 
 You need to have 'tty' in your CYGWIN environment variable in order to 
 prevent this from happening.
 
Thanks. Indeed. That's where I saw it (in
http://cygwin.com/1.7/cygwin-ug-net/using-cygwinenv.html)
But well, I don't need it myself since I run emacs in X mode.

BTW, I have been using now nowinsymlinks in CYGWIN, as you
suggested, and this didn't get rid of my lock file production under
ClearCase...

-- 
View this message in context: 
http://www.nabble.com/How-to-run-GNU-Emacs-from-Windows-icon-tp23826930p23831706.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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: How to run GNU Emacs from Windows icon

2009-06-02 Thread wynfield

emacs can use gtk+, so libXaw7 is not necessary.

Only one of the two, gtk+ or libXaw7 are required.  I use gtk+ for example.
Using gtk+ does require a simple work around to use it however, such as

# put the following line in your ~/.xinitrc file
export G_SLICE=always-malloc
exec emacs 

or from within an x window
more simply: (from an X-shell !)

$ G_SLICE=always-malloc emacs 


regards,
  wynfield

--

Ken Brown kbr...@cornell.edu wrote:
 
 And, to head off the next question, I think the
 ancient-but-still-current version of emacs-X11 needs libXaw7
 (http://cygwin.com/ml/cygwin/2009-05/msg00619.html).  Can someone add
 that to the requires line? .
...
 Ken
 

--
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: How to run GNU Emacs from Windows icon

2009-06-02 Thread Ken Brown

On 6/2/2009 8:34 PM, wynfi...@gmail.com wrote:

emacs can use gtk+, so libXaw7 is not necessary.


I agree that emacs can be built to use gtk+ instead of Xaw.  The 
workaround you described would then allow that version to be used in 
cygwin.  But the current cygwin emacs-X11 package was compiled to use 
the Xaw toolkit, not gtk+.  Its setup.hint therefore needs to indicate 
that it requires libXaw7.


Ken

--
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/