aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2005-07-03 16:34:30 +0000
committerRichard M. Stallman <[email protected]>2005-07-03 16:34:30 +0000
commit44ee3feea6011db5cee7f8f8b239abaade0361d1 (patch)
tree055b66f2b6e179466adc8b200c3a1b667c29b986 /lisp/textmodes
parent55def74299dd1def55e48f698952972a31d709fc (diff)
(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'.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/artist.el32
1 files changed, 14 insertions, 18 deletions
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el
index 1fe3c9dcbf..3729453b82 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.")
(if artist-picture-compatibility
(require 'picture))
-
+;; Variables that are made local in artist-mode-init
+(defvar artist-key-is-drawing nil)
+(defvar artist-key-endpoint1 nil)
+(defvar artist-key-poly-point-list nil)
+(defvar artist-key-shape nil)
+(defvar artist-key-draw-how nil)
+(defvar artist-popup-menu-table nil)
+(defvar artist-key-compl-table nil)
+(defvar artist-rb-save-data nil)
+(defvar artist-arrow-point-1 nil)
+(defvar artist-arrow-point-2 nil)
+
(defvar artist-mode-map
(let ((map (make-sparse-keymap)))
(setq artist-mode-map (make-sparse-keymap))
@@ -1370,21 +1381,6 @@ Keymap summary
minor-mode-map-alist)))
-
-(eval-when-compile
- ;; Variables that are made local in artist-mode-init
- (defvar artist-key-is-drawing nil)
- (defvar artist-key-endpoint1 nil)
- (defvar artist-key-poly-point-list nil)
- (defvar artist-key-shape nil)
- (defvar artist-key-draw-how nil)
- (defvar artist-popup-menu-table nil)
- (defvar artist-key-compl-table nil)
- (defvar artist-rb-save-data nil)
- (defvar artist-arrow-point-1 nil)
- (defvar artist-arrow-point-2 nil))
-
-
;; Init and exit
(defun artist-mode-init ()
"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)."
(x2 (artist-endpoint-get-x ep2))
(y2 (artist-endpoint-get-y ep2))
(dir1 (artist-find-direction x2 y2 x1 y1))
- (epn (artist-last point-list))
- (epn-1 (artist-last point-list 2))
+ (epn (last point-list))
+ (epn-1 (last point-list 2))
(xn (artist-endpoint-get-x epn))
(yn (artist-endpoint-get-y epn))
(xn-1 (artist-endpoint-get-x epn-1))