|
@@ -6656,10 +6656,6 @@ Any match of REMOVE-RE will be removed from TXT."
|
|
(= (match-beginning 0) 0)
|
|
(= (match-beginning 0) 0)
|
|
t))
|
|
t))
|
|
(setq txt (replace-match "" nil nil txt))))
|
|
(setq txt (replace-match "" nil nil txt))))
|
|
- ;; Normalize the time(s) to 24 hour
|
|
|
|
- (when s1 (setq s1 (org-get-time-of-day s1 'string t)))
|
|
|
|
- (when s2 (setq s2 (org-get-time-of-day s2 'string t)))
|
|
|
|
-
|
|
|
|
;; Try to set s2 if s1 and
|
|
;; Try to set s2 if s1 and
|
|
;; `org-agenda-default-appointment-duration' are set
|
|
;; `org-agenda-default-appointment-duration' are set
|
|
(when (and s1 (not s2) org-agenda-default-appointment-duration)
|
|
(when (and s1 (not s2) org-agenda-default-appointment-duration)
|
|
@@ -6668,12 +6664,13 @@ Any match of REMOVE-RE will be removed from TXT."
|
|
(+ (org-duration-to-minutes s1 t)
|
|
(+ (org-duration-to-minutes s1 t)
|
|
org-agenda-default-appointment-duration)
|
|
org-agenda-default-appointment-duration)
|
|
nil t)))
|
|
nil t)))
|
|
-
|
|
|
|
;; Compute the duration
|
|
;; Compute the duration
|
|
(when s2
|
|
(when s2
|
|
(setq duration (- (org-duration-to-minutes s2)
|
|
(setq duration (- (org-duration-to-minutes s2)
|
|
- (org-duration-to-minutes s1)))))
|
|
|
|
-
|
|
|
|
|
|
+ (org-duration-to-minutes s1))))
|
|
|
|
+ ;; Normalize the time(s) to 24 hour
|
|
|
|
+ (when s1 (setq s1 (org-get-time-of-day s1 'string t)))
|
|
|
|
+ (when s2 (setq s2 (org-get-time-of-day s2 'string t))))
|
|
(when (string-match org-tag-group-re txt)
|
|
(when (string-match org-tag-group-re txt)
|
|
;; Tags are in the string
|
|
;; Tags are in the string
|
|
(if (or (eq org-agenda-remove-tags t)
|
|
(if (or (eq org-agenda-remove-tags t)
|