0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 20:37:51 +00:00

Merge branch 'maint'

This commit is contained in:
Kyle Meyer 2020-04-20 00:42:38 -04:00
commit b359de549e

View file

@ -3098,7 +3098,9 @@ of `org-babel-temporary-directory'."
(delete-file file)))
;; We do not want to delete "." and "..".
(directory-files org-babel-temporary-directory 'full
"^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*"))
;; Note: Use `any' for compatibility
;; with Emacs < 27.
(rx (or (not (any ".")) "..."))))
(delete-directory org-babel-temporary-directory))
(error
(message "Failed to remove temporary Org-babel directory %s"