Function: org-capture-empty-lines-before

org-capture-empty-lines-before is a byte-compiled function defined in org-capture.el.gz.

Signature

(org-capture-empty-lines-before &optional N)

Documentation

Insert N empty lines before the insertion point.

Point will be after the empty lines, so insertion can directly be done. If N is nil, :empty-lines-before or :empty-lines are considered.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-capture.el.gz
(defun org-capture-empty-lines-before (&optional n)
  "Insert N empty lines before the insertion point.
Point will be after the empty lines, so insertion can directly be done.
If N is nil, :empty-lines-before or :empty-lines are considered."
  (setq n (or n (org-capture-get :empty-lines-before)
	      (org-capture-get :empty-lines) 0))
  (let ((pos (point)))
    (org-back-over-empty-lines)
    (delete-region (point) pos)
    (when (> n 0) (newline n))))