aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2019-10-20 23:04:29 +0200
committerStefan Kangas2019-10-20 23:05:40 +0200
commitb6bf5327908d310fabf7012af6790c7abc2114f4 (patch)
tree9e8e69c7aa129bf52f882e11604aaf172ab983ab
parent5cc1bd5ea1b7e57f36b52b33f2d8b6c42f620d0f (diff)
downloademacs-b6bf5327908d310fabf7012af6790c7abc2114f4.tar.gz
emacs-b6bf5327908d310fabf7012af6790c7abc2114f4.zip
Remove XEmacs compat code from decipher.el
* lisp/play/decipher.el (decipher-last-command-char) (decipher-keypress): Remove XEmacs compat code.
-rw-r--r--lisp/play/decipher.el8
1 files changed, 1 insertions, 7 deletions
diff --git a/lisp/play/decipher.el b/lisp/play/decipher.el
index cb0f07579ab..52683afeb3c 100644
--- a/lisp/play/decipher.el
+++ b/lisp/play/decipher.el
@@ -307,12 +307,6 @@ The most useful commands are:
307;; Normal key handling: 307;; Normal key handling:
308;;-------------------------------------------------------------------- 308;;--------------------------------------------------------------------
309 309
310(defmacro decipher-last-command-char ()
311 ;; Return the char which ran this command (for compatibility with XEmacs)
312 (if (fboundp 'event-to-character)
313 '(event-to-character last-command-event)
314 'last-command-event))
315
316(defun decipher-keypress () 310(defun decipher-keypress ()
317 "Enter a plaintext or ciphertext character." 311 "Enter a plaintext or ciphertext character."
318 (interactive) 312 (interactive)
@@ -338,7 +332,7 @@ The most useful commands are:
338 (let (goal-column) 332 (let (goal-column)
339 (forward-line -1))) 333 (forward-line -1)))
340 (let ((char-a (following-char)) 334 (let ((char-a (following-char))
341 (char-b (decipher-last-command-char))) 335 (char-b last-command-event))
342 (or (and (not (= ?w (char-syntax char-a))) 336 (or (and (not (= ?w (char-syntax char-a)))
343 (= char-b ?\s)) ;Spacebar just advances on non-letters 337 (= char-b ?\s)) ;Spacebar just advances on non-letters
344 (funcall decipher-function char-a char-b))))) 338 (funcall decipher-function char-a char-b)))))