0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-26 11:32:53 +00:00

Bugfix: Adding stars with C-c *

When calling C-c * before the first headline, the results where wrong.
Fixed now.
This commit is contained in:
Carsten Dominik 2009-03-15 12:27:49 +01:00
parent e5c0da5c48
commit e56c7097f4
2 changed files with 6 additions and 2 deletions

View file

@ -2,6 +2,7 @@
* org.el (org-read-date-history): New variable.
(org-read-date): Use new history variable.
(org-toggle-heading): Fix bug when used before first headline.
* org-exp.el (org-export-as-ascii): Improve export of plain lists.

View file

@ -14210,8 +14210,11 @@ a prefix argument is given, its value determines the number of stars to add."
?*)
(save-excursion
(re-search-backward org-complex-heading-regexp nil t)
(or (match-string 1) "*"))))
(add-stars (if nstars "" (if org-odd-levels-only "**" "*")))
(or (match-string 1) ""))))
(add-stars (cond (nstars "")
((equal stars "") "*")
(org-odd-levels-only "**")
(t "*")))
(rpl (concat stars add-stars " ")))
(while (< (setq l (1+ l)) l2)
(if itemp