Function: artist-key-do-continuously-poly
artist-key-do-continuously-poly is a byte-compiled function defined in
artist.el.gz.
Signature
(artist-key-do-continuously-poly X Y)
Documentation
Update current poly-point shape with nth point at X,Y.
Aliases
artist-key-do-continously-poly (obsolete since 30.1)
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/artist.el.gz
(defun artist-key-do-continuously-poly (x y)
"Update current poly-point shape with nth point at X,Y."
(let ((draw-fn (artist-go-get-draw-fn-from-symbol artist-curr-go))
(undraw-fn (artist-go-get-undraw-fn-from-symbol artist-curr-go))
(x1 (artist-endpoint-get-x artist-key-endpoint1))
(y1 (artist-endpoint-get-y artist-key-endpoint1))
(x2 x)
(y2 y))
;; If not rubber-banding, then move the 2
;; Otherwise re-draw the shape to the new position
;;
(if (not artist-rubber-banding)
(progn
(artist-no-rb-unset-point2)
(artist-no-rb-set-point2 x y))
(progn
(artist-funcall undraw-fn artist-key-shape)
(setq artist-key-shape (artist-funcall draw-fn x1 y1 x2 y2))))))