diff options
| -rw-r--r-- | lisp/play/decipher.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/play/decipher.el b/lisp/play/decipher.el index 3e487ff3232..f7d07ae13f3 100644 --- a/lisp/play/decipher.el +++ b/lisp/play/decipher.el | |||
| @@ -408,7 +408,7 @@ The most useful commands are: | |||
| 408 | (setcdr (nthcdr (1- new-size) decipher-undo-list) nil) | 408 | (setcdr (nthcdr (1- new-size) decipher-undo-list) nil) |
| 409 | (setq decipher-undo-list-size new-size)))))) | 409 | (setq decipher-undo-list-size new-size)))))) |
| 410 | 410 | ||
| 411 | (defun decipher-get-undo-copy (cons) | 411 | (defun decipher-copy-cons (cons) |
| 412 | (if cons | 412 | (if cons |
| 413 | (cons (car cons) (cdr cons)))) | 413 | (cons (car cons) (cdr cons)))) |
| 414 | 414 | ||
| @@ -417,8 +417,8 @@ The most useful commands are: | |||
| 417 | ;; (decipher-set-map CIPHER-CHAR PLAIN-CHAR) | 417 | ;; (decipher-set-map CIPHER-CHAR PLAIN-CHAR) |
| 418 | ;; We must copy the cons cell because the original cons cells will be | 418 | ;; We must copy the cons cell because the original cons cells will be |
| 419 | ;; modified using setcdr. | 419 | ;; modified using setcdr. |
| 420 | (let ((cipher-map (decipher-get-undo-copy (rassoc cipher-char decipher-alphabet))) | 420 | (let ((cipher-map (decipher-copy-cons (rassoc cipher-char decipher-alphabet))) |
| 421 | (plain-map (decipher-get-undo-copy (assoc plain-char decipher-alphabet)))) | 421 | (plain-map (decipher-copy-cons (assoc plain-char decipher-alphabet)))) |
| 422 | (cond ((equal ?\ plain-char) | 422 | (cond ((equal ?\ plain-char) |
| 423 | cipher-map) | 423 | cipher-map) |
| 424 | ((equal cipher-char (cdr plain-map)) | 424 | ((equal cipher-char (cdr plain-map)) |