|
@@ -107,7 +107,17 @@
|
|
|
(org-test-with-temp-text
|
|
|
"* H1\n:PROPERTIES:\n:A: 1\n:END:\n* H2\n{{{property(A,*???)}}}<point>"
|
|
|
(org-macro-initialize-templates)
|
|
|
- (org-macro-replace-all org-macro-templates))))
|
|
|
+ (org-macro-replace-all org-macro-templates)))
|
|
|
+ ;; Macro expansion ignores narrowing.
|
|
|
+ (should
|
|
|
+ (string-match
|
|
|
+ "expansion"
|
|
|
+ (org-test-with-temp-text
|
|
|
+ "#+MACRO: macro expansion\n{{{macro}}}\n<point>Contents"
|
|
|
+ (narrow-to-region (point) (point-max))
|
|
|
+ (org-macro-initialize-templates)
|
|
|
+ (org-macro-replace-all org-macro-templates)
|
|
|
+ (org-with-wide-buffer (buffer-string))))))
|
|
|
|
|
|
(ert-deftest test-org-macro/escape-arguments ()
|
|
|
"Test `org-macro-escape-arguments' specifications."
|