# HG changeset patch # User Karl Heuer # Date 797035696 0 # Node ID f6caea9275afa70cab891f7cc6d11bd1894b0304 # Parent dd83a62faceadd6713fda92307bec74b8d1e1cc7 (event-apply-modifier): Fix off-by-one errors. diff -r dd83a62facea -r f6caea9275af lisp/simple.el --- a/lisp/simple.el Tue Apr 04 21:11:29 1995 +0000 +++ b/lisp/simple.el Tue Apr 04 22:48:16 1995 +0000 @@ -2835,11 +2835,11 @@ PREFIX is the string that represents this modifier in an event type symbol." (if (numberp event) (cond ((eq symbol 'control) - (if (and (< (downcase event) ?z) - (> (downcase event) ?a)) + (if (and (<= (downcase event) ?z) + (>= (downcase event) ?a)) (- (downcase event) ?a -1) - (if (and (< (downcase event) ?Z) - (> (downcase event) ?A)) + (if (and (<= (downcase event) ?Z) + (>= (downcase event) ?A)) (- (downcase event) ?A -1) (logior (lsh 1 lshiftby) event)))) ((eq symbol 'shift)