From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Hickman Newsgroups: gmane.emacs.help Subject: Re: cygwin emacs problems Date: Thu, 10 Mar 2005 21:57:19 -0500 Message-ID: References: <6ItXd.11119$%y7.9493@fe07.lga> <42308ca6$1_1@x-privat.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1110510375 32141 80.91.229.2 (11 Mar 2005 03:06:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2005 03:06:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 11 04:06:15 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D9aSY-0001Ee-8M for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Mar 2005 04:05:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D9ahW-0001YQ-Uj for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Mar 2005 22:20:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!gnilink.net!hwmnpeer01.lga!hwmedia!hw-poster!fe07.lga.POSTED!53ab2750!not-for-mail User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <42308ca6$1_1@x-privat.org> Original-Lines: 86 Original-X-Trace: pikkdiabbdefphapehmopccffmdfkeopipbhgbmhocnojnejligoffbbnjiklfmefkmmgeibhdpkdfdjiaipjjbjmkabpheddcolfpjjeflpngljdpkpoohcameioogmbcfagklmibllijll Original-NNTP-Posting-Date: Thu, 10 Mar 2005 20:13:53 MST Original-Xref: shelby.stanford.edu gnu.emacs.help:129211 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:24761 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24761 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 in emacs tutorial. And so just need >>> to keep in mind that 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- 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- 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?