unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* cygwin emacs problems
@ 2005-03-02 19:00 Elim Qiu
  0 siblings, 0 replies; 6+ messages in thread
From: Elim Qiu @ 2005-03-02 19:00 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1622 bytes --]

Hi List,

Forgive me if my question is wrong to the list. I'm new to cygwin and emacs.

I installed cygwin with emacs on my thinkpad T22 + win2k  as: 
GNU Emacs 21.2.1 (i686-pc-cygwin, X toolkit)  of 2004-03-22 on cm-test

*** The 1st trouble was that it does not quit (c-x c-c not working). 
After some search, I modified cygwin.bat  as:

=============================
@echo off

E:
chdir E:\cygwin\bin
set CYGWIN=tty notitle glob
bash --login -i
==============================
The problem was gone (although i'm not so sure that's the proper 
thing to do)

*** The 2nd trouble was the delete key. According to the emacs 
tutorial, this should be the backspace key in my case.  But it 
doesn't work. The problem remains the same on my Dell desktop 
(same os, same cygwin+emacs). I figured that instead of  backspace,  
C-backspace works as <Delete> in emacs tutorial. And so just need 
to keep in mind that <Delete> equals C-backspace for me (both
thinkpad and dell worked that way)

*** Now the 3rd trouble: cannot figure out what the key mapping 
for M-<Delete> although M-d works just fine (M=alt in my case).

Now i'm stuck at %30 part of the emacs tutorial and looking for 
hints on M-<Delete> key mapping....

I'm starting doubt about what i did: maybe there are some total
solution for setting emacs on cygwin which makes emacs work just 
like the emacs tutorial described?  Cygwin is there for years and 
many people should gone through this already. 

So i'm looking for help here. And if you know all these about, please
try letting cygwin newbies know too.

Thanks!

[-- Attachment #1.2: Type: text/html, Size: 2573 bytes --]

[-- Attachment #2: "AVG certification" --]
[-- Type: text/plain, Size: 139 bytes --]

No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.6 - Release Date: 3/1/2005

[-- Attachment #3: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cygwin emacs problems
       [not found] <mailman.2366.1109791784.32256.help-gnu-emacs@gnu.org>
@ 2005-03-09  2:47 ` Mark Hickman
  2005-03-10 18:10   ` Olive
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Hickman @ 2005-03-09  2:47 UTC (permalink / raw)


Elim Qiu wrote:
> Hi List,
>  
> Forgive me if my question is wrong to the list. I'm new to cygwin and emacs.
>  
> I installed cygwin with emacs on my thinkpad T22 + win2k  as:
> GNU Emacs 21.2.1 (i686-pc-cygwin, X toolkit)  of 2004-03-22 on cm-test
>  
> *** The 1st trouble was that it does not quit (c-x c-c not working).
> After some search, I modified cygwin.bat  as:
>  
> =============================
> @echo off
>  
> E:
> chdir E:\cygwin\bin
> set CYGWIN=tty notitle glob
> bash --login -i
> ==============================
> The problem was gone (although i'm not so sure that's the proper
> thing to do)
>  
> *** The 2nd trouble was the delete key. According to the emacs
> tutorial, this should be the backspace key in my case.  But it
> doesn't work. The problem remains the same on my Dell desktop
> (same os, same cygwin+emacs). I figured that instead of  backspace, 
> C-backspace works as <Delete> in emacs tutorial. And so just need
> to keep in mind that <Delete> equals C-backspace for me (both
> thinkpad and dell worked that way)
>  
> *** Now the 3rd trouble: cannot figure out what the key mapping
> for M-<Delete> although M-d works just fine (M=alt in my case).
>  
> Now i'm stuck at %30 part of the emacs tutorial and looking for
> hints on M-<Delete> key mapping....
>  
> I'm starting doubt about what i did: maybe there are some total
> solution for setting emacs on cygwin which makes emacs work just
> like the emacs tutorial described?  Cygwin is there for years and
> many people should gone through this already.
>  
> So i'm looking for help here. And if you know all these about, please
> try letting cygwin newbies know too.
>  
> Thanks!
>  
> 
> 
> ------------------------------------------------------------------------
> 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 266.5.6 - Release Date: 3/1/2005
Compaq Armada E500 emacs 21.2.1 i686-pc-cygwin

I have had similar problems.  By using describe-key-briefly I found that
 in emacs the C-c combination is being interpreted as C-g.  Since C-xC-g
is undefined, I can create a .emacs file with the line:
(global-set-key "\C-x\C-g" 'save-buffers-kill-emacs)

Alternatively, I have tried your modification to cygwin.bat and it fixes
the C-c mapping.

My delete key works fine, but the backspace key is mapped to C-h.

Does anyone have ideas how emacs gets the keys wrong?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cygwin emacs problems
  2005-03-09  2:47 ` cygwin emacs problems Mark Hickman
@ 2005-03-10 18:10   ` Olive
  2005-03-11  2:57     ` Mark Hickman
  0 siblings, 1 reply; 6+ messages in thread
From: Olive @ 2005-03-10 18:10 UTC (permalink / raw)


Mark Hickman wrote:
> Elim Qiu wrote:
> 
>>Hi List,
>> 
>>Forgive me if my question is wrong to the list. I'm new to cygwin and emacs.
>> 
>>I installed cygwin with emacs on my thinkpad T22 + win2k  as:
>>GNU Emacs 21.2.1 (i686-pc-cygwin, X toolkit)  of 2004-03-22 on cm-test
>> 
>>*** The 1st trouble was that it does not quit (c-x c-c not working).
>>After some search, I modified cygwin.bat  as:
>> 
>>=============================
>>@echo off
>> 
>>E:
>>chdir E:\cygwin\bin
>>set CYGWIN=tty notitle glob
>>bash --login -i
>>==============================
>>The problem was gone (although i'm not so sure that's the proper
>>thing to do)
>> 
>>*** The 2nd trouble was the delete key. According to the emacs
>>tutorial, this should be the backspace key in my case.  But it
>>doesn't work. The problem remains the same on my Dell desktop
>>(same os, same cygwin+emacs). I figured that instead of  backspace, 
>>C-backspace works as <Delete> in emacs tutorial. And so just need
>>to keep in mind that <Delete> equals C-backspace for me (both
>>thinkpad and dell worked that way)
>> 
>>*** Now the 3rd trouble: cannot figure out what the key mapping
>>for M-<Delete> although M-d works just fine (M=alt in my case).
>> 
>>Now i'm stuck at %30 part of the emacs tutorial and looking for
>>hints on M-<Delete> key mapping....
>> 
>>I'm starting doubt about what i did: maybe there are some total
>>solution for setting emacs on cygwin which makes emacs work just
>>like the emacs tutorial described?  Cygwin is there for years and
>>many people should gone through this already.
>> 
>>So i'm looking for help here. And if you know all these about, please
>>try letting cygwin newbies know too.
>> 
>>Thanks!
>> 
>>
>>
>>------------------------------------------------------------------------
>>
>>No virus found in this outgoing message.
>>Checked by AVG Anti-Virus.
>>Version: 7.0.300 / Virus Database: 266.5.6 - Release Date: 3/1/2005
> 
> Compaq Armada E500 emacs 21.2.1 i686-pc-cygwin
> 
> I have had similar problems.  By using describe-key-briefly I found that
>  in emacs the C-c combination is being interpreted as C-g.  Since C-xC-g
> is undefined, I can create a .emacs file with the line:
> (global-set-key "\C-x\C-g" 'save-buffers-kill-emacs)
> 
> Alternatively, I have tried your modification to cygwin.bat and it fixes
> the C-c mapping.
> 
> My delete key works fine, but the backspace key is mapped to C-h.
> 
> Does anyone have ideas how emacs gets the keys wrong?

Are you using emacs in the console or under X? If you are using emacs in 
a console; try with X (assuming you have installed the X erver type 
startx). Alternatively you can try the native windows port of emacs?.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cygwin emacs problems
  2005-03-10 18:10   ` Olive
@ 2005-03-11  2:57     ` Mark Hickman
  2005-03-11  4:49       ` B.T. Raven
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Hickman @ 2005-03-11  2:57 UTC (permalink / raw)


Olive wrote:
> Mark Hickman wrote:
> 
>> Elim Qiu wrote:
>>
>>> Hi List,
>>>
>>> Forgive me if my question is wrong to the list. I'm new to cygwin and 
>>> emacs.
>>>
>>> I installed cygwin with emacs on my thinkpad T22 + win2k  as:
>>> GNU Emacs 21.2.1 (i686-pc-cygwin, X toolkit)  of 2004-03-22 on cm-test
>>>
>>> *** The 1st trouble was that it does not quit (c-x c-c not working).
>>> After some search, I modified cygwin.bat  as:
>>>
>>> =============================
>>> @echo off
>>>
>>> E:
>>> chdir E:\cygwin\bin
>>> set CYGWIN=tty notitle glob
>>> bash --login -i
>>> ==============================
>>> The problem was gone (although i'm not so sure that's the proper
>>> thing to do)
>>>
>>> *** The 2nd trouble was the delete key. According to the emacs
>>> tutorial, this should be the backspace key in my case.  But it
>>> doesn't work. The problem remains the same on my Dell desktop
>>> (same os, same cygwin+emacs). I figured that instead of  backspace, 
>>> C-backspace works as <Delete> in emacs tutorial. And so just need
>>> to keep in mind that <Delete> equals C-backspace for me (both
>>> thinkpad and dell worked that way)
>>>
>>> *** Now the 3rd trouble: cannot figure out what the key mapping
>>> for M-<Delete> although M-d works just fine (M=alt in my case).
>>>
>>> Now i'm stuck at %30 part of the emacs tutorial and looking for
>>> hints on M-<Delete> key mapping....
>>>
>>> I'm starting doubt about what i did: maybe there are some total
>>> solution for setting emacs on cygwin which makes emacs work just
>>> like the emacs tutorial described?  Cygwin is there for years and
>>> many people should gone through this already.
>>>
>>> So i'm looking for help here. And if you know all these about, please
>>> try letting cygwin newbies know too.
>>>
>>> Thanks!
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> No virus found in this outgoing message.
>>> Checked by AVG Anti-Virus.
>>> Version: 7.0.300 / Virus Database: 266.5.6 - Release Date: 3/1/2005
>>
>>
>> Compaq Armada E500 emacs 21.2.1 i686-pc-cygwin
>>
>> I have had similar problems.  By using describe-key-briefly I found that
>>  in emacs the C-c combination is being interpreted as C-g.  Since C-xC-g
>> is undefined, I can create a .emacs file with the line:
>> (global-set-key "\C-x\C-g" 'save-buffers-kill-emacs)
>>
>> Alternatively, I have tried your modification to cygwin.bat and it fixes
>> the C-c mapping.
>>
>> My delete key works fine, but the backspace key is mapped to C-h.
>>
>> Does anyone have ideas how emacs gets the keys wrong?
> 
> 
> Are you using emacs in the console or under X? If you are using emacs in 
> a console; try with X (assuming you have installed the X erver type 
> startx). Alternatively you can try the native windows port of emacs?.

I did load the X11 module and confirmed that the X version of emacs does 
not share the same problem with C-c.  I am still curious about why the 
non-X version has this problem.  C-c behaves as expected in bash and 
other programs - causing the program to abort.  I don't know anything 
about how the keyboard layout is revealed to applications.  I would 
suspect the problem lies in a descriptor file somewhere.  Any ideas on 
where to look?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cygwin emacs problems
  2005-03-11  2:57     ` Mark Hickman
@ 2005-03-11  4:49       ` B.T. Raven
  2005-03-11 23:38         ` Mark Hickman
  0 siblings, 1 reply; 6+ messages in thread
From: B.T. Raven @ 2005-03-11  4:49 UTC (permalink / raw)



"Mark Hickman" <mark@mrhickman.org> wrote in message
news:R18Yd.16986$zq5.7087@fe07.lga...
> Olive wrote:
> > Mark Hickman wrote:
> >
> >> Elim Qiu wrote:
> >>
> >>> Hi List,
> >>>
> >>> Forgive me if my question is wrong to the list. I'm new to cygwin
and
> >>> emacs.
> >>>
> >>> I installed cygwin with emacs on my thinkpad T22 + win2k  as:
> >>> GNU Emacs 21.2.1 (i686-pc-cygwin, X toolkit)  of 2004-03-22 on
cm-test
> >>>
> >>> *** The 1st trouble was that it does not quit (c-x c-c not
working).
> >>> After some search, I modified cygwin.bat  as:
> >>>
> >>> =============================
> >>> @echo off
> >>>
> >>> E:
> >>> chdir E:\cygwin\bin
> >>> set CYGWIN=tty notitle glob
> >>> bash --login -i
> >>> ==============================
> >>> The problem was gone (although i'm not so sure that's the proper
> >>> thing to do)
> >>>
> >>> *** The 2nd trouble was the delete key. According to the emacs
> >>> tutorial, this should be the backspace key in my case.  But it
> >>> doesn't work. The problem remains the same on my Dell desktop
> >>> (same os, same cygwin+emacs). I figured that instead of
backspace,
> >>> C-backspace works as <Delete> in emacs tutorial. And so just need
> >>> to keep in mind that <Delete> equals C-backspace for me (both
> >>> thinkpad and dell worked that way)
> >>>
> >>> *** Now the 3rd trouble: cannot figure out what the key mapping
> >>> for M-<Delete> although M-d works just fine (M=alt in my case).
> >>>
> >>> Now i'm stuck at %30 part of the emacs tutorial and looking for
> >>> hints on M-<Delete> key mapping....
> >>>
> >>> I'm starting doubt about what i did: maybe there are some total
> >>> solution for setting emacs on cygwin which makes emacs work just
> >>> like the emacs tutorial described?  Cygwin is there for years and
> >>> many people should gone through this already.
> >>>
> >>> So i'm looking for help here. And if you know all these about,
please
> >>> try letting cygwin newbies know too.
> >>>
> >>> Thanks!
> >>>
> >>>
> >>>
>
>>> --------------------------------------------------------------------
----
> >>>
> >>> No virus found in this outgoing message.
> >>> Checked by AVG Anti-Virus.
> >>> Version: 7.0.300 / Virus Database: 266.5.6 - Release Date:
3/1/2005
> >>
> >>
> >> Compaq Armada E500 emacs 21.2.1 i686-pc-cygwin
> >>
> >> I have had similar problems.  By using describe-key-briefly I found
that
> >>  in emacs the C-c combination is being interpreted as C-g.  Since
C-xC-g
> >> is undefined, I can create a .emacs file with the line:
> >> (global-set-key "\C-x\C-g" 'save-buffers-kill-emacs)
> >>
> >> Alternatively, I have tried your modification to cygwin.bat and it
fixes
> >> the C-c mapping.
> >>
> >> My delete key works fine, but the backspace key is mapped to C-h.
> >>
> >> Does anyone have ideas how emacs gets the keys wrong?
> >
> >
> > Are you using emacs in the console or under X? If you are using
emacs in
> > a console; try with X (assuming you have installed the X erver type
> > startx). Alternatively you can try the native windows port of
emacs?.
>
> I did load the X11 module and confirmed that the X version of emacs
does
> not share the same problem with C-c.  I am still curious about why the
> non-X version has this problem.  C-c behaves as expected in bash and
> other programs - causing the program to abort.  I don't know anything
> about how the keyboard layout is revealed to applications.  I would
> suspect the problem lies in a descriptor file somewhere.  Any ideas on
> where to look?

C-c is a mode specific command prefix. It is apparently dealt with in
bindings.el. I don't understand it but I got there via
Menu-Help-Describe-List Key Bindings and then following the links from
C-c in the buffer listing the key bindings.
I have installed all of cygwin on a slow PIII but I don't bother with
emacs under X since I've heard that it's much slower than the native NT
build (21.3, which is plenty fast for me).

Ed.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cygwin emacs problems
  2005-03-11  4:49       ` B.T. Raven
@ 2005-03-11 23:38         ` Mark Hickman
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Hickman @ 2005-03-11 23:38 UTC (permalink / raw)


B.T. Raven wrote:
> "Mark Hickman" <mark@mrhickman.org> wrote in message
> news:R18Yd.16986$zq5.7087@fe07.lga...
> 
>>Olive wrote:
>>
>>>Mark Hickman wrote:
>>>
>>>
>>>>Elim Qiu wrote:
>>>>
>>>>
>>>>>Hi List,
>>>>>
>>>>>Forgive me if my question is wrong to the list. I'm new to cygwin
> 
> and
> 
>>>>>emacs.
>>>>>
>>>>>I installed cygwin with emacs on my thinkpad T22 + win2k  as:
>>>>>GNU Emacs 21.2.1 (i686-pc-cygwin, X toolkit)  of 2004-03-22 on
> 
> cm-test
> 
>>>>>*** The 1st trouble was that it does not quit (c-x c-c not
> 
> working).
> 
>>>>>After some search, I modified cygwin.bat  as:
>>>>>
>>>>>=============================
>>>>>@echo off
>>>>>
>>>>>E:
>>>>>chdir E:\cygwin\bin
>>>>>set CYGWIN=tty notitle glob
>>>>>bash --login -i
>>>>>==============================
>>>>>The problem was gone (although i'm not so sure that's the proper
>>>>>thing to do)
>>>>>
>>>>>*** The 2nd trouble was the delete key. According to the emacs
>>>>>tutorial, this should be the backspace key in my case.  But it
>>>>>doesn't work. The problem remains the same on my Dell desktop
>>>>>(same os, same cygwin+emacs). I figured that instead of
> 
> backspace,
> 
>>>>>C-backspace works as <Delete> in emacs tutorial. And so just need
>>>>>to keep in mind that <Delete> equals C-backspace for me (both
>>>>>thinkpad and dell worked that way)
>>>>>
>>>>>*** Now the 3rd trouble: cannot figure out what the key mapping
>>>>>for M-<Delete> although M-d works just fine (M=alt in my case).
>>>>>
>>>>>Now i'm stuck at %30 part of the emacs tutorial and looking for
>>>>>hints on M-<Delete> key mapping....
>>>>>
>>>>>I'm starting doubt about what i did: maybe there are some total
>>>>>solution for setting emacs on cygwin which makes emacs work just
>>>>>like the emacs tutorial described?  Cygwin is there for years and
>>>>>many people should gone through this already.
>>>>>
>>>>>So i'm looking for help here. And if you know all these about,
> 
> please
> 
>>>>>try letting cygwin newbies know too.
>>>>>
>>>>>Thanks!
>>>>>
>>>>>
>>>>>
>>
>>>>--------------------------------------------------------------------
> 
> ----
> 
>>>>>No virus found in this outgoing message.
>>>>>Checked by AVG Anti-Virus.
>>>>>Version: 7.0.300 / Virus Database: 266.5.6 - Release Date:
> 
> 3/1/2005
> 
>>>>
>>>>Compaq Armada E500 emacs 21.2.1 i686-pc-cygwin
>>>>
>>>>I have had similar problems.  By using describe-key-briefly I found
> 
> that
> 
>>>> in emacs the C-c combination is being interpreted as C-g.  Since
> 
> C-xC-g
> 
>>>>is undefined, I can create a .emacs file with the line:
>>>>(global-set-key "\C-x\C-g" 'save-buffers-kill-emacs)
>>>>
>>>>Alternatively, I have tried your modification to cygwin.bat and it
> 
> fixes
> 
>>>>the C-c mapping.
>>>>
>>>>My delete key works fine, but the backspace key is mapped to C-h.
>>>>
>>>>Does anyone have ideas how emacs gets the keys wrong?
>>>
>>>
>>>Are you using emacs in the console or under X? If you are using
> 
> emacs in
> 
>>>a console; try with X (assuming you have installed the X erver type
>>>startx). Alternatively you can try the native windows port of
> 
> emacs?.
> 
>>I did load the X11 module and confirmed that the X version of emacs
> 
> does
> 
>>not share the same problem with C-c.  I am still curious about why the
>>non-X version has this problem.  C-c behaves as expected in bash and
>>other programs - causing the program to abort.  I don't know anything
>>about how the keyboard layout is revealed to applications.  I would
>>suspect the problem lies in a descriptor file somewhere.  Any ideas on
>>where to look?
> 
> 
> C-c is a mode specific command prefix. It is apparently dealt with in
> bindings.el. I don't understand it but I got there via
> Menu-Help-Describe-List Key Bindings and then following the links from
> C-c in the buffer listing the key bindings.
> I have installed all of cygwin on a slow PIII but I don't bother with
> emacs under X since I've heard that it's much slower than the native NT
> build (21.3, which is plenty fast for me).
> 
> Ed.
> 
Thanks, Ed.
I thought about chasing the bindings, but think the problem is elsewhere 
because if I invoke help-describe-key, when I type C-c, emacs reports 
that C-g is "keyboard-quit".  I don't think emacs is receiving the 
correct key-code.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-03-11 23:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2366.1109791784.32256.help-gnu-emacs@gnu.org>
2005-03-09  2:47 ` cygwin emacs problems Mark Hickman
2005-03-10 18:10   ` Olive
2005-03-11  2:57     ` Mark Hickman
2005-03-11  4:49       ` B.T. Raven
2005-03-11 23:38         ` Mark Hickman
2005-03-02 19:00 Elim Qiu

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).