diff options
Diffstat (limited to 'lisp/simple.el')
| -rw-r--r-- | lisp/simple.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 6040d48a991..0ccf2f1d22e 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -8348,16 +8348,16 @@ PREFIX is the string that represents this modifier in an event type symbol." | |||
| 8348 | (cond ((eq symbol 'control) | 8348 | (cond ((eq symbol 'control) |
| 8349 | (if (<= 64 (upcase event) 95) | 8349 | (if (<= 64 (upcase event) 95) |
| 8350 | (- (upcase event) 64) | 8350 | (- (upcase event) 64) |
| 8351 | (logior (lsh 1 lshiftby) event))) | 8351 | (logior (ash 1 lshiftby) event))) |
| 8352 | ((eq symbol 'shift) | 8352 | ((eq symbol 'shift) |
| 8353 | ;; FIXME: Should we also apply this "upcase" behavior of shift | 8353 | ;; FIXME: Should we also apply this "upcase" behavior of shift |
| 8354 | ;; to non-ascii letters? | 8354 | ;; to non-ascii letters? |
| 8355 | (if (and (<= (downcase event) ?z) | 8355 | (if (and (<= (downcase event) ?z) |
| 8356 | (>= (downcase event) ?a)) | 8356 | (>= (downcase event) ?a)) |
| 8357 | (upcase event) | 8357 | (upcase event) |
| 8358 | (logior (lsh 1 lshiftby) event))) | 8358 | (logior (ash 1 lshiftby) event))) |
| 8359 | (t | 8359 | (t |
| 8360 | (logior (lsh 1 lshiftby) event))) | 8360 | (logior (ash 1 lshiftby) event))) |
| 8361 | (if (memq symbol (event-modifiers event)) | 8361 | (if (memq symbol (event-modifiers event)) |
| 8362 | event | 8362 | event |
| 8363 | (let ((event-type (if (symbolp event) event (car event)))) | 8363 | (let ((event-type (if (symbolp event) event (car event)))) |