refine list of not C-ed events

This commit is contained in:
Jean-Philippe Bernardy 2016-11-13 21:20:28 +01:00
parent 2547e10d25
commit ab49c4019a

View file

@ -85,7 +85,7 @@
"Swap the control 'bit' in EVENT, if that is a good choice." "Swap the control 'bit' in EVENT, if that is a good choice."
(interactive (list (read-key))) (interactive (list (read-key)))
(cond (cond
((memq event '(9 13 ?{ ?} ?[ ?] ?$ ?< ?> ?: ?\; ?/ ??)) event) ((memq event '(9 13 ?{ ?} ?[ ?] ?$ ?< ?> ?: ?\; ?/ ?? ?. ?,)) event)
((<= event 27) (+ 96 event)) ((<= event 27) (+ 96 event))
((not (eq 0 (logand (lsh 1 26) event))) (logxor (lsh 1 26) event)) ((not (eq 0 (logand (lsh 1 26) event))) (logxor (lsh 1 26) event))
(t (list 'control event)))) (t (list 'control event))))