This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated: {emacs,emacs-X11,emacs-el}-23.2-1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]