;; Normal key handling:
;;--------------------------------------------------------------------
-(defmacro decipher-last-command-char ()
- ;; Return the char which ran this command (for compatibility with XEmacs)
- (if (fboundp 'event-to-character)
- '(event-to-character last-command-event)
- 'last-command-event))
-
(defun decipher-keypress ()
"Enter a plaintext or ciphertext character."
(interactive)
(let (goal-column)
(forward-line -1)))
(let ((char-a (following-char))
- (char-b (decipher-last-command-char)))
+ (char-b last-command-event))
(or (and (not (= ?w (char-syntax char-a)))
(= char-b ?\s)) ;Spacebar just advances on non-letters
(funcall decipher-function char-a char-b)))))