mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(strokes-list-strokes): Don't try to delete char at eob.
(strokes-unload-hook): Set as a variable with add-hook.
This commit is contained in:
parent
b55c0dea6d
commit
4c3fca9c23
1 changed files with 4 additions and 1 deletions
|
|
@ -1354,7 +1354,8 @@ If STROKES-MAP is not given, `strokes-global-map' will be used instead."
|
|||
:color-symbols
|
||||
`(("foreground"
|
||||
. ,(frame-parameter nil 'foreground-color))))))
|
||||
finally do (kill-region (1+ (point)) (point-max)))
|
||||
finally do (unless (eobp)
|
||||
(kill-region (1+ (point)) (point-max))))
|
||||
(view-buffer "*Strokes List*" nil)
|
||||
(set (make-local-variable 'view-mode-map)
|
||||
(let ((map (copy-keymap view-mode-map)))
|
||||
|
|
@ -1745,6 +1746,8 @@ Store XPM in buffer BUFNAME if supplied \(default is ` *strokes-xpm*'\)"
|
|||
(strokes-mode -1)
|
||||
(remove-hook 'kill-emacs-query-functions 'strokes-prompt-user-save-strokes))
|
||||
|
||||
(add-hooks 'strokes-unload-hook 'strokes-unload-hook)
|
||||
|
||||
(run-hooks 'strokes-load-hook)
|
||||
(provide 'strokes)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue