diff options
| author | Jim Blandy | 1992-11-07 06:13:23 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-11-07 06:13:23 +0000 |
| commit | c2e8a01234419831fd7bdba0098722a4d5e39897 (patch) | |
| tree | d71d6012d116903ab9506c5d72ba5d9f8a6b367b | |
| parent | f90a6155a91dcb39f38508afd8b19155dc78d331 (diff) | |
| download | emacs-c2e8a01234419831fd7bdba0098722a4d5e39897.tar.gz emacs-c2e8a01234419831fd7bdba0098722a4d5e39897.zip | |
* simple.el (previous-line): Doc fix.
* simple.el (kill-line): Don't shift point before doing the
delete.
| -rw-r--r-- | lisp/simple.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index e849e634a4c..2399733e646 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -816,7 +816,9 @@ When calling from a program, nil means \"no arg\", | |||
| 816 | a number counts as a prefix arg." | 816 | a number counts as a prefix arg." |
| 817 | (interactive "P") | 817 | (interactive "P") |
| 818 | (kill-region (point) | 818 | (kill-region (point) |
| 819 | (progn | 819 | ;; Don't shift point before doing the delete; that way, |
| 820 | ;; undo will record the right position of point. | ||
| 821 | (save-excursion | ||
| 820 | (if arg | 822 | (if arg |
| 821 | (forward-line (prefix-numeric-value arg)) | 823 | (forward-line (prefix-numeric-value arg)) |
| 822 | (if (eobp) | 824 | (if (eobp) |
| @@ -1241,7 +1243,7 @@ a semipermanent goal column to which this command always moves. | |||
| 1241 | Then it does not try to move vertically. | 1243 | Then it does not try to move vertically. |
| 1242 | 1244 | ||
| 1243 | If you are thinking of using this in a Lisp program, consider using | 1245 | If you are thinking of using this in a Lisp program, consider using |
| 1244 | `forward-line' with negative argument instead.. It is usually easier | 1246 | `forward-line' with a negative argument instead. It is usually easier |
| 1245 | to use and more reliable (no dependence on goal column, etc.)." | 1247 | to use and more reliable (no dependence on goal column, etc.)." |
| 1246 | (interactive "p") | 1248 | (interactive "p") |
| 1247 | (line-move (- arg)) | 1249 | (line-move (- arg)) |