emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Re: Export to attach directory?


From: Nicolas Goaziou
Subject: Re: [PATCH] Re: Export to attach directory?
Date: Mon, 07 Sep 2020 00:03:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hello,

Eric Abrahamsen <eric@ericabrahamsen.net> 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

[Prev in Thread] Current Thread [Next in Thread]