Mercurial > emacs
comparison lisp/textmodes/paragraphs.el @ 93550:d4564d8c8835
(forward-paragraph, backward-paragraph, forward-sentence,
backward-sentence): Add ^ interactive spec.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Wed, 02 Apr 2008 20:17:05 +0000 |
parents | 73a01bf5cb80 |
children | ca9efc5939fc |
comparison
equal
deleted
inserted
replaced
93549:b615c4d2a14d | 93550:d4564d8c8835 |
---|---|
215 A line which `paragraph-start' matches either separates paragraphs | 215 A line which `paragraph-start' matches either separates paragraphs |
216 \(if `paragraph-separate' matches it also) or is the first line of a paragraph. | 216 \(if `paragraph-separate' matches it also) or is the first line of a paragraph. |
217 A paragraph end is the beginning of a line which is not part of the paragraph | 217 A paragraph end is the beginning of a line which is not part of the paragraph |
218 to which the end of the previous line belongs, or the end of the buffer. | 218 to which the end of the previous line belongs, or the end of the buffer. |
219 Returns the count of paragraphs left to move." | 219 Returns the count of paragraphs left to move." |
220 (interactive "p") | 220 (interactive "^p") |
221 (or arg (setq arg 1)) | 221 (or arg (setq arg 1)) |
222 (let* ((opoint (point)) | 222 (let* ((opoint (point)) |
223 (fill-prefix-regexp | 223 (fill-prefix-regexp |
224 (and fill-prefix (not (equal fill-prefix "")) | 224 (and fill-prefix (not (equal fill-prefix "")) |
225 (not paragraph-ignore-fill-prefix) | 225 (not paragraph-ignore-fill-prefix) |
359 paragraph-separating line; except: if the first real line of a | 359 paragraph-separating line; except: if the first real line of a |
360 paragraph is preceded by a blank line, the paragraph starts at that | 360 paragraph is preceded by a blank line, the paragraph starts at that |
361 blank line. | 361 blank line. |
362 | 362 |
363 See `forward-paragraph' for more information." | 363 See `forward-paragraph' for more information." |
364 (interactive "p") | 364 (interactive "^p") |
365 (or arg (setq arg 1)) | 365 (or arg (setq arg 1)) |
366 (forward-paragraph (- arg))) | 366 (forward-paragraph (- arg))) |
367 | 367 |
368 (defun mark-paragraph (&optional arg allow-extend) | 368 (defun mark-paragraph (&optional arg allow-extend) |
369 "Put point at beginning of this paragraph, mark at end. | 369 "Put point at beginning of this paragraph, mark at end. |
443 "Move forward to next end of sentence. With argument, repeat. | 443 "Move forward to next end of sentence. With argument, repeat. |
444 With negative argument, move backward repeatedly to start of sentence. | 444 With negative argument, move backward repeatedly to start of sentence. |
445 | 445 |
446 The variable `sentence-end' is a regular expression that matches ends of | 446 The variable `sentence-end' is a regular expression that matches ends of |
447 sentences. Also, every paragraph boundary terminates sentences as well." | 447 sentences. Also, every paragraph boundary terminates sentences as well." |
448 (interactive "p") | 448 (interactive "^p") |
449 (or arg (setq arg 1)) | 449 (or arg (setq arg 1)) |
450 (let ((opoint (point)) | 450 (let ((opoint (point)) |
451 (sentence-end (sentence-end))) | 451 (sentence-end (sentence-end))) |
452 (while (< arg 0) | 452 (while (< arg 0) |
453 (let ((pos (point)) | 453 (let ((pos (point)) |
475 | 475 |
476 | 476 |
477 (defun backward-sentence (&optional arg) | 477 (defun backward-sentence (&optional arg) |
478 "Move backward to start of sentence. With arg, do it arg times. | 478 "Move backward to start of sentence. With arg, do it arg times. |
479 See `forward-sentence' for more information." | 479 See `forward-sentence' for more information." |
480 (interactive "p") | 480 (interactive "^p") |
481 (or arg (setq arg 1)) | 481 (or arg (setq arg 1)) |
482 (forward-sentence (- arg))) | 482 (forward-sentence (- arg))) |
483 | 483 |
484 (defun kill-sentence (&optional arg) | 484 (defun kill-sentence (&optional arg) |
485 "Kill from point to end of sentence. | 485 "Kill from point to end of sentence. |