From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: [RFC] Org linting library Date: Fri, 22 May 2015 10:10:53 +0200 Message-ID: References: <87a8y4fdmv.fsf@nicolasgoaziou.fr> <87iobm7wi0.fsf@selenimh.access.network> <877fs1aog3.fsf@selenimh.access.network> <87617l4mxt.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YviAF-0000Ia-CI for emacs-orgmode@gnu.org; Fri, 22 May 2015 04:18:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YviAC-0003KH-3J for emacs-orgmode@gnu.org; Fri, 22 May 2015 04:18:43 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:38165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YviAB-0003KC-Rd for emacs-orgmode@gnu.org; Fri, 22 May 2015 04:18:40 -0400 Received: by wichy4 with SMTP id hy4so39024985wic.1 for ; Fri, 22 May 2015 01:18:39 -0700 (PDT) Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by mx.google.com with ESMTPSA id g5sm1985652wjq.6.2015.05.22.01.10.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 May 2015 01:10:59 -0700 (PDT) In-Reply-To: <87617l4mxt.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Thu, 21 May 2015 23:53:34 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: > Rainer M Krug writes: > >> Well - now it does. The following produces the error: >> >> #+PROPERTY: header-args :tangle-mode (identity #o444) >> >> * Some code >> >> #+begin_src R :results nons >> >> #+end_src >> >> The problem is the (identity #o444) which is causing the problem. > > Fixed. Thank you. Thanks - working. Now there re a few more lints giving wrong warnings: 1) not identifying header argument with + ,---- | #+PROPERTY: header-args+ :tangle no `---- results in ,---- | 87 high Unknown header argument "" `---- 2) not knowing header argument "file-ext" from R ,---- | #+begin_src R :exports results :file-ext pdf :results graphics :width 8 = :height 8 | plotSensMainEffAll(files) | #+end_src `---- results in ,---- | 1691 high Unknown header argument "file-ext" `---- 3) I am not to sure about this one, but in LaTeX labels of figures are with the colon. Initially, I had #+LABEL: instead of #+NAME: but changed it as one should use #+NAME instead of #+LABEL, but now I get the following: ,---- | #+CAPTION: The caption | #+NAME: fig:sensDefault | #+RESULTS: fig_sensDefault | [[file:./output/fig_sensDefault.pdf]] `---- results in ,---- | 1686 high Name "fig:sensDefault" contains a colon; Babel cannot use it= as input `---- I agree with the fact that Babel can not use it as input, but I do not want to use it as input, only as a label in LaTeX for the figure? According to the manual this should work: http://orgmode.org/manual/Images-and-tables.html: ,---- | #+CAPTION: This is the caption for the next figure link (or table) | #+NAME: fig:SED-HR4049 | [[./img/a.jpg]] `---- So maybe check if this is part of a construct with a CAPTION or if it really is used as an input somewhere? 4) references where :FILE is a normal PROPERTY: (or isn't it?) ,---- | ** Koivusalo2002 - Snow processes in a forest clearing and in a coniferou= s forest | :PROPERTIES: | :TITLE: Snow processes in a forest clearing and in a coniferous forest | :BTYPE: article | :CUSTOM_ID: Koivusalo2002 | :AUTHOR: Koivusalo, H. and Kokkonen, T. | :DOI: 10.1016/S0022-1694(02)00031-8 | :FILE: file:./Literature/Koivusalo_2002.pdf | :ISSN: 00221694 | :JOURNAL: Journal of Hydrology | :KEYWORDS: energy,forest,mathematical models,melt,snow,uxes | :MENDELEY-GROUPS: Energy Balance,bibliography | :MONTH: may | :NUMBER: 1-4 | :PAGES: 145--164 | :URL: http://linkinghub.elsevier.com/retrieve/pii/S0022169402000318 | :VOLUME: 262 | :YEAR: 2002 | :END: | [[file:Literature/Koivusalo2002.pdf]] `---- results in ,---- | 11221 high Special property "FILE" found in a properties drawer `---- That is all I can see at the moment. Here is the ECM: =2D-8<---------------cut here---------------start------------->8--- #+PROPERTY: header-args :tangle-mode (identity #o444) #+PROPERTY: header-args :tangle-mode (identity #o444) #+PROPERTY: header-args+ :tangle no * file-ext #+begin_src R :exports results :file-ext pdf :results graphics :width 8 :h= eight 8 cat(23) #+end_src * And the : in NAME #+CAPTION: The caption #+NAME: fig:sensDefault #+RESULTS: fig_sensDefault [[file:./output/fig_sensDefault.pdf]] * References ** Mahat2013 - Testing above- and below-canopy representations of turbulent= fluxes in an energy balance snowmelt model :PROPERTIES: :TITLE: Testing above- and below-canopy representations of turbulent flu= xes in an energy balance snowmelt model :BTYPE: article :CUSTOM_ID: Mahat2013 :AUTHOR: Mahat, Vinod and Tarboton, David G. and Molotch, Noah P. :DOI: 10.1002/wrcr.20073 :FILE: :Users/rainerkrug/Documents/Mendeley/Files/Mahat, Tarboton, Molo= tch/Mahat, Tarboton, Molotch\_2013\_Testing above- and below-canopy represe= ntations of turbulent fluxes in an energy balance snowmelt model.pdf:pdf :ISSN: 00431397 :JOURNAL: Water Resources Research :MONTH: feb :NUMBER: 2 :PAGES: 1107--1122 :URL: http://doi.wiley.com/10.1002/wrcr.20073 :VOLUME: 49 :YEAR: 2013 :END: [[file:Literature/Mahat2013.pdf]] =2D-8<---------------cut here---------------end--------------->8--- which results in ,---- | 3 high Unknown header argument "" | 8 high Unknown header argument "file-ext" | 15 high Name "fig:sensDefault" contains a colon; Babel cannot use it= as input | 17 low Link to non-existent local file "./output/fig_sensDefault.pd= f" | 28 high Special property "FILE" found in a properties drawer | 38 low Link to non-existent local file "Literature/Mahat2013.pdf" `---- The "Link to non-existent ..." are obvious. I am really happy with org-lint - thanks a lot. This makes working with org files much easier. Thanks, Rainer > > Regards, =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJVXuSRAAoJENvXNx4PUvmCpKMIAN12ga8NDPC/14sr+KFHHweB rTGj+dQEq69vgiq85IJt6NVSIjdENZpergBY9PWmYlYYTkGQqYCjdOKzG44dutre Y+zDQGX/e+RiMFUiC9wRQxY0Hlp56XbAtZf4TLLAmJSsxvq6vVFth+/8LjWHN9EI XqIenK3Fl9kmeBCEL//TsqWi48vMz1Vu5Edn0qWNU4QkCsiR0JQrVrp6yMh3BZo1 D4TQbjy2/bDlMk41riPUdx7+ff76iRRdhIHDNXiwa8hbQy7JDAT4HRqEan7pjqCw IiCjVbeJ4HWdEsDvV62hrBo8tVMVIKbeYnP3m42iUTGPhNur8FRvL/WudwG57i4= =AR8t -----END PGP SIGNATURE----- --=-=-=--