Function: picture-set-motion

picture-set-motion is a byte-compiled function defined in picture.el.gz.

Signature

(picture-set-motion VERT HORIZ)

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 (vert horiz)
  "Set VERTICAL and HORIZONTAL increments for movement in Picture mode.
The mode line is updated to reflect the current direction."
  (setq picture-vertical-step vert
	picture-horizontal-step horiz)
  (setq mode-name
	(format "Picture:%s"
		(nth (+ 2 (% horiz 3) (* 5 (1+ (% vert 2))))
		     '(wnw nw up ne ene Left left none right Right
			   wsw sw down se ese))))
  (force-mode-line-update)
  (message ""))