Function: picture-set-motion
picture-set-motion is a byte-compiled function defined in
picture.el.gz.
Signature
(picture-set-motion VERTICAL HORIZONTAL)
Documentation
Set VERTICAL and HORIZONTAL increments for movement in Picture mode.
The mode line is updated to reflect the current direction.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/picture.el.gz
(defun picture-set-motion (vertical horizontal)
"Set VERTICAL and HORIZONTAL increments for movement in Picture mode.
The mode line is updated to reflect the current direction."
(setq picture-vertical-step vertical
picture-horizontal-step horizontal)
(setq mode-name
(format "Picture:%s"
(nth (+ 2 (% horizontal 3) (* 5 (1+ (% vertical 2))))
'(wnw nw up ne ene Left left none right Right
wsw sw down se ese))))
(force-mode-line-update)
(message ""))