Re: [O] [RFC] Org linting library

2015-06-16 Thread Nicolas Goaziou
Rainer M Krug writes: > something along the line of "Link to non-existent local file "..." in > the description part" would make clear that it is ion the description of > a link. Done. Thanks. Regards,

Re: [O] [RFC] Org linting library

2015-06-09 Thread Rainer M Krug
Nicolas Goaziou writes: > Rainer M Krug writes: > >> OK - now I get it. The syntax implies that I want to display the image >> located there as the descriptor. > > Correct. > >> Would it be possible for org-lint to give a more direct warning that this >> link is in the description and not the li

Re: [O] [RFC] Org linting library

2015-06-09 Thread Nicolas Goaziou
Rainer M Krug writes: > OK - now I get it. The syntax implies that I want to display the image > located there as the descriptor. Correct. > Would it be possible for org-lint to give a more direct warning that this > link is in the description and not the link itself? Could you suggest an appr

Re: [O] [RFC] Org linting library

2015-06-08 Thread Rainer M Krug
Nicolas Goaziou writes: > Rainer M Krug writes: > >>> Here, Org Lint is correct. Link's description is really a link to >>> a file, "./__BOX__/Aerodynamic", followed by a space, and >>> "resistances.docx" text. >> >> But it is in the description part - shouldn't this be considered "normal >> tex

Re: [O] [RFC] Org linting library

2015-06-06 Thread Nicolas Goaziou
Rainer M Krug writes: >> Here, Org Lint is correct. Link's description is really a link to >> a file, "./__BOX__/Aerodynamic", followed by a space, and >> "resistances.docx" text. > > But it is in the description part - shouldn't this be considered "normal > text" whatever it is? I wish it would

Re: [O] [RFC] Org linting library

2015-06-06 Thread Rainer M Krug
Nicolas Goaziou writes: > Rainer M Krug writes: > >> The link >> >> , >> | [[file:__BOX__/Aerodynamic%20resistances.docx][file:./__BOX__/Aerodynamic >> resistances.docx]] >> ` >> >> causes the following warnings: >> >> , >> | 9094 low Link to non-existent local file >> "__BOX__

Re: [O] [RFC] Org linting library

2015-06-05 Thread Nicolas Goaziou
Rainer M Krug writes: > The link > > , > | [[file:__BOX__/Aerodynamic%20resistances.docx][file:./__BOX__/Aerodynamic > resistances.docx]] > ` > > causes the following warnings: > > , > | 9094 low Link to non-existent local file > "__BOX__/Aerodynamic%20resistances.docx" Fixed.

Re: [O] [RFC] Org linting library

2015-06-05 Thread Rainer M Krug
One more observation: The link , | [[file:__BOX__/Aerodynamic%20resistances.docx][file:./__BOX__/Aerodynamic resistances.docx]] ` causes the following warnings: , | 9094 low Link to non-existent local file "__BOX__/Aerodynamic%20resistances.docx" | 9094 low Link to non-exi

Re: [O] [RFC] Org linting library

2015-05-27 Thread Nicolas Goaziou
Hello, Andreas Leha writes: > some more spurious warnings I get: > > > 1. Captions with short version: > > , > | 1105 low Possible missing colon in keyword "#+caption[Data" > ` > > 2. header arguments from ob-latex: > > , > |451 high Unknown header argument "packages" > |4

Re: [O] [RFC] Org linting library

2015-05-27 Thread Andreas Leha
Hi Nicolas, some more spurious warnings I get: 1. Captions with short version: , | 1105 low Possible missing colon in keyword "#+caption[Data" ` 2. header arguments from ob-latex: , |451 high Unknown header argument "packages" |451 high Unknown header argument "imoutop

Re: [O] [RFC] Org linting library

2015-05-24 Thread Rainer M Krug
Nicolas Goaziou writes: > Rainer M Krug writes: > >> Concerning ignoring: it would be nice to dynamically exclude certain >> types of messages - i.e. hiding them from the results of the >> linting. I don't think this is possible at >> the moment? >> >> I have literally about 100 names with a col

Re: [O] [RFC] Org linting library

2015-05-24 Thread Nicolas Goaziou
Rainer M Krug writes: > Concerning ignoring: it would be nice to dynamically exclude certain > types of messages - i.e. hiding them from the results of the > linting. I don't think this is possible at > the moment? > > I have literally about 100 names with a colon - so these messages are > oversh

Re: [O] [RFC] Org linting library

2015-05-23 Thread Rainer M Krug
Nicolas Goaziou writes: > Rainer M Krug writes: > >> 1) not identifying header argument with + >> , >> | #+PROPERTY: header-args+ :tangle no >> ` >> >> results in >> >> , >> | 87 high Unknown header argument "" >> ` > > This should be fixed. Thanks. > >> 2) not knowing header

Re: [O] [RFC] Org linting library

2015-05-22 Thread Nicolas Goaziou
Rainer M Krug writes: > 1) not identifying header argument with + > , > | #+PROPERTY: header-args+ :tangle no > ` > > results in > > , > | 87 high Unknown header argument "" > ` This should be fixed. > 2) not knowing header argument "file-ext" from R > , > | #+begin_src R

Re: [O] [RFC] Org linting library

2015-05-22 Thread Rainer M Krug
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 t

Re: [O] [RFC] Org linting library

2015-05-21 Thread Nicolas Goaziou
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. Regards,

Re: [O] [RFC] Org linting library

2015-05-21 Thread Rainer M Krug
Nicolas Goaziou writes: > Rainer M Krug writes: > >> Two more questions: >> >> I get the following warnings: >> >> , >> | 10 low Unknown OPTIONS item "@" >> | 11 low Unknown OPTIONS item "skip" >> | 11 low Unknown OPTIONS item "LaTeX" >> | 11 low Unknown OPTIONS item

Re: [O] [RFC] Org linting library

2015-05-21 Thread Rainer M Krug
Nicolas Goaziou writes: > Rainer M Krug writes: > >> Two more questions: >> >> I get the following warnings: >> >> , >> | 10 low Unknown OPTIONS item "@" >> | 11 low Unknown OPTIONS item "skip" >> | 11 low Unknown OPTIONS item "LaTeX" >> | 11 low Unknown OPTIONS item

Re: [O] [RFC] Org linting library

2015-05-21 Thread Rainer M Krug
Nicolas Goaziou writes: > Rainer M Krug writes: > >> Two more questions: >> >> I get the following warnings: >> >> , >> | 10 low Unknown OPTIONS item "@" >> | 11 low Unknown OPTIONS item "skip" >> | 11 low Unknown OPTIONS item "LaTeX" >> | 11 low Unknown OPTIONS item

Re: [O] [RFC] Org linting library

2015-05-21 Thread Nicolas Goaziou
Rainer M Krug writes: > Two more questions: > > I get the following warnings: > > , > | 10 low Unknown OPTIONS item "@" > | 11 low Unknown OPTIONS item "skip" > | 11 low Unknown OPTIONS item "LaTeX" > | 11 low Unknown OPTIONS item "TeX" > ` > > based on the followi

Re: [O] [RFC] Org linting library

2015-05-21 Thread Rainer M Krug
Nicolas Goaziou writes: > Rainer M Krug writes: > >> There is an example where I get the error: >> >> * Fitting the kernel to the data >> The parameter which will be fitted can be found in Table [[tab:fitInitial]] >> >> #+CAPTION: Variables used for the initial fit of the wind profile using the

Re: [O] [RFC] Org linting library

2015-05-20 Thread Nicolas Goaziou
Rainer M Krug writes: > There is an example where I get the error: > > * Fitting the kernel to the data > The parameter which will be fitted can be found in Table [[tab:fitInitial]] > > #+CAPTION: Variables used for the initial fit of the wind profile using the > function and the initial values.

Re: [O] [RFC] Org linting library

2015-05-20 Thread Rainer M Krug
Envoyé de mon iPhone > Le 20 mai 2015 à 22:42, Andreas Leha a > écrit : > > Hi Rainer, > > Rainer M Krug writes: >> Rainer M Krug writes: >> >>> Rainer M Krug writes: >>> Andreas Leha writes: > Hi Rainer, > > Rainer M Krug writes: >> Nicolas Goaziou writes

Re: [O] [RFC] Org linting library

2015-05-20 Thread Andreas Leha
Hi Rainer, Rainer M Krug writes: > Rainer M Krug writes: > >> Rainer M Krug writes: >> >>> Andreas Leha writes: >>> Hi Rainer, Rainer M Krug writes: > Nicolas Goaziou writes: > >> Hello, >> >> The following library implements linting for Org syntax. The sol

Re: [O] [RFC] Org linting library

2015-05-20 Thread Rainer M Krug
Rainer M Krug writes: > Rainer M Krug writes: > >> Andreas Leha writes: >> >>> Hi Rainer, >>> >>> Rainer M Krug writes: Nicolas Goaziou writes: > Hello, > > The following library implements linting for Org syntax. The sole public > function is `org-lint', which see.

Re: [O] [RFC] Org linting library

2015-05-20 Thread Rainer M Krug
Rainer M Krug writes: > Andreas Leha writes: > >> Hi Rainer, >> >> Rainer M Krug writes: >>> Nicolas Goaziou writes: >>> Hello, The following library implements linting for Org syntax. The sole public function is `org-lint', which see. Internally, the library defi

Re: [O] [RFC] Org linting library

2015-05-20 Thread Rainer M Krug
Andreas Leha writes: > Hi Rainer, > > Rainer M Krug writes: >> Nicolas Goaziou writes: >> >>> Hello, >>> >>> The following library implements linting for Org syntax. The sole public >>> function is `org-lint', which see. >>> >>> Internally, the library defines a new structure: `org-lint-checker

Re: [O] [RFC] Org linting library

2015-05-19 Thread Andreas Leha
Hi Nicolas, Nicolas Goaziou writes: > Andreas Leha writes: > >> * Test code block names >> >> #+name: test >> #+begin_src R :results none >> 1:10 >> #+end_src > > OK. It was a R-specific bug. It should now be fixed. > Thank you! Fix confirmed. The last warning is gone. Thanks, Andreas

Re: [O] [RFC] Org linting library

2015-05-19 Thread Nicolas Goaziou
Andreas Leha writes: > * Test code block names > > #+name: test > #+begin_src R :results none > 1:10 > #+end_src OK. It was a R-specific bug. It should now be fixed. Thank you. Regards,

Re: [O] [RFC] Org linting library

2015-05-19 Thread Andreas Leha
Hi Nicolas, Nicolas Goaziou writes: > Andreas Leha writes: > >> But I still get >> >> 191 low Unknown value "none" for header ":results" > > Could you show an ECM? I cannot reproduce it. > Sure: --8<---cut here---start->8--- * Test code block names #+name:

Re: [O] [RFC] Org linting library

2015-05-19 Thread Nicolas Goaziou
Andreas Leha writes: > But I still get > > 191 low Unknown value "none" for header ":results" Could you show an ECM? I cannot reproduce it. Regards,

Re: [O] [RFC] Org linting library

2015-05-19 Thread Andreas Leha
Hi Nicolas, Nicolas Goaziou writes: > Andreas Leha writes: > >> I just pulled and rebased again. The "never-export" issue is >> gone, indeed. The others are still there. What am I missing >> here? > > Nothing. I overlooked a typo. It should be fixed in wip-lint. Thanks. Now the :tangle heade

Re: [O] [RFC] Org linting library

2015-05-19 Thread Nicolas Goaziou
Andreas Leha writes: > I just pulled and rebased again. The "never-export" issue is > gone, indeed. The others are still there. What am I missing > here? Nothing. I overlooked a typo. It should be fixed in wip-lint. Thank you. Regards,

Re: [O] [RFC] Org linting library

2015-05-19 Thread Andreas Leha
Hi Nicolas, Nicolas Goaziou writes: >> I have finally made some time to test this. I get some >> unexpected warnings: >> >>79 low Unknown value "myfile.R" for header ":tangle" >> 192 low Unknown value "none" for header ":results" > > Make sure you rebased the wip-lint branch on top of m

Re: [O] [RFC] Org linting library

2015-05-19 Thread Nicolas Goaziou
Rainer M Krug writes: > This sounds very interesting and I would like to try it out. I > understand that it can't be put into master, but could it be put into a > branch? It already lives in "wip-lint" branch. Regards,

Re: [O] [RFC] Org linting library

2015-05-19 Thread Andreas Leha
Hi Rainer, Rainer M Krug writes: > Nicolas Goaziou writes: > >> Hello, >> >> The following library implements linting for Org syntax. The sole public >> function is `org-lint', which see. >> >> Internally, the library defines a new structure: `org-lint-checker', >> with the following slots: >> >

Re: [O] [RFC] Org linting library

2015-05-19 Thread Nicolas Goaziou
Hello, Andreas Leha writes: > I have finally made some time to test this. I get some > unexpected warnings: > >79 low Unknown value "myfile.R" for header ":tangle" > 192 low Unknown value "none" for header ":results" Make sure you rebased the wip-lint branch on top of master. > 22985

Re: [O] [RFC] Org linting library

2015-05-19 Thread Rainer M Krug
Nicolas Goaziou writes: > Hello, > > The following library implements linting for Org syntax. The sole public > function is `org-lint', which see. > > Internally, the library defines a new structure: `org-lint-checker', > with the following slots: > > - NAME: Unique check identifier, as a symbo

Re: [O] [RFC] Org linting library

2015-05-19 Thread Andreas Leha
Nicolas Goaziou writes: > Hello, > > The following library implements linting for Org syntax. The sole public > function is `org-lint', which see. > > Internally, the library defines a new structure: `org-lint-checker', > with the following slots: > > - NAME: Unique check identifier, as a symbol

Re: [O] [RFC] Org linting library

2015-04-27 Thread Doug Lewan
> -Original Message- > On > Behalf Of Nicolas Goaziou > Sent: Sunday, 2015 April 19 09:32 > To: Org Mode List > Subject: [O] [RFC] Org linting library > > Hello, > > The following library implements linting for Org syntax. The sole > public > function is `org-lint', which see. > Nicolas

Re: [O] [RFC] Org linting library

2015-04-26 Thread Nicolas Goaziou
Sebastien Vauban writes: > Could `org-lint' return a success/fail indication, so that we could > write something along in an export hook: > > (if (org-lint) > ... continue with export ... > ... stop with message or display the lint buffer ...) > > As well, could the buffer be hidden (or k

Re: [O] [RFC] Org linting library

2015-04-23 Thread Sebastien Vauban
Nicolas Goaziou wrote: > Here's another update. I added a few more tests. > > If there's no more bug report or feedback, I'll simply put it in > a "wip-lint" branch until Org 8.4 starts its development cycle. Could `org-lint' return a success/fail indication, so that we could write something along

Re: [O] [RFC] Org linting library

2015-04-23 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Here's another update. I added a few more tests. > > If there's no more bug report or feedback, I'll simply put it in > a "wip-lint" branch until Org 8.4 starts its development cycle. This is handy! No bugs to report.

Re: [O] [RFC] Org linting library

2015-04-22 Thread Nicolas Goaziou
Sebastien Vauban writes: > I'd like to enforce org-lint on all my Org docs, either in a find-file > hook or before export, for example. > > Can't you put it in master as well? No, I can't. As explained in the original post, "org-lint.el" requires at least Emacs 24.3 (lexical binding, pcase,

Re: [O] [RFC] Org linting library

2015-04-22 Thread Nicolas Goaziou
Here's another update. I added a few more tests. If there's no more bug report or feedback, I'll simply put it in a "wip-lint" branch until Org 8.4 starts its development cycle. Regards, org-lint.el Description: application/emacs-lisp

Re: [O] [RFC] Org linting library

2015-04-22 Thread Sebastien Vauban
Hello Nicolas, Nicolas Goaziou wrote: > Here's another update. I added a few more tests. > > If there's no more bug report or feedback, I'll simply put it in > a "wip-lint" branch until Org 8.4 starts its development cycle. I'd like to enforce org-lint on all my Org docs, either in a find-file ho

Re: [O] [RFC] Org linting library

2015-04-20 Thread Nicolas Goaziou
Marco Wahl writes: > I think it's too much that org-lint tries to follow ssh links. It doesn't follow remote paths. > 2278 low Link to non-existent local file > "///ssh:root@127.0.0.1#:/etc/httpd/conf/httpd.conf" ^ ^^^ There's a bug in the par

Re: [O] [RFC] Org linting library

2015-04-20 Thread Nicolas Goaziou
"Charles C. Berry" writes: >> - orphaned affiliated keywords > > This generates an orphaned keyword warning, but seems innocuous and is > what babel renders. > > #+NAME: abc > #+BEGIN_SRC emacs-lisp > nil #+END_SRC > > #+RESULTS: abc Indeed, it is innocuous. It is meant to catch, e.g., #+CA

Re: [O] [RFC] Org linting library

2015-04-19 Thread Charles C. Berry
On Sun, 19 Apr 2015, Nicolas Goaziou wrote: Hello, The following library implements linting for Org syntax. The sole public function is `org-lint', which see. Nice! Comments below. Internally, the library defines a new structure: `org-lint-checker', with the following slots: [snip]

Re: [O] [RFC] Org linting library

2015-04-19 Thread Marco Wahl
Hi! Nicolas Goaziou writes: > The following library implements linting for Org syntax. The sole public > function is `org-lint', which see. Great, thanks a lot. Already found some issues with some org-files. > Results are displayed in a special "*Org Lint*" buffer with a dedicated > major mod

Re: [O] [RFC] Org linting library

2015-04-19 Thread Nicolas Goaziou
Rasmus writes: > It looks like a great tool. Especially given the fact that the org format > still seems to be developing. Indeed. We can use it as another channel for syntax deprecation. > Anyway, some very premature notes: > > One venue that may worth pursuing is better error messages during

Re: [O] [RFC] Org linting library

2015-04-19 Thread Rasmus
Hi, Nicolas Goaziou writes: > Since it relies on lexical binding, `pcase' and `string-prefix-p', it > cannot be added to Org 8.3, but can make it into Org 8.4, if deemed > useful enough. It looks like a great tool. Especially given the fact that the org format still seems to be developing. An