X-Git-Url: https://git.korewanetadesu.com/?p=pico8.git;a=blobdiff_plain;f=pico8.el;h=95fcd2036190d7ef2daeba073c5a53f2f3361652;hp=32239f596b90190d7a926f68a83f6e97032c7ef3;hb=8f8b10d094b14dc6b5fc8cf105a5ae456b02d42e;hpb=9ecff5fb488d4a68283b1d70bf34547574ae7a0f diff --git a/pico8.el b/pico8.el index 32239f5..95fcd20 100644 --- a/pico8.el +++ b/pico8.el @@ -109,13 +109,13 @@ insert the typed character if it is one of these characters, overwriting one of these characters." (interactive "P") (when (memq (char-after) pico8-data-characters) - (let ((overwrite-mode t)) + (let ((overwrite-mode 'overwrite-mode-textual)) (self-insert-command (prefix-numeric-value n))))) (let ((map pico8-data-mode-map)) (suppress-keymap map) - (dolist (c pico8-data-characters) - (define-key map (format "%c" c) 'pico8-data-self-insert-command))) + (dolist (c (mapcar #'char-to-string pico8-data-characters)) + (define-key map c 'pico8-data-self-insert-command))) (defun pico8-goto-char (position) "Set point to POSITION, a number.