Function: rst-mark-section
rst-mark-section is an interactive and byte-compiled function defined
in rst.el.gz.
Signature
(rst-mark-section &optional COUNT ALLOW-EXTEND)
Documentation
Select COUNT sections around point.
Mark following sections for positive COUNT or preceding sections for negative COUNT.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/rst.el.gz
;; FIXME: What is `allow-extend' for? See `mark-paragraph' for an explanation.
(defun rst-mark-section (&optional count allow-extend)
"Select COUNT sections around point.
Mark following sections for positive COUNT or preceding sections
for negative COUNT."
;; Cloned from mark-paragraph.
(interactive "p\np")
(unless count (setq count 1))
(when (zerop count)
(error "Cannot mark zero sections"))
(cond ((and allow-extend
(or (and (eq last-command this-command) (mark t))
(use-region-p)))
(set-mark
(save-excursion
(goto-char (mark))
(rst-forward-section count)
(point))))
(t
(rst-forward-section count)
(push-mark nil t t)
(rst-forward-section (- count)))))