Function: rst-line-block-region

rst-line-block-region is an interactive and byte-compiled function defined in rst.el.gz.

Signature

(rst-line-block-region BEG END &optional WITH-EMPTY)

Documentation

Add line block prefixes for a region.

Region is from BEG to END. With WITH-EMPTY prefix empty lines too.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/rst.el.gz
(defun rst-line-block-region (beg end &optional with-empty)
  "Add line block prefixes for a region.
Region is from BEG to END.  With WITH-EMPTY prefix empty lines too."
  (interactive "r\nP")
  (let ((ind (rst-find-leftmost-column beg end)))
    (rst-apply-indented-blocks
     beg end ind
     (lambda (_count _in-first _in-sub in-super in-empty _relind)
       (when (and (not in-super) (or with-empty (not in-empty)))
         (move-to-column ind t)
         (insert "| "))
       nil))))