Parcourir la source

Backport commit d5a7df8c0 from Emacs

* lisp/ob-core.el (org-babel-remove-temporary-directory): Use
directory-files-no-dot-files-regexp.

Use directory-files-no-dot-files-regexp wherever possible
d5a7df8c02f04102d50a5cd2290262f59f2b1415
Mattias Engdegård
Thu Apr 16 12:14:38 2020 +0200
Mattias Engdegård il y a 4 ans
Parent
commit
989a51105c
1 fichiers modifiés avec 1 ajouts et 4 suppressions
  1. 1 4
      lisp/ob-core.el

+ 1 - 4
lisp/ob-core.el

@@ -3096,11 +3096,8 @@ of `org-babel-temporary-directory'."
 		  (if (eq t (car (file-attributes file)))
 		      (delete-directory file)
 		    (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 ".")) "..."))))
+				 directory-files-no-dot-files-regexp))
 	  (delete-directory org-babel-temporary-directory))
       (error
        (message "Failed to remove temporary Org-babel directory %s"