forked from mirrors/org-mode
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:
parent
81eb8c5f9e
commit
01877f4804
|
@ -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))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue