emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org c9c0b9d004: Merge branch 'bugfix'


From: ELPA Syncer
Subject: [elpa] externals/org c9c0b9d004: Merge branch 'bugfix'
Date: Tue, 22 Mar 2022 05:57:56 -0400 (EDT)

branch: externals/org
commit c9c0b9d00408ca2551ec16a787b2c7dc671ef396
Merge: b7c32d873d d9bf64f064
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    Merge branch 'bugfix'
---
 lisp/org-agenda.el               |  2 +-
 testing/examples/agenda-file.org |  4 ++++
 testing/lisp/test-org-agenda.el  | 15 +++++++++++++++
 3 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 2d1a67d189..89c395d0b9 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5757,7 +5757,7 @@ displayed in agenda view."
                    (org-before-first-heading-p)
                    (and org-agenda-include-inactive-timestamps
                         (org-at-clock-log-p))
-                    (not (eq 'timestamp (org-element-type 
(org-element-context)))))
+                    (not (org-at-timestamp-p 'agenda)))
            (throw :skip nil))
          (org-agenda-skip))
        (let* ((pos (match-beginning 0))
diff --git a/testing/examples/agenda-file.org b/testing/examples/agenda-file.org
index 5c42cc5794..5e5bb86e9f 100644
--- a/testing/examples/agenda-file.org
+++ b/testing/examples/agenda-file.org
@@ -16,3 +16,7 @@ SCHEDULED: <2022-01-03 Mon>
 #+begin_example
 SCHEDULED: <2022-01-03 Mon>
 #+end_example
+* test timestamp inside properties
+:PROPERTIES:
+:CREATED: <2022-03-22 Tue>
+:END:
diff --git a/testing/lisp/test-org-agenda.el b/testing/lisp/test-org-agenda.el
index f4cf5788b1..455b82e198 100644
--- a/testing/lisp/test-org-agenda.el
+++ b/testing/lisp/test-org-agenda.el
@@ -106,6 +106,21 @@ See 
https://list.orgmode.org/20220101200103.GB29829@itccanarias.org/T/#t.";
     (should (= 2 (count-lines (point-min) (point-max)))))
   (org-test-agenda--kill-all-agendas))
 
+(ert-deftest test-org-agenda/property-timestamp ()
+  "Match timestamps inside property drawer.
+See https://list.orgmode.org/06d301d83d9e$f8b44340$ea1cc9c0$@tomdavey.com";
+  (cl-assert (not org-agenda-sticky) nil "precondition violation")
+  (cl-assert (not (org-test-agenda--agenda-buffers))
+            nil "precondition violation")
+  (let ((org-agenda-span 'day)
+       (org-agenda-files `(,(expand-file-name "examples/agenda-file.org"
+                                              org-test-dir))))
+    (org-agenda-list nil "<2022-03-22 Tue>")
+    (set-buffer org-agenda-buffer-name)
+    (message "%s" (buffer-string))
+    (should (= 4 (count-lines (point-min) (point-max)))))
+  (org-test-agenda--kill-all-agendas))
+
 (ert-deftest test-org-agenda/set-priority ()
   "One informative line in the agenda. Check that org-agenda-priority updates 
the agenda."
   (cl-assert (not org-agenda-sticky) nil "precondition violation")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]