Bugfix: Indentation for converted headlines with `C-c -'

This commit is contained in:
Carsten Dominik 2008-12-31 01:22:57 +01:00
parent 71aeeec70a
commit d9c47b107f
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2008-12-31 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-ctrl-c-minus): Fix indentation for new items.
* org-footnote.el: New file.
* org.el (org-footnote): Require footnote code.

View File

@ -13206,7 +13206,10 @@ Calls `org-table-insert-hline', `org-toggle-region-items', or
(save-excursion
(beginning-of-line 1)
(if (looking-at "\\*+ ")
(replace-match (concat (make-string (- (match-end 0) (point) 1) ?\ ) "- ")))))
(replace-match
(concat (make-string
(- (match-end 0) (point) (if org-odd-levels-only 2 1)) ?\ )
"- ")))))
((org-region-active-p)
;; Convert all lines in region to list items
(call-interactively 'org-toggle-region-items))