Function: idlwave-split-line
idlwave-split-line is an interactive and byte-compiled function
defined in idlwave.el.gz.
Signature
(idlwave-split-line)
Documentation
Continue line by breaking line at point and indent the lines.
For a code line insert continuation marker. If the line is a line comment
then the new line will contain a comment with the same indentation.
Splits strings with the IDL operator + if idlwave-split-line-string is
non-nil.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/idlwave.el.gz
(defun idlwave-split-line ()
"Continue line by breaking line at point and indent the lines.
For a code line insert continuation marker. If the line is a line comment
then the new line will contain a comment with the same indentation.
Splits strings with the IDL operator `+' if `idlwave-split-line-string' is
non-nil."
(interactive)
;; Expand abbreviation, just like normal RET would.
(and abbrev-mode (expand-abbrev))
(let (beg)
(if (not (idlwave-in-comment))
;; For code line add continuation.
;; Check if splitting a string.
(progn
(if (setq beg (idlwave-in-quote))
(if idlwave-split-line-string
;; Split the string.
(progn (insert (setq beg (char-after beg)) " + "
idlwave-continuation-char beg)
(backward-char 1)
(newline-and-indent)
(forward-char 1))
;; Do not split the string.
(beep)
(message "Warning: continuation inside string!!")
(insert " " idlwave-continuation-char))
;; Not splitting a string.
(if (not (member (char-before) '(?\ ?\t)))
(insert " "))
(insert idlwave-continuation-char)
(newline-and-indent)))
(indent-new-comment-line))
;; Indent previous line
(setq beg (- (point-max) (point)))
(forward-line -1)
(idlwave-indent-line)
(goto-char (- (point-max) beg))
;; Reindent new line
(idlwave-indent-line)))