Merge branch 'maint'

This commit is contained in:
Nicolas Goaziou 2017-02-13 17:22:22 +01:00
commit 5902b9c2a7
3 changed files with 9 additions and 14 deletions

View File

@ -1652,14 +1652,6 @@ e^{i\\pi}+1=0
:path
(org-element-map (org-element-parse-buffer) 'link
#'identity nil t))))))
;; ... id link.
(should
(equal
"id"
(org-test-with-temp-text "[[id:aaaa]]"
(org-element-property
:type
(org-element-map (org-element-parse-buffer) 'link 'identity nil t)))))
;; ... custom-id link.
(should
(equal

View File

@ -43,17 +43,19 @@
(ert-deftest test-org-pcomplete/keyword ()
"Test keyword and block completion."
(should
(equal
(string-prefix-p
"#+startup: "
(org-test-with-temp-text "#+start<point>"
(pcomplete)
(buffer-string))))
(buffer-string))
t))
(should
(equal
(string-prefix-p
"#+begin_center"
(org-test-with-temp-text "#+begin_ce<point>"
(pcomplete)
(buffer-string)))))
(buffer-string))
t)))
(provide 'test-org-pcomplete)
;;; test-org-pcomplete.el ends here

View File

@ -3310,8 +3310,9 @@ Another text. (ref:text)
"Test `org-export-file-uri' specifications."
;; Preserve relative filenames.
(should (equal "relative.org" (org-export-file-uri "relative.org")))
;; Local files start with "file:///"
(should (equal "file:///local.org" (org-export-file-uri "/local.org")))
;; Local files start with "file://"
(should (equal (concat "file://" (expand-file-name "/local.org"))
(org-export-file-uri "/local.org")))
;; Remote files start with "file://"
(should (equal "file://myself@some.where:papers/last.pdf"
(org-export-file-uri "/myself@some.where:papers/last.pdf")))