delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/13/19:42:32

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_50,SPF_NEUTRAL,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4BEC8E3C.7040109@cornell.edu>
Date: Thu, 13 May 2010 19:41:48 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: {emacs,emacs-X11,emacs-el}-23.2-1
References: <announce DOT 4BE7DE83 DOT 7040902 AT cornell DOT edu> <hshnjf$jav$1 AT dough DOT gmane DOT org> <4BEC64ED DOT 3060008 AT cornell DOT edu> <hshq1m$sk0$1 AT dough DOT gmane DOT org> <hshqfr$tmc$1 AT dough DOT gmane DOT org>
In-Reply-To: <hshqfr$tmc$1@dough.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 5/13/2010 5:20 PM, Rolf Campbell wrote:
> On 2010-05-13 17:13, Rolf Campbell wrote:
>> On 2010-05-13 16:45, Ken Brown wrote:
>>> On 5/13/2010 4:31 PM, Rolf Campbell wrote:
>>>> On 2010-05-10 06:22, Ken Brown wrote:
>>>>> New releases of the emacs, emacs-X11, and emacs-el packages are now
>>>>> available, 23.2-1, leaving 23.1-10 as previous.
>>>> I've been using the native W32 port of emacs for years. I tried using
>>>> the native cygwin build of it and ran into a problem: I can't seem to
>>>> bind all key combinations.
>>>> - Alt+F3 (or Alt+any F-key) seem to have no effect at all.
>>>> - Ctrl+Alt+Shift+5: I bind it using (global-set-key (kbd "C-M-%" ...),
>>>> but pressing Ctrl+Alt+Shift+5 results in emacs complaining that "M-[ 1 ;
>>>> 8 u" is undefined.
>>>
>>> Are you using emacs in the Cygwin console? If so, many key combinations
>>> won't work as you expect. This is documented in
>>> /usr/share/doc/Cygwin/emacs.README. You'll have better luck running
>>> emacs in mintty. Or for an interface that is more like the native Win32
>>> build, run emacs under X11.
>>>
>>> Ken
>>>
>> Sorry, I should have been more clear, I'm running in mintty.
>> [reading emacs.README ...]
>> Oh, I see. Is there any way to bind the resulting key codes? Can I use
>> "M-[ 1 ; 8 u" as a key to bind?
>>
>>
> To answer my own question: Yes, you can use
> (global-set-key (kbd "M-[ 1 ; 8 u" ...))
> to bind Ctrl+Alt+Shift+5 in mintty.
>
> So, now that I know a better work-around, is this a bug in cygwin,
> mintty, or cygwin-emacs?

I don't know the answer.  I tried Ctrl+Alt+Shift+5 in emacs under X11, 
and it seems to work fine, i.e., it is recognized as C-M-%.  I also 
tried it in an xterm window ('emacs -nw'), and it fails there but in a 
different way than in mintty: emacs sees it as C-%.

Maybe Andy (mintty author/maintainer) can explain what's going on.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019