Mercurial > emacs
diff lisp/play/decipher.el @ 59604:15fecef37804
(decipher-mode): Don't call decipher-read-alphabet if buffer is empty.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 17 Jan 2005 23:50:23 +0000 |
parents | 695cf19ef79e |
children | eaa9acd9122c 6d92d69fae33 |
line wrap: on
line diff
--- a/lisp/play/decipher.el Mon Jan 17 23:49:20 2005 +0000 +++ b/lisp/play/decipher.el Mon Jan 17 23:50:23 2005 +0000 @@ -305,7 +305,8 @@ (setq case-fold-search nil)) ;Case is significant when searching (use-local-map decipher-mode-map) (set-syntax-table decipher-mode-syntax-table) - (decipher-read-alphabet) + (unless (= (point-min) (point-max)) + (decipher-read-alphabet)) (set (make-local-variable 'font-lock-defaults) '(decipher-font-lock-keywords t)) ;; Make the buffer writable when we exit Decipher mode: