Clean up the "Testing Org" code

This commit is contained in:
Gerard Vermeulen 2024-01-18 17:12:54 +01:00
parent efc7bbe894
commit f556e9f296

View File

@ -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)