* org-lint and org-attach DIR property
@ 2020-06-12 13:30 Gustavo Barros
2020-06-12 21:59 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Gustavo Barros @ 2020-06-12 13:30 UTC (permalink / raw)
To: emacs-orgmode
Hi All,
When setting the 'DIR' property for attachments for a whole file with
=#+PROPERTY: DIR ...=, 'org-lint' will issue a deprecation warning and
recommend the use "header-args" instead. Of course, 'org-lint' means
here babel blocks, but as far as I understand, setting the 'DIR'
property for attachments for the whole file this way is a legitimate use
case, and is the only way to do so for org-attach. If this is the case,
the warning issued by 'org-lint' might be misleading. I'm admittedly
not well acquainted with 'org-lint', but thought it worth to bring the
case to your attention, for your consideration.
To generate such a warning, starting with =emacs -Q=, set load-path to
get the proper version of Org (as your case may be):
#+begin_src emacs-lisp
(add-to-list 'load-path "~/.emacs.d/elpa/org-plus-contrib-20200608")
#+end_src
Then visit an Org file with following contents:
#+begin_src org
,#+property: DIR attachments
,* entry1
,* entry2
#+end_src
'org-lint' will return:
#+begin_example
1 low Deprecated syntax for "DIR". Use header-args instead
#+end_example
This was tested with "Org mode version 9.3.7 (9.3.7-2-g706970-elpaplus @
/home/gustavo/.emacs.d/elpa/org-plus-contrib-20200608/)" and "GNU Emacs
27.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo
version 1.15.10) of 2020-05-20".
Best,
Gustavo.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: org-lint and org-attach DIR property
2020-06-12 13:30 org-lint and org-attach DIR property Gustavo Barros
@ 2020-06-12 21:59 ` Nicolas Goaziou
2020-06-12 22:12 ` Gustavo Barros
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2020-06-12 21:59 UTC (permalink / raw)
To: Gustavo Barros; +Cc: emacs-orgmode
Hello,
Gustavo Barros <gusbrs.2016@gmail.com> writes:
> When setting the 'DIR' property for attachments for a whole file with
> =#+PROPERTY: DIR ...=, 'org-lint' will issue a deprecation warning and
> recommend the use "header-args" instead. Of course, 'org-lint' means
> here babel blocks, but as far as I understand, setting the 'DIR'
> property for attachments for the whole file this way is a legitimate use
> case, and is the only way to do so for org-attach. If this is the case,
> the warning issued by 'org-lint' might be misleading. I'm admittedly
> not well acquainted with 'org-lint', but thought it worth to bring the
> case to your attention, for your consideration.
[...]
> Then visit an Org file with following contents:
>
> #+begin_src org
> ,#+property: DIR attachments
>
> ,* entry1
>
> ,* entry2
> #+end_src
You are right. I removed the warning for dir property. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: org-lint and org-attach DIR property
2020-06-12 21:59 ` Nicolas Goaziou
@ 2020-06-12 22:12 ` Gustavo Barros
0 siblings, 0 replies; 3+ messages in thread
From: Gustavo Barros @ 2020-06-12 22:12 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
Hi Nicolas,
On Fri, 12 Jun 2020 at 18:59, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:
>
> I removed the warning for dir property. Thank you.
>
Thank you very much.
Regards,
Gustavo.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-12 22:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-12 13:30 org-lint and org-attach DIR property Gustavo Barros
2020-06-12 21:59 ` Nicolas Goaziou
2020-06-12 22:12 ` Gustavo Barros
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).