Commit c42451e
committed
Fix Meta keys not reaching terminal in TTY Emacs
TTY Emacs delivers M-<key> as two events (ESC then <key>) via esc-map.
When the binding fires, last-command-event is just <key> with no meta
modifier — the ESC was consumed by the prefix lookup. GUI Emacs
delivers the composite single event with meta intact, which is why the
earlier fix only worked there.
Detect the esc-prefix path in ghostel--send-event via
this-command-keys-vector and re-inject meta. Also bind M-DEL so TTY
Alt-Backspace ([27 127]) routes through send-event instead of falling
through to global backward-kill-word.
Follow-up to 43220db. Fix #48.1 parent 266e3e9 commit c42451e
2 files changed
Lines changed: 46 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1037 | 1037 | | |
1038 | 1038 | | |
1039 | 1039 | | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
1040 | 1045 | | |
1041 | 1046 | | |
1042 | 1047 | | |
| |||
1282 | 1287 | | |
1283 | 1288 | | |
1284 | 1289 | | |
1285 | | - | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
1286 | 1295 | | |
1287 | 1296 | | |
1288 | 1297 | | |
| 1298 | + | |
| 1299 | + | |
1289 | 1300 | | |
1290 | 1301 | | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
1291 | 1305 | | |
1292 | 1306 | | |
1293 | 1307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5955 | 5955 | | |
5956 | 5956 | | |
5957 | 5957 | | |
5958 | | - | |
| 5958 | + | |
| 5959 | + | |
| 5960 | + | |
| 5961 | + | |
| 5962 | + | |
| 5963 | + | |
| 5964 | + | |
| 5965 | + | |
| 5966 | + | |
| 5967 | + | |
| 5968 | + | |
| 5969 | + | |
| 5970 | + | |
| 5971 | + | |
| 5972 | + | |
| 5973 | + | |
| 5974 | + | |
| 5975 | + | |
| 5976 | + | |
| 5977 | + | |
| 5978 | + | |
| 5979 | + | |
| 5980 | + | |
| 5981 | + | |
| 5982 | + | |
| 5983 | + | |
| 5984 | + | |
| 5985 | + | |
| 5986 | + | |
| 5987 | + | |
5959 | 5988 | | |
5960 | 5989 | | |
5961 | 5990 | | |
| |||
7004 | 7033 | | |
7005 | 7034 | | |
7006 | 7035 | | |
| 7036 | + | |
7007 | 7037 | | |
7008 | 7038 | | |
7009 | 7039 | | |
| |||
0 commit comments