diff options
| author | Kai Großjohann | 2001-11-30 17:18:27 +0000 |
|---|---|---|
| committer | Kai Großjohann | 2001-11-30 17:18:27 +0000 |
| commit | f48b59a233c74b1ec21489591ec101b48c779323 (patch) | |
| tree | cd659265082d093ede5369e9c3d090cf133928c1 /lisp/textmodes | |
| parent | e294aed74f1d8e4a7e6ed62c1bed8781891219eb (diff) | |
| download | emacs-f48b59a233c74b1ec21489591ec101b48c779323.tar.gz emacs-f48b59a233c74b1ec21489591ec101b48c779323.zip | |
(mark-paragraph): Clarify doc. Clarify
error message. Suggestion from Richard M. Stallman.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/paragraphs.el | 19 |
1 files changed, 14 insertions, 5 deletions
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. |
| 322 | The paragraph marked is the one that contains point or follows point." | 322 | The paragraph marked is the one that contains point or follows point. |
| 323 | (interactive) | 323 | |
| 324 | (forward-paragraph 1) | 324 | With argument ARG, puts mark at end of a following paragraph, so that |
| 325 | the number of paragraphs marked equals ARG. | ||
| 326 | |||
| 327 | If ARG is negative, point is put at end of this paragraph, mark is put | ||
| 328 | at 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. |