+2001-11-30 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+
+ * textmodes/paragraphs.el (mark-paragraph): Clarify doc. Clarify
+ error message. Suggestion from Richard Stallman.
+
+2001-11-29 Kai Grossjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+
+ * textmodes/paragraphs.el (mark-paragraph): Allow prefix arg.
+
2001-11-30 Andre Spiegel <spiegel@gnu.org>
* vc-cvs.el (vc-cvs-parse-status): Store file state in property,
(or arg (setq arg 1))
(forward-paragraph (- arg)))
-(defun mark-paragraph ()
+(defun mark-paragraph (&optional arg)
"Put point at beginning of this paragraph, mark at end.
-The paragraph marked is the one that contains point or follows point."
- (interactive)
- (forward-paragraph 1)
+The paragraph marked is the one that contains point or follows point.
+
+With argument ARG, puts mark at end of a following paragraph, so that
+the number of paragraphs marked equals ARG.
+
+If ARG is negative, point is put at end of this paragraph, mark is put
+at beginning of this or a previous paragraph."
+ (interactive "p")
+ (unless arg (setq arg 1))
+ (when (zerop arg)
+ (error "Cannot mark zero paragraphs"))
+ (forward-paragraph arg)
(push-mark nil t t)
- (backward-paragraph 1))
+ (backward-paragraph arg))
(defun kill-paragraph (arg)
"Kill forward to end of paragraph.