diff options
| author | Richard M. Stallman | 2005-07-03 16:34:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-07-03 16:34:30 +0000 |
| commit | 44ee3feea6011db5cee7f8f8b239abaade0361d1 (patch) | |
| tree | 055b66f2b6e179466adc8b200c3a1b667c29b986 | |
| parent | 55def74299dd1def55e48f698952972a31d709fc (diff) | |
| download | emacs-44ee3feea6011db5cee7f8f8b239abaade0361d1.tar.gz emacs-44ee3feea6011db5cee7f8f8b239abaade0361d1.zip | |
(artist-key-is-drawing)
(artist-key-endpoint1, artist-key-poly-point-list)
(artist-key-shape, artist-key-draw-how, artist-popup-menu-table)
(artist-key-compl-table, artist-rb-save-data)
(artist-arrow-point-1, artist-arrow-point-2): Move defvars up.
Don't put them in eval-when-compile.
(artist-set-arrow-points-for-poly): Use `last', not `artist-last'.
| -rw-r--r-- | lisp/textmodes/artist.el | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el index 1fe3c9dcbfe..3729453b82f 100644 --- a/lisp/textmodes/artist.el +++ b/lisp/textmodes/artist.el | |||
| @@ -502,7 +502,18 @@ This variable is initialized by the artist-make-prev-next-op-alist function.") | |||
| 502 | (if artist-picture-compatibility | 502 | (if artist-picture-compatibility |
| 503 | (require 'picture)) | 503 | (require 'picture)) |
| 504 | 504 | ||
| 505 | 505 | ;; Variables that are made local in artist-mode-init | |
| 506 | (defvar artist-key-is-drawing nil) | ||
| 507 | (defvar artist-key-endpoint1 nil) | ||
| 508 | (defvar artist-key-poly-point-list nil) | ||
| 509 | (defvar artist-key-shape nil) | ||
| 510 | (defvar artist-key-draw-how nil) | ||
| 511 | (defvar artist-popup-menu-table nil) | ||
| 512 | (defvar artist-key-compl-table nil) | ||
| 513 | (defvar artist-rb-save-data nil) | ||
| 514 | (defvar artist-arrow-point-1 nil) | ||
| 515 | (defvar artist-arrow-point-2 nil) | ||
| 516 | |||
| 506 | (defvar artist-mode-map | 517 | (defvar artist-mode-map |
| 507 | (let ((map (make-sparse-keymap))) | 518 | (let ((map (make-sparse-keymap))) |
| 508 | (setq artist-mode-map (make-sparse-keymap)) | 519 | (setq artist-mode-map (make-sparse-keymap)) |
| @@ -1370,21 +1381,6 @@ Keymap summary | |||
| 1370 | minor-mode-map-alist))) | 1381 | minor-mode-map-alist))) |
| 1371 | 1382 | ||
| 1372 | 1383 | ||
| 1373 | |||
| 1374 | (eval-when-compile | ||
| 1375 | ;; Variables that are made local in artist-mode-init | ||
| 1376 | (defvar artist-key-is-drawing nil) | ||
| 1377 | (defvar artist-key-endpoint1 nil) | ||
| 1378 | (defvar artist-key-poly-point-list nil) | ||
| 1379 | (defvar artist-key-shape nil) | ||
| 1380 | (defvar artist-key-draw-how nil) | ||
| 1381 | (defvar artist-popup-menu-table nil) | ||
| 1382 | (defvar artist-key-compl-table nil) | ||
| 1383 | (defvar artist-rb-save-data nil) | ||
| 1384 | (defvar artist-arrow-point-1 nil) | ||
| 1385 | (defvar artist-arrow-point-2 nil)) | ||
| 1386 | |||
| 1387 | |||
| 1388 | ;; Init and exit | 1384 | ;; Init and exit |
| 1389 | (defun artist-mode-init () | 1385 | (defun artist-mode-init () |
| 1390 | "Init Artist mode. This will call the hook `artist-mode-init-hook'." | 1386 | "Init Artist mode. This will call the hook `artist-mode-init-hook'." |
| @@ -3850,8 +3846,8 @@ Optional argument STATE can be used to set state (default is nil)." | |||
| 3850 | (x2 (artist-endpoint-get-x ep2)) | 3846 | (x2 (artist-endpoint-get-x ep2)) |
| 3851 | (y2 (artist-endpoint-get-y ep2)) | 3847 | (y2 (artist-endpoint-get-y ep2)) |
| 3852 | (dir1 (artist-find-direction x2 y2 x1 y1)) | 3848 | (dir1 (artist-find-direction x2 y2 x1 y1)) |
| 3853 | (epn (artist-last point-list)) | 3849 | (epn (last point-list)) |
| 3854 | (epn-1 (artist-last point-list 2)) | 3850 | (epn-1 (last point-list 2)) |
| 3855 | (xn (artist-endpoint-get-x epn)) | 3851 | (xn (artist-endpoint-get-x epn)) |
| 3856 | (yn (artist-endpoint-get-y epn)) | 3852 | (yn (artist-endpoint-get-y epn)) |
| 3857 | (xn-1 (artist-endpoint-get-x epn-1)) | 3853 | (xn-1 (artist-endpoint-get-x epn-1)) |