aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1992-11-07 06:13:23 +0000
committerJim Blandy1992-11-07 06:13:23 +0000
commitc2e8a01234419831fd7bdba0098722a4d5e39897 (patch)
treed71d6012d116903ab9506c5d72ba5d9f8a6b367b
parentf90a6155a91dcb39f38508afd8b19155dc78d331 (diff)
downloademacs-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.el6
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\",
816a number counts as a prefix arg." 816a 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.
1241Then it does not try to move vertically. 1243Then it does not try to move vertically.
1242 1244
1243If you are thinking of using this in a Lisp program, consider using 1245If 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
1245to use and more reliable (no dependence on goal column, etc.)." 1247to use and more reliable (no dependence on goal column, etc.)."
1246 (interactive "p") 1248 (interactive "p")
1247 (line-move (- arg)) 1249 (line-move (- arg))