|
@@ -361,24 +361,21 @@ When COMBINE is non nil, add the category to each line."
|
|
alarm-time (if alarm-time (string-to-number alarm-time) 0)
|
|
alarm-time (if alarm-time (string-to-number alarm-time) 0)
|
|
alarm ""
|
|
alarm ""
|
|
deadlinep nil scheduledp nil)
|
|
deadlinep nil scheduledp nil)
|
|
|
|
+ (setq tmp (buffer-substring (max (point-min) (- pos org-ds-keyword-length)) pos)
|
|
|
|
+ deadlinep (string-match org-deadline-regexp tmp)
|
|
|
|
+ scheduledp (string-match org-scheduled-regexp tmp)
|
|
|
|
+ todo (org-get-todo-state))
|
|
|
|
+ ;; donep (org-entry-is-done-p)
|
|
(if (looking-at re2)
|
|
(if (looking-at re2)
|
|
(progn
|
|
(progn
|
|
(goto-char (match-end 0))
|
|
(goto-char (match-end 0))
|
|
(setq ts2 (match-string 1)
|
|
(setq ts2 (match-string 1)
|
|
inc (not (string-match "[0-9]\\{1,2\\}:[0-9][0-9]" ts2))))
|
|
inc (not (string-match "[0-9]\\{1,2\\}:[0-9][0-9]" ts2))))
|
|
- (setq tmp (buffer-substring (max (point-min)
|
|
|
|
- (- pos org-ds-keyword-length))
|
|
|
|
- pos)
|
|
|
|
- ts2 (if (string-match "[0-9]\\{1,2\\}:[0-9][0-9]-\\([0-9]\\{1,2\\}:[0-9][0-9]\\)" ts)
|
|
|
|
|
|
+ (setq ts2 (if (string-match "[0-9]\\{1,2\\}:[0-9][0-9]-\\([0-9]\\{1,2\\}:[0-9][0-9]\\)" ts)
|
|
(progn
|
|
(progn
|
|
(setq inc nil)
|
|
(setq inc nil)
|
|
(replace-match "\\1" t nil ts))
|
|
(replace-match "\\1" t nil ts))
|
|
- ts)
|
|
|
|
- deadlinep (string-match org-deadline-regexp tmp)
|
|
|
|
- scheduledp (string-match org-scheduled-regexp tmp)
|
|
|
|
- todo (org-get-todo-state)
|
|
|
|
- ;; donep (org-entry-is-done-p)
|
|
|
|
- ))
|
|
|
|
|
|
+ ts)))
|
|
(when (and (not org-icalendar-use-plain-timestamp)
|
|
(when (and (not org-icalendar-use-plain-timestamp)
|
|
(not deadlinep) (not scheduledp))
|
|
(not deadlinep) (not scheduledp))
|
|
(throw :skip t))
|
|
(throw :skip t))
|