# HG changeset patch # User Richard M. Stallman # Date 1097996271 0 # Node ID 84c10e765f2b5a51a13f2b277cb3c66467f5d8b8 # Parent 0e1bc02edee663be833ef608004abe825c0f844e (strokes-list-strokes): Don't try to delete char at eob. (strokes-unload-hook): Set as a variable with add-hook. diff -r 0e1bc02edee6 -r 84c10e765f2b lisp/strokes.el --- a/lisp/strokes.el Sun Oct 17 06:56:40 2004 +0000 +++ b/lisp/strokes.el Sun Oct 17 06:57:51 2004 +0000 @@ -1354,7 +1354,8 @@ :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 @@ (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)