org-compat: Fix org-directory-empty-p

* lisp/org-compat.el: Remove COUNT parameter in call of
directory-files.  COUNT not available in Emacs < 28.
This commit is contained in:
Marco Wahl 2021-08-10 22:38:00 +02:00
parent 81eb8c5f9e
commit 01877f4804
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@
(defun org-directory-empty-p (dir)
"Return t if DIR names an existing directory containing no other files."
(and (file-directory-p dir)
(null (directory-files dir nil directory-files-no-dot-files-regexp t 1))))
(null (directory-files dir nil directory-files-no-dot-files-regexp t))))
(defalias 'org-directory-empty-p #'directory-empty-p))