Clean up the "Testing Org" code
This commit is contained in:
parent
efc7bbe894
commit
f556e9f296
@ -3714,23 +3714,20 @@ facilities for [[https://orgmode.org/worg/org-tests/index.html][Testing Org]].
|
||||
(file-name-directory
|
||||
(buffer-file-name (get-buffer "org.el")))))
|
||||
(file-name-as-directory "testing")))
|
||||
(message "`%s'" org-testing-dir)
|
||||
(setq org-testing-lisp-files
|
||||
(seq-filter
|
||||
(lambda (f)
|
||||
(string-suffix-p ".el" f))
|
||||
(directory-files
|
||||
(file-name-concat org-testing-dir
|
||||
(file-name-as-directory "lisp")))))
|
||||
(message "`%s'" org-testing-lisp-files))
|
||||
(file-name-as-directory "lisp"))))))
|
||||
(unless (fboundp 'org-test-with-temp-text)
|
||||
(find-file (file-name-concat org-testing-dir "org-test.el"))
|
||||
(eval-buffer)
|
||||
(quit-window))
|
||||
(let* ((test
|
||||
(completing-read "Org-mode test: "
|
||||
org-testing-lisp-files nil 'require-match))
|
||||
(file ))
|
||||
org-testing-lisp-files nil 'require-match)))
|
||||
(find-file (file-name-concat
|
||||
org-testing-dir (file-name-as-directory "lisp") test))
|
||||
(eval-buffer)
|
||||
|
Loading…
Reference in New Issue
Block a user