X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
X-RAL-MFrom: <T.J.Adye@rl.ac.uk>
X-RAL-Connect: <hepntw305.pp.rl.ac.uk [130.246.41.114]>
From: "Tim Adye" <T.J.Adye@rl.ac.uk>
To: "'Ken Brown'" <kbrown@cornell.edu>, <cygwin@cygwin.com>
References: <4A168F2B.4020805@cornell.edu> <2377ADF68DFE455199B53E97E5747E43@HEPNTLTIM3> <4A1B17FD.902@dronecode.org.uk> <4A1BD971.70808@cornell.edu> <83bppfskbt.fsf@gnu.org> <4A1C5831.6030008@cornell.edu> <99716858969849F89D65A4015B9948F7@HEPNTLTIM3> <4A1C9952.8040100@cornell.edu>
Subject: RE: emacs -nw keypad
Date: Wed, 27 May 2009 20:36:51 +0100
Keywords: Addressed to T.J.Adye@rl.ac.uk
Message-ID: <AECBDC9D8B31450CA07DD85A423AD033@dc.pp.rl.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
In-Reply-To: <4A1C9952.8040100@cornell.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hi Ken,

> But this doesn't seem to have anything to do with recent versions of 
> emacs.  I just reverted to cygwin's emacs-21.2-13 (in cygwin-1.5) and 
> repeated several of my tests (all except the one in rxvt), and the 
> results were identical to those I reported before.

Yes, I get the same keystroke log with the old working version as with the new
keypad-broken version. So I guess that doesn't help.

So this problem may be with tpu-edt.el as you suggested earlier. I made a more
systematic check using

  emacs -q -nw -f tpu-edt

and using "F1 k" to get the binding for each keypad key.

In an xterm (with TERM=xterm) a few keypad keys do in fact have a (not very
useful) definition: kp-f1, kp-f2, kp-f3, kp-f4 are (incorrectly) mapped to f1,
f2, f3, f4 and kp-enter is correctly mapped. All the other keypad keys are
undefined.

In an rxvt (X-window, with TERM=rxvt) there are some different definitions:
kp-1, kp-3, kp-5, kp-7, kp-9, kp-enter are all correctly defined. kp-2 is
(incorrectly) defined the same as the menu or execute key. All the other
keypad keys are undefined.

So, a few keypad keys are defined, but it is TERM-specific.

> I'll bet the problems you reported had nothing to do with updating 
> emacs.  Probably when you ran setup.exe to update emacs, 
> other packages 
> were updated at the same time, and changes in these are somehow 
> responsible for the poor interaction between emacs and the terminal.

I just checked this on another machine that still had the old emacs 21.2 (and
had recently had a fresh Cygwin install, and I applied the latest changes
before testing). Before updating emacs, it worked fine. I then installed
23.0.92-2 emacs, emacs-el, and emacs-X11 and the keypad problem appeared. I
then reverted to 21.2-13 and it was working again.

Thanks,
Tim.

> I think you should be able to tell what other packages were 
> updated by 
> looking at /var/log/setup.log and/or /var/log/setup.log.full.  Could 
> terminfo be the culprit?
> 
> Chuck, can you help?
> 
> 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/

