diff options
| author | Richard M. Stallman | 1994-04-24 05:44:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-24 05:44:56 +0000 |
| commit | 8d6eaa007af207403c7a91415058127b23dc5892 (patch) | |
| tree | ffc8251a43f2124dc83cf3f3898a2c6a65ecb599 | |
| parent | e6291fe1d67168297f0d2ee32df19dba3d69e42d (diff) | |
| download | emacs-8d6eaa007af207403c7a91415058127b23dc5892.tar.gz emacs-8d6eaa007af207403c7a91415058127b23dc5892.zip | |
(kill-paragraph): Don't use save-excursion.
(backward-kill-paragraph): Likewise.
(kill-sentence, backward-kill-sentence): Likewise.
| -rw-r--r-- | lisp/textmodes/paragraphs.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el index 9c78aaaceb9..aca848127f2 100644 --- a/lisp/textmodes/paragraphs.el +++ b/lisp/textmodes/paragraphs.el | |||
| @@ -154,14 +154,14 @@ The paragraph marked is the one that contains point or follows point." | |||
| 154 | With arg N, kill forward to Nth end of paragraph; | 154 | With arg N, kill forward to Nth end of paragraph; |
| 155 | negative arg -N means kill backward to Nth start of paragraph." | 155 | negative arg -N means kill backward to Nth start of paragraph." |
| 156 | (interactive "p") | 156 | (interactive "p") |
| 157 | (kill-region (point) (save-excursion (forward-paragraph arg) (point)))) | 157 | (kill-region (point) (progn (forward-paragraph arg) (point)))) |
| 158 | 158 | ||
| 159 | (defun backward-kill-paragraph (arg) | 159 | (defun backward-kill-paragraph (arg) |
| 160 | "Kill back to start of paragraph. | 160 | "Kill back to start of paragraph. |
| 161 | With arg N, kill back to Nth start of paragraph; | 161 | With arg N, kill back to Nth start of paragraph; |
| 162 | negative arg -N means kill forward to Nth end of paragraph." | 162 | negative arg -N means kill forward to Nth end of paragraph." |
| 163 | (interactive "p") | 163 | (interactive "p") |
| 164 | (kill-region (point) (save-excursion (backward-paragraph arg) (point)))) | 164 | (kill-region (point) (progn (backward-paragraph arg) (point)))) |
| 165 | 165 | ||
| 166 | (defun transpose-paragraphs (arg) | 166 | (defun transpose-paragraphs (arg) |
| 167 | "Interchange this (or next) paragraph with previous one." | 167 | "Interchange this (or next) paragraph with previous one." |
| @@ -225,13 +225,13 @@ See `forward-sentence' for more information." | |||
| 225 | "Kill from point to end of sentence. | 225 | "Kill from point to end of sentence. |
| 226 | With arg, repeat; negative arg -N means kill back to Nth start of sentence." | 226 | With arg, repeat; negative arg -N means kill back to Nth start of sentence." |
| 227 | (interactive "*p") | 227 | (interactive "*p") |
| 228 | (kill-region (point) (save-excursion (forward-sentence arg) (point)))) | 228 | (kill-region (point) (progn (forward-sentence arg) (point)))) |
| 229 | 229 | ||
| 230 | (defun backward-kill-sentence (&optional arg) | 230 | (defun backward-kill-sentence (&optional arg) |
| 231 | "Kill back from point to start of sentence. | 231 | "Kill back from point to start of sentence. |
| 232 | With arg, repeat, or kill forward to Nth end of sentence if negative arg -N." | 232 | With arg, repeat, or kill forward to Nth end of sentence if negative arg -N." |
| 233 | (interactive "*p") | 233 | (interactive "*p") |
| 234 | (kill-region (point) (save-excursion (backward-sentence arg) (point)))) | 234 | (kill-region (point) (progn (backward-sentence arg) (point)))) |
| 235 | 235 | ||
| 236 | (defun mark-end-of-sentence (arg) | 236 | (defun mark-end-of-sentence (arg) |
| 237 | "Put mark at end of sentence. Arg works as in `forward-sentence'." | 237 | "Put mark at end of sentence. Arg works as in `forward-sentence'." |