Mercurial > hg > xemacs-beta
diff src/keymap.c @ 74:54cc21c15cbb r20-0b32
Import from CVS: tag r20-0b32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:04:33 +0200 |
parents | 131b0175ea99 |
children | c0c698873ce1 |
line wrap: on
line diff
--- a/src/keymap.c Mon Aug 13 09:03:47 2007 +0200 +++ b/src/keymap.c Mon Aug 13 09:04:33 2007 +0200 @@ -1320,7 +1320,15 @@ otherwise have the same problem as above. (Gag!) We silently accept these as aliases for the "real" names. */ - else if (EQ (*keysym, QLFD)) + else if (!strncmp(name, "kp_", 3)) { + /* Likewise, the obsolete keysym binding of kp_.* should not lose. */ + char temp[50]; + + strncpy(temp, name, sizeof (temp)); + temp[sizeof (temp) - 1] = '\0'; + temp[2] = '-'; + *keysym = Fintern_soft(make_string(temp, strlen(temp)), Qnil); + } else if (EQ (*keysym, QLFD)) *keysym = QKlinefeed; else if (EQ (*keysym, QTAB)) *keysym = QKtab;