Browse Source

org-agenda-get-scheduled: Fix deadline value when using cache

* lisp/org-agenda.el (org-agenda-get-scheduled): First `deadline'
let-binding when element cache is enabled should not be timestamp
element, but a string.  Make it so.

Reprted in https://list.orgmode.org/87tuhazs36.fsf@localhost/T/#t
Ihor Radchenko 3 years ago
parent
commit
a149fdd569
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lisp/org-agenda.el

+ 3 - 1
lisp/org-agenda.el

@@ -6449,7 +6449,9 @@ scheduled items with an hour specification like [h]h:mm."
                                    (string= "habit" (org-element-property :STYLE el))))
 	              (suppress-delay
 		       (let ((deadline (and org-agenda-skip-scheduled-delay-if-deadline
-                                            (org-element-property :deadline el))))
+                                            (org-element-property
+                                             :raw-value
+                                             (org-element-property :deadline el)))))
 		         (cond
 		          ((not deadline) nil)
 		          ;; The current item has a deadline date, so