projects
/
pico8.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9ecff5f
)
Fix self-insert on Emacs 25.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Sat, 9 Sep 2017 11:06:56 +0000
(13:06 +0200)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Sat, 9 Sep 2017 11:06:56 +0000
(13:06 +0200)
pico8.el
patch
|
blob
|
history
diff --git
a/pico8.el
b/pico8.el
index
32239f5
..
95fcd20
100644
(file)
--- 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)
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)
(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.
(defun pico8-goto-char (position)
"Set point to POSITION, a number.