[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals-release/org 6ab5299 2/2: Fix test-org-element/cache "Pr
From: |
ELPA Syncer |
Subject: |
[elpa] externals-release/org 6ab5299 2/2: Fix test-org-element/cache "Preserve local structures when re-parenting." |
Date: |
Sat, 15 May 2021 07:57:13 -0400 (EDT) |
branch: externals-release/org
commit 6ab5299e5b2d879eb550350da6436a906bca5231
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Bastien <bzg@gnu.org>
Fix test-org-element/cache "Preserve local structures when re-parenting."
* testing/lisp/test-org-element.el (test-org-element/cache): Add
spaces to make the "abcd" table a single table. The old version uses
example org text with two tables and was passing because of another
bug in org-element-cache. Testing the old version with
org-element-use-cache set to nil would yield error, while it should
not.
---
testing/lisp/test-org-element.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testing/lisp/test-org-element.el b/testing/lisp/test-org-element.el
index cfd8406..bc21df3 100644
--- a/testing/lisp/test-org-element.el
+++ b/testing/lisp/test-org-element.el
@@ -3770,7 +3770,7 @@ Text
(eq 'table
(let ((org-element-use-cache t))
(org-test-with-temp-text
- "#+begin_center\nP0\n\n<point>\n\n P1\n | a | b |\n| c | d
|\n#+end_center"
+ "#+begin_center\nP0\n\n<point>\n\n P1\n | a | b |\n | c | d
|\n#+end_center"
(save-excursion (search-forward "| c |") (org-element-at-point))
(insert "- item")
(search-forward "| c |")