Function: picture-tab

picture-tab is an interactive and byte-compiled function defined in picture.el.gz.

Signature

(picture-tab &optional ARG)

Documentation

Tab transparently (just move point) to next tab stop.

With prefix argument ARG, overwrite the traversed text with spaces. The tab stop list can be changed by C-c TAB (picture-set-tab-stops) and M-x edit-tab-stops (edit-tab-stops).

See also documentation for variable picture-tab-chars.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/picture.el.gz
(defun picture-tab (&optional arg)
  "Tab transparently (just move point) to next tab stop.
With prefix argument ARG, overwrite the traversed text with
spaces.  The tab stop list can be changed by \
\\<picture-mode-map>\\[picture-set-tab-stops] and
\\[edit-tab-stops].

See also documentation for variable `picture-tab-chars'."
  (interactive "^P")
  (let* ((opoint (point)))
    (move-to-tab-stop)
    (if arg
	(let (indent-tabs-mode
	      (column (current-column)))
	  (delete-region opoint (point))
	  (indent-to column)))))