diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2011-02-20 17:38:26 +0100 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2011-02-20 17:38:26 +0100 |
commit | 99aa57fb208168dc1065223762ea7f3bfd8f0c9f (patch) | |
tree | e2f59d6496c3997dfe877d6b6c8211fbdadc1bf7 | |
parent | 39192b78d2b0178a75a5ae1bd5de9f7f15eee5a5 (diff) | |
download | org-mode-99aa57fb208168dc1065223762ea7f3bfd8f0c9f.tar.gz |
org-list: cycling indentation must not add white spaces at eol
* lisp/org-list.el (org-cycle-item-indentation): each time the
function moves item back to child position, a white space is added
to the line.
-rw-r--r-- | lisp/org-list.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/org-list.el b/lisp/org-list.el index b286235..4700477 100644 --- a/lisp/org-list.el +++ b/lisp/org-list.el @@ -2497,6 +2497,8 @@ Return t at each successful move." (t (back-to-indentation) (org-indent-to-column (car org-tab-ind-state)) (looking-at "\\S-+") + (goto-char (match-end 0)) + (delete-region (point) (point-at-eol)) (replace-match (cdr org-tab-ind-state)) (end-of-line) ;; Break cycle |