From 36dd7e21500fabbe2faf3e3bd96a2b7e05f13dae Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 14 Jun 2011 10:39:58 +0200 Subject: [PATCH 1/4] Fix bulk scattering command * lisp/org-agenda.el (org-agenda-bulk-action): Fix bug caused by `days-to-time, converting relative to 1 BC, while the code assumed it would return a time relative to 1970. For more information, see http://thread.gmane.org/gmane.emacs.orgmode/42531 --- lisp/org-agenda.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 65f37d47b..b519ff2b5 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -8199,9 +8199,11 @@ The prefix arg is passed through to the command if possible." (setq day-of-week 0))))) ;; silently fail when try to replan a sexp entry (condition-case nil - (org-agenda-schedule nil - (days-to-time - (+ (org-today) distance))) + (let* ((date (calendar-gregorian-from-absolute + (+ (org-today) distance))) + (time (encode-time 0 0 0 (nth 1 date) (nth 0 date) + (nth 2 date)))) + (org-agenda-schedule nil time)) (error nil))))))) ((equal action ?f) From 1891ee5aafee710315a26595385e670e1ac3771e Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 14 Jun 2011 10:46:09 +0200 Subject: [PATCH 2/4] Fix HTML export to make CUSTOM_ID links work again * lisp/org-html.el (org-export-as-html): (org-html-level-start): Only convert section number underscores to dashes. --- lisp/org-html.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-html.el b/lisp/org-html.el index afc6a77f0..b5d371f3e 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1395,7 +1395,7 @@ lang=\"%s\" xml:lang=\"%s\"> (setq txt (replace-match "" t t txt))) (setq href (replace-regexp-in-string - "\\." "_" (format "sec-%s" snumber))) + "\\." "-" (format "sec-%s" snumber))) (setq href (org-solidify-link-text (or (cdr (assoc href org-export-preferred-target-alist)) href))) (push (format @@ -2412,7 +2412,7 @@ When TITLE is nil, just close all open levels." (insert "