diff options
| author | Richard M. Stallman | 2004-10-17 06:57:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-10-17 06:57:51 +0000 |
| commit | 4c3fca9c23cd47fc883a7f3feae7cdc044d27230 (patch) | |
| tree | f1f7dc042406dc0ac7c7b28eee3f9c47d131b1aa | |
| parent | b55c0dea6dee8944fe6697e34e82df0376f11742 (diff) | |
| download | emacs-4c3fca9c23cd47fc883a7f3feae7cdc044d27230.tar.gz emacs-4c3fca9c23cd47fc883a7f3feae7cdc044d27230.zip | |
(strokes-list-strokes): Don't try to delete char at eob.
(strokes-unload-hook): Set as a variable with add-hook.
| -rw-r--r-- | lisp/strokes.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/strokes.el b/lisp/strokes.el index cd3e82c4d3c..57f1e3355b2 100644 --- a/lisp/strokes.el +++ b/lisp/strokes.el | |||
| @@ -1354,7 +1354,8 @@ If STROKES-MAP is not given, `strokes-global-map' will be used instead." | |||
| 1354 | :color-symbols | 1354 | :color-symbols |
| 1355 | `(("foreground" | 1355 | `(("foreground" |
| 1356 | . ,(frame-parameter nil 'foreground-color)))))) | 1356 | . ,(frame-parameter nil 'foreground-color)))))) |
| 1357 | finally do (kill-region (1+ (point)) (point-max))) | 1357 | finally do (unless (eobp) |
| 1358 | (kill-region (1+ (point)) (point-max)))) | ||
| 1358 | (view-buffer "*Strokes List*" nil) | 1359 | (view-buffer "*Strokes List*" nil) |
| 1359 | (set (make-local-variable 'view-mode-map) | 1360 | (set (make-local-variable 'view-mode-map) |
| 1360 | (let ((map (copy-keymap view-mode-map))) | 1361 | (let ((map (copy-keymap view-mode-map))) |
| @@ -1745,6 +1746,8 @@ Store XPM in buffer BUFNAME if supplied \(default is ` *strokes-xpm*'\)" | |||
| 1745 | (strokes-mode -1) | 1746 | (strokes-mode -1) |
| 1746 | (remove-hook 'kill-emacs-query-functions 'strokes-prompt-user-save-strokes)) | 1747 | (remove-hook 'kill-emacs-query-functions 'strokes-prompt-user-save-strokes)) |
| 1747 | 1748 | ||
| 1749 | (add-hooks 'strokes-unload-hook 'strokes-unload-hook) | ||
| 1750 | |||
| 1748 | (run-hooks 'strokes-load-hook) | 1751 | (run-hooks 'strokes-load-hook) |
| 1749 | (provide 'strokes) | 1752 | (provide 'strokes) |
| 1750 | 1753 | ||