Archiving: Fix new bug with archiving when heading is not given.

Reported by Ed Hirgelt.
This commit is contained in:
Carsten Dominik 2009-03-02 21:52:00 +01:00
parent 967c0023e1
commit f33787b7a8
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2009-03-02 Carsten Dominik <carsten.dominik@gmail.com> 2009-03-02 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-get-valid-level): Catch the case where the level
change is nil.
* org-clock.el (org-clock-find-position): Better indentation of * org-clock.el (org-clock-find-position): Better indentation of
new clock drawers. new clock drawers.

View File

@ -5358,7 +5358,7 @@ even level numbers will become the next higher odd number."
(cond ((or (not change) (= 0 change)) (1+ (* 2 (/ level 2)))) (cond ((or (not change) (= 0 change)) (1+ (* 2 (/ level 2))))
((> change 0) (1+ (* 2 (/ (+ level (* 2 change)) 2)))) ((> change 0) (1+ (* 2 (/ (+ level (* 2 change)) 2))))
((< change 0) (max 1 (1+ (* 2 (/ (+ level (* 2 change)) 2)))))) ((< change 0) (max 1 (1+ (* 2 (/ (+ level (* 2 change)) 2))))))
(max 1 (+ level change)))) (max 1 (+ level (or change 0)))))
(if (boundp 'define-obsolete-function-alias) (if (boundp 'define-obsolete-function-alias)
(if (or (featurep 'xemacs) (< emacs-major-version 23)) (if (or (featurep 'xemacs) (< emacs-major-version 23))