Function: artist-toggle-second-arrow
artist-toggle-second-arrow is an interactive and byte-compiled
function defined in artist.el.gz.
Signature
(artist-toggle-second-arrow)
Documentation
Toggle second arrow for shape, if possible.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/artist.el.gz
(defun artist-toggle-second-arrow ()
"Toggle second arrow for shape, if possible."
(interactive)
(save-excursion
(if (not (null artist-arrow-point-2))
(let* ((arrow-point artist-arrow-point-2)
(arrow-state (artist-arrow-point-get-state arrow-point))
(arrow-marker (artist-arrow-point-get-marker arrow-point))
(direction (artist-arrow-point-get-direction arrow-point))
(orig-char (artist-arrow-point-get-orig-char arrow-point))
(arrow-char (aref artist-arrows direction))
(new-state (not arrow-state)))
(goto-char (marker-position arrow-marker))
(if new-state
(if arrow-char
(artist-replace-char arrow-char))
(artist-replace-char orig-char))
(artist-arrow-point-set-state artist-arrow-point-2 new-state)))))