Fix 15861: detect the audoload function more robustly
This commit is contained in:
parent
178a3ab186
commit
e043c86163
|
@ -1280,7 +1280,7 @@ SEQ, START and END are the same arguments as for `cl-subseq'"
|
||||||
(or (bound-and-true-p org-directory) default-directory))
|
(or (bound-and-true-p org-directory) default-directory))
|
||||||
(files
|
(files
|
||||||
(if (or (not (fboundp 'org-agenda-files))
|
(if (or (not (fboundp 'org-agenda-files))
|
||||||
(eq 'autoload (car (symbol-function 'org-agenda-files))))
|
(autoloadp (symbol-function 'org-agenda-files)))
|
||||||
(bound-and-true-p org-agenda-files)
|
(bound-and-true-p org-agenda-files)
|
||||||
(org-agenda-files))))
|
(org-agenda-files))))
|
||||||
(mapcar #'expand-file-name files)))
|
(mapcar #'expand-file-name files)))
|
||||||
|
|
Loading…
Reference in New Issue