diff options
| author | Richard M. Stallman | 1992-09-30 10:31:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-09-30 10:31:31 +0000 |
| commit | 01b8e020b7cd065e70640a9c328d594593fae9fe (patch) | |
| tree | dd14e72d3113ffe82eeef55624b60c68a6528315 | |
| parent | d840a865eaa67c72dac4fe1368079298cb358679 (diff) | |
| download | emacs-01b8e020b7cd065e70640a9c328d594593fae9fe.tar.gz emacs-01b8e020b7cd065e70640a9c328d594593fae9fe.zip | |
(kill-word): Don't change point before calling kill-region.
(delete-indentation): Don't go beyond eob, comparing with fill-prefix.
| -rw-r--r-- | lisp/simple.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index abc9c107cc0..d4eac802e33 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -69,6 +69,7 @@ With argument, join this line to following line." | |||
| 69 | ;; If the second line started with the fill prefix, | 69 | ;; If the second line started with the fill prefix, |
| 70 | ;; delete the prefix. | 70 | ;; delete the prefix. |
| 71 | (if (and fill-prefix | 71 | (if (and fill-prefix |
| 72 | (<= (+ (point) (length fill-prefix)) (point-max)) | ||
| 72 | (string= fill-prefix | 73 | (string= fill-prefix |
| 73 | (buffer-substring (point) | 74 | (buffer-substring (point) |
| 74 | (+ (point) (length fill-prefix))))) | 75 | (+ (point) (length fill-prefix))))) |
| @@ -1570,7 +1571,7 @@ In programs, it is faster to call `forward-word' with negative arg." | |||
| 1570 | "Kill characters forward until encountering the end of a word. | 1571 | "Kill characters forward until encountering the end of a word. |
| 1571 | With argument, do this that many times." | 1572 | With argument, do this that many times." |
| 1572 | (interactive "p") | 1573 | (interactive "p") |
| 1573 | (kill-region (point) (progn (forward-word arg) (point)))) | 1574 | (kill-region (point) (save-excursion (forward-word arg) (point)))) |
| 1574 | 1575 | ||
| 1575 | (defun backward-kill-word (arg) | 1576 | (defun backward-kill-word (arg) |
| 1576 | "Kill characters backward until encountering the end of a word. | 1577 | "Kill characters backward until encountering the end of a word. |