diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2011-08-08 18:32:32 +0200 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2011-08-08 18:32:32 +0200 |
commit | aab16ffdf4a661ef37f30ca8f18f5c7fb223cbe6 (patch) | |
tree | 20361b3b66c0ff273def94d2686543885be7a209 | |
parent | 7d3db1391685aea5ffa4202a742ee476e8048ce8 (diff) | |
download | org-mode-aab16ffdf4a661ef37f30ca8f18f5c7fb223cbe6.tar.gz |
Fix `newline-and-indent' in a list when called on a line being filled
* lisp/org.el (org-return): when filling happens, `newline' can change
match data, hence modifying the indent column.
-rw-r--r-- | lisp/org.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 11eaf78..ba7f049 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -17940,7 +17940,7 @@ See the individual commands for more information." ((and (org-in-item-p) indent) (if (and (org-at-item-p) (>= (point) (match-end 0))) (progn - (newline) + (save-match-data (newline)) (org-indent-line-to (length (match-string 0)))) (let ((ind (org-get-indentation))) (newline) |