ox-publish: Follow symlink directories
commit7c21dfc771d2a2f44870c80f34001c835690a77d
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 13 Feb 2018 13:06:56 +0000 (13 14:06 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 13 Feb 2018 13:06:56 +0000 (13 14:06 +0100)
treebc6a60187fa80e12ef4af6652ce92865de390f66
parentfe7619cd184847227e9c1085b4f3c13a553f007b
ox-publish: Follow symlink directories

* lisp/org-compat.el (directory-files-recursively): Remove
  compatibility function, no longer needed.
* lisp/ox-publish.el (org-publish--expand-file-name):
(org-publish-org-to):
(org-publish-collect-index):
(org-publish--store-crossrefs):
(org-publish-resolve-external-link): Preserve symlinks in file name.
(org-publish-get-base-files): Follow symlink directories.
(org-publish-get-project-from-filename): Preserve symlinks in file
name.  Do not use `file-in-directory-p', which ignores symlinks.

Reported-by: Michel Damiens <michel.damiens@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-02/msg00186.html>
lisp/org-compat.el
lisp/ox-publish.el
testing/examples/pub-symlink/link.org [new file with mode: 0644]
testing/examples/pub/link [new symlink]
testing/lisp/test-ox-publish.el