From c156a63bb337b2bc2ce19b06e0175fbd75a790cc Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 12 Nov 2010 08:32:02 -0500 Subject: [PATCH] * lisp/simple.el (open-line): `newline' may strip trailing space. --- lisp/ChangeLog | 4 ++++ lisp/simple.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8caa87a5204..46eacc2de31 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2010-11-12 Stefan Monnier + + * simple.el (open-line): `newline' may strip trailing space. + 2010-11-12 Kevin Ryde * international/mule-cmds.el (princ-list): Use mapc. diff --git a/lisp/simple.el b/lisp/simple.el index 329284807d2..510fb4a3b23 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -512,7 +512,7 @@ With arg N, insert N newlines." (interactive "*p") (let* ((do-fill-prefix (and fill-prefix (bolp))) (do-left-margin (and (bolp) (> (current-left-margin) 0))) - (loc (point)) + (loc (point-marker)) ;; Don't expand an abbrev before point. (abbrev-mode nil)) (newline n) -- 2.39.5