Hello,

Eric Abrahamsen <[email protected]> writes:

> Subject: [PATCH] Add EXPORT_DIRECTORY property
>
> * lisp/ox.el (org-export-output-file-name): Check for this property
> and place the exported output file there.
> * doc/org-manual.org: Document.

Doesn't it conflict with publishing, and with EXPORT_FILE_NAME
property/keyword? In both, you can already specify an output directory.

> +                   (org-with-point-at (point-min)
> +                     (catch :found
> +                       (let ((case-fold-search t))
> +                         (while (re-search-forward
> +                                 "^[ \t]*#\\+EXPORT_DIRECTORY:[ \t]+\\S-"
> +                                 nil t)
> +                           (let ((element (org-element-at-point)))
> +                             (when (eq 'keyword (org-element-type element))
> +                               (throw :found
> +                                      (org-element-property
> +                                       :value element))))))))))

See `org-collect-keywords'.

Regards,
-- 
Nicolas Goaziou

Reply via email to