File tree 3 files changed +25
-108
lines changed
3 files changed +25
-108
lines changed Original file line number Diff line number Diff line change 29
29
30
30
- name : Verify dependencies
31
31
run : |
32
- emacs -batch -l "~/.emacs.d/init.el" --eval '(assert (nd/verify-required-packages))'
32
+ emacs -batch -l ~/.emacs.d/init.el --eval '(assert (nd/verify-required-packages))'
33
+
34
+ - name : Test org-x
35
+ run : >
36
+ emacs -batch
37
+ -l ~/.emacs.d/init.el
38
+ -l ~/.emacs.d/local/lib/org-x/test/org-x-test.el
39
+ -f buttercup-run
40
+
33
41
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 23
23
(require 'dash )
24
24
(require 'org-x )
25
25
26
+ (defmacro org-ml--with-org-env (&rest body )
27
+ " Execute BODY in a standardized Org-mode buffer."
28
+ `(let ((org-tags-column 20 )
29
+ (org-todo-keywords
30
+ ; ; shamelessly copies from me
31
+ '((sequence " TODO(t/!)" " NEXT(n/!)" " |" " DONE(d/!)" )
32
+ (sequence " WAIT(w@/!)" " HOLD(h@/!)" " |" " CANC(c@/!)" )))
33
+ (org-archive-tag " ARCHIVE" )
34
+ (org-lowest-priority ?C )
35
+ (org-highest-priority ?A )
36
+ (org-list-allow-alphabetical nil )
37
+ (org-log-into-drawer " LOGBOOK" ))
38
+ (with-temp-buffer
39
+ (org-mode )
40
+ ,@body )))
41
+
26
42
(defun org-ts-to-unixtime (timestamp-string )
27
43
" Convert TIMESTAMP-STRING to unixtime."
28
44
(let ((decoded (org-parse-time-string timestamp-string)))
@@ -70,7 +86,6 @@ Forms are denoted like %(FORM)%."
70
86
(s-join " \n " )
71
87
(org-x-test-parse-forms))
72
88
result)))
73
- (print result*)
74
89
`(it , title
75
90
(expect (org-ml--with-org-buffer , buffer , test )
76
91
:to-equal
You can’t perform that action at this time.
0 commit comments