Function: dcl-indent-command-line
dcl-indent-command-line is a byte-compiled function defined in
dcl-mode.el.gz.
Signature
(dcl-indent-command-line)
Documentation
Indent a line known to be a command line.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/dcl-mode.el.gz
;;;---------------------------------------------------------------------------
(defun dcl-indent-command-line ()
"Indent a line known to be a command line."
(let ((indent (dcl-calc-command-indent))
(pos (- (point-max) (point))))
(save-excursion
(beginning-of-line)
(re-search-forward "^\\$[ \t]*")
;; Indent any margin-label if the offset is set
;; (Don't look at block labels)
(if (and dcl-margin-label-offset
(looking-at dcl-label-r)
(not (and dcl-block-begin-regexp
(looking-at dcl-block-begin-regexp)))
(not (and dcl-block-end-regexp
(looking-at dcl-block-end-regexp))))
(progn
(dcl-indent-to dcl-margin-label-offset)
(re-search-forward dcl-label-r)))
(dcl-indent-to indent 1)
)
;;
(if (> (- (point-max) pos) (point))
(goto-char (- (point-max) pos)))
))