aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Großjohann2001-11-30 17:18:27 +0000
committerKai Großjohann2001-11-30 17:18:27 +0000
commitf48b59a233c74b1ec21489591ec101b48c779323 (patch)
treecd659265082d093ede5369e9c3d090cf133928c1
parente294aed74f1d8e4a7e6ed62c1bed8781891219eb (diff)
downloademacs-f48b59a233c74b1ec21489591ec101b48c779323.tar.gz
emacs-f48b59a233c74b1ec21489591ec101b48c779323.zip
(mark-paragraph): Clarify doc. Clarify
error message. Suggestion from Richard M. Stallman.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/textmodes/paragraphs.el19
2 files changed, 23 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9e513ddf253..d4e3d12b3f6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12001-11-30 Kai Gro,A_(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
2
3 * textmodes/paragraphs.el (mark-paragraph): Clarify doc. Clarify
4 error message. Suggestion from Richard Stallman.
5
62001-11-29 Kai Grossjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
7
8 * textmodes/paragraphs.el (mark-paragraph): Allow prefix arg.
9
12001-11-30 Andre Spiegel <spiegel@gnu.org> 102001-11-30 Andre Spiegel <spiegel@gnu.org>
2 11
3 * vc-cvs.el (vc-cvs-parse-status): Store file state in property, 12 * vc-cvs.el (vc-cvs-parse-status): Store file state in property,
diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el
index 8b9ca150ea9..ed9a78696fd 100644
--- a/lisp/textmodes/paragraphs.el
+++ b/lisp/textmodes/paragraphs.el
@@ -317,13 +317,22 @@ See `forward-paragraph' for more information."
317 (or arg (setq arg 1)) 317 (or arg (setq arg 1))
318 (forward-paragraph (- arg))) 318 (forward-paragraph (- arg)))
319 319
320(defun mark-paragraph () 320(defun mark-paragraph (&optional arg)
321 "Put point at beginning of this paragraph, mark at end. 321 "Put point at beginning of this paragraph, mark at end.
322The paragraph marked is the one that contains point or follows point." 322The paragraph marked is the one that contains point or follows point.
323 (interactive) 323
324 (forward-paragraph 1) 324With argument ARG, puts mark at end of a following paragraph, so that
325the number of paragraphs marked equals ARG.
326
327If ARG is negative, point is put at end of this paragraph, mark is put
328at beginning of this or a previous paragraph."
329 (interactive "p")
330 (unless arg (setq arg 1))
331 (when (zerop arg)
332 (error "Cannot mark zero paragraphs"))
333 (forward-paragraph arg)
325 (push-mark nil t t) 334 (push-mark nil t t)
326 (backward-paragraph 1)) 335 (backward-paragraph arg))
327 336
328(defun kill-paragraph (arg) 337(defun kill-paragraph (arg)
329 "Kill forward to end of paragraph. 338 "Kill forward to end of paragraph.