Aaron Ecay
5b76509830
org-lint: don’t call org-babel-process-params
...
* lisp/org-lint.el (org-lint-wrong-header-value): Don’t call
`org-babel-process-params'.
This function adds generated values to the header args: it’s never a
user error if these are incorrect. It also calls babel code to resolve
:var references, which makes linting an undesirably long and potentially
side-effectful operation.
2015-11-07 20:31:35 +00:00
Aaron Ecay
e4cd3dd22b
Remove some home-grown copies of cl-lib functions.
...
* lisp/org.el (org-count, org-remove-if, org-remove-if-not):
(org-reduce, org-every, org-some): Obsolete, use cl-lib versions
everywhere.
(org-sublist): Reimplement in terms of `cl-subseq'; make obsolete.
2015-11-06 12:50:40 +00:00
Nicolas Goaziou
ba4d3376c1
org-lint: Allow sorting by warning message.
...
* lisp/org-lint.el (org-lint--report-mode): Allow sorting by warning message.
Suggested-by: Rainer M Krug <Rainer@krugs.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/102047 >
2015-10-24 11:41:44 +02:00
Nicolas Goaziou
169db5f0d9
org-lint: Fix wrong-number-of-arguments error
...
* lisp/org-lint.el (org-lint-invalid-macro-argument-and-template):
Handle macros without any placeholder.
Reported-by: Thomas S. Dye <tsd@tsdye.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/101207 >
2015-09-16 14:36:29 +02:00
Nicolas Goaziou
fc7ce0777d
org-lint: Fix compilation error
...
* lisp/org-lint.el (org-lint-wrong-include-link-parameter): Remove
spurious argument.
2015-08-14 18:19:05 +02:00
Nicolas Goaziou
eb3b31c80b
Implement Org linting
...
* lisp/org-lint.el: New file.
* doc/org.texi (Org syntax):
* etc/ORG-NEWS: Document new feature.
2015-08-14 18:16:31 +02:00