diff --git a/testing/lisp/test-ol.el b/testing/lisp/test-ol.el index 70be03818..e0cec0854 100644 --- a/testing/lisp/test-ol.el +++ b/testing/lisp/test-ol.el @@ -301,6 +301,14 @@ See https://github.com/yantar92/org/issues/4." (let ((file (buffer-file-name))) (equal (format "[[file:%s::two]]" file file) (org-store-link nil)))))) + (should + (let ((org-stored-links nil) + (org-context-in-file-links t)) + (org-test-with-temp-text-in-file "#two" + (fundamental-mode) + (let ((file (buffer-file-name))) + (equal (format "[[file:%s::two]]" file file) + (org-store-link nil)))))) (should (let ((org-stored-links nil) (org-context-in-file-links t)) diff --git a/testing/lisp/test-org-table.el b/testing/lisp/test-org-table.el index ce78d4488..92ccd2a05 100644 --- a/testing/lisp/test-org-table.el +++ b/testing/lisp/test-org-table.el @@ -3368,6 +3368,11 @@ See also `test-org-table/copy-field'." (org-test-with-temp-text "| 1 | 2 | 3 |" (org-table-get-field 3 " foo ") (buffer-string)))) + (should + (equal " foo " + (org-test-with-temp-text "| 1 | 2 |\n| 3 | 4 |" + (org-table-get-field 2 " foo ") + (org-table-get-field 2)))) ;; An empty REPLACE string clears the field. (should (equal "| |" diff --git a/testing/lisp/test-org.el b/testing/lisp/test-org.el index 1e5fd0a91..1b00f6c45 100644 --- a/testing/lisp/test-org.el +++ b/testing/lisp/test-org.el @@ -1025,6 +1025,15 @@ Otherwise, evaluate RESULT as an sexp and return its result." (end-of-line 3) (org-auto-fill-function) (buffer-string))))) + ;; Do not fill VERSE blocks. + (should-not + (equal "#+BEGIN_VERSE\n12345\n7890\n#+END_VERSE" + (org-test-with-temp-text "#+BEGIN_VERSE\n12345 7890\n#+END_VERSE" + (let ((fill-column 5)) + (forward-line) + (end-of-line) + (org-auto-fill-function) + (buffer-string))))) ;; Comment block: auto fill contents. (should (equal "#+BEGIN_COMMENT\n12345\n7890\n#+END_COMMENT"