diff options
| author | Stefan Monnier | 2018-07-27 16:45:03 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2018-07-27 16:45:03 -0400 |
| commit | 8c8bf7db62af2c80537b5760bea01f7da9712a0e (patch) | |
| tree | a7c620b8f2e41c030e44446ef0e1ac4fae4c683d | |
| parent | 22f549e3056043a6e24fdb586090b33ad0c91095 (diff) | |
| download | emacs-8c8bf7db62af2c80537b5760bea01f7da9712a0e.tar.gz emacs-8c8bf7db62af2c80537b5760bea01f7da9712a0e.zip | |
* lisp/simple.el (event-apply-modifier): Map control+[ to C-[
| -rw-r--r-- | lisp/simple.el | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 6459531a4ec..8d770478aa9 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -8346,14 +8346,12 @@ LSHIFTBY is the numeric value of this modifier, in keyboard events. | |||
| 8346 | PREFIX is the string that represents this modifier in an event type symbol." | 8346 | PREFIX is the string that represents this modifier in an event type symbol." |
| 8347 | (if (numberp event) | 8347 | (if (numberp event) |
| 8348 | (cond ((eq symbol 'control) | 8348 | (cond ((eq symbol 'control) |
| 8349 | (if (and (<= (downcase event) ?z) | 8349 | (if (<= 64 (upcase event) 95) |
| 8350 | (>= (downcase event) ?a)) | 8350 | (- (upcase event) 64) |
| 8351 | (- (downcase event) ?a -1) | 8351 | (logior (lsh 1 lshiftby) event))) |
| 8352 | (if (and (<= (downcase event) ?Z) | ||
| 8353 | (>= (downcase event) ?A)) | ||
| 8354 | (- (downcase event) ?A -1) | ||
| 8355 | (logior (lsh 1 lshiftby) event)))) | ||
| 8356 | ((eq symbol 'shift) | 8352 | ((eq symbol 'shift) |
| 8353 | ;; FIXME: Should we also apply this "upcase" behavior of shift | ||
| 8354 | ;; to non-ascii letters? | ||
| 8357 | (if (and (<= (downcase event) ?z) | 8355 | (if (and (<= (downcase event) ?z) |
| 8358 | (>= (downcase event) ?a)) | 8356 | (>= (downcase event) ?a)) |
| 8359 | (upcase event) | 8357 | (upcase event) |