Function: robot-mode-split-continuation

robot-mode-split-continuation is an interactive and natively compiled function defined in robot-mode.el.

Signature

(robot-mode-split-continuation)

Documentation

Split current line at point and continue in the next line.

Prefix the continuation with indentation, ellipsis and spacing.

Key Bindings

robot-mode-map C-c C-j

Source Code

;; Defined in /nix/store/2wci9ylra7w4lc4cczbdr19c98f107vr-emacs-packages-deps/share/emacs/site-lisp/elpa/robot-mode-20240721.1023/robot-mode.el
(defun robot-mode-split-continuation ()
  "Split current line at point and continue in the next line.

Prefix the continuation with indentation, ellipsis and spacing."
  (interactive)
  ;; If point is between the indentation and beginning of line add the
  ;; ellipsis to the previous line. Otherwise add to the next line.
  (if (not (<= (line-beginning-position)
	       (point)
	       (save-excursion
		 (back-to-indentation) (point))))
      (progn
	(delete-horizontal-space)
	(newline))
    (beginning-of-line)
    (newline)
    (forward-line -1))
  (insert "...")
  (insert (make-string robot-mode-argument-separator ? ))
  (indent-region (line-beginning-position) (line-end-position)))