From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WCZkMZ6D415DLQAA0tVLHw (envelope-from ) for ; Fri, 12 Jun 2020 13:31:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2EQuLZ6D414nWwAA1q6Kng (envelope-from ) for ; Fri, 12 Jun 2020 13:31:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0EF6F9404CF for ; Fri, 12 Jun 2020 13:31:10 +0000 (UTC) Received: from localhost ([::1]:48362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjjlz-0005Bq-AO for larch@yhetil.org; Fri, 12 Jun 2020 09:31:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjjlS-0005AL-NU for emacs-orgmode@gnu.org; Fri, 12 Jun 2020 09:30:34 -0400 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]:46888) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjjlR-0003TY-6e for emacs-orgmode@gnu.org; Fri, 12 Jun 2020 09:30:34 -0400 Received: by mail-qt1-x841.google.com with SMTP id g18so7063016qtu.13 for ; Fri, 12 Jun 2020 06:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:user-agent:from:to:subject:message-id:date:mime-version; bh=/9KlpJfw6N+oTIXbX/3HdhRmHpIGrB+fezXh9vdYgT8=; b=K1i4XOE7PXIe66Rakzepobr4JGG4Xmugnq8tN1Quz6WhrKyrv95p/UZOlvthV0r5bi Iao2rCITDIslr4KuxgL7G2XC/mGfx8QTLPrEPmHskXKqSVyq97w06LKCY8yny4ThXIvs ZSDBC3bA5yRlqRh+4NezEX0NoUdOP3O3L7Mc8F7bX9Gg55YP4027oFRL+UtZO6hsv6wA /uaT8cHaukHQsqX7sPOjcN4gd5yNvFOqnyrvQgODhwcB51hm1cnK1DAyIr+4Yw3ycDon 1MFXsaY7JIEfVulMAse17OL0RShm15S0izj8igJ8iQwV3rLNOz59wqxdkQT3K3oDbX+o 0nnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:user-agent:from:to:subject:message-id :date:mime-version; bh=/9KlpJfw6N+oTIXbX/3HdhRmHpIGrB+fezXh9vdYgT8=; b=HyezulrNcjH7xhP2zDZwt6VLKXHTR69K8oBq0cnMg1QUTHLDV93OYsp8T4XOx0pmrX fEfIqpnp8kvW2l6uFTm/ED/a8LwyOpNLkAPMz74qWi4yB0/+01y8lBfcWoNfuytkPgk7 7DVOZk/1ISvgnzjEnfR+OaVS4Bs3h0j7rrCxvKKzGXoSN+vKoMWjQv9YVmmbKPLTIfoQ QQ3NPCyAXhRFEMKpSwvd2ws1XHc75prsqgl12c/ty8FsuwGoZFpXOxvQ49xr7VgZOYqX ZDPiCQQgqmCNsiKmhPZYqZL/KT8oenyBQH3Uw//h3yRstpCZ+5S8Qhe3Shgv2umTkbi5 0d9w== X-Gm-Message-State: AOAM530hoqYIa9PIF0WgkeavGrPpJlJ4ti+qa5GUr7BeaO04ta4Snn+f 3eiP+mXBSrgmRU/dP+Xyeev5OSTXcSQ= X-Google-Smtp-Source: ABdhPJyFegpz+SAMXhjrVZW9F44Zj29W2TRjh6QuarBivB9xUiD0bKqG3Oc1mKiA0F2mJ8FX8Q3new== X-Received: by 2002:aed:3f3b:: with SMTP id p56mr2925891qtf.93.1591968625756; Fri, 12 Jun 2020 06:30:25 -0700 (PDT) Received: from gusbrs-laptop ([191.30.235.152]) by smtp.gmail.com with ESMTPSA id z60sm5296432qtc.30.2020.06.12.06.30.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Jun 2020 06:30:25 -0700 (PDT) User-agent: mu4e 1.4.10; emacs 27.0.91 From: Gustavo Barros To: emacs-orgmode@gnu.org Subject: org-lint and org-attach DIR property Message-ID: <87zh98qumy.fsf@gmail.com> Date: Fri, 12 Jun 2020 10:30:13 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::841; envelope-from=gusbrs.2016@gmail.com; helo=mail-qt1-x841.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=K1i4XOE7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: DPNm8I5cGVXQ 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.