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.
This commit is contained in:
parent
f0380f54c1
commit
5b76509830
|
@ -883,7 +883,6 @@ Use :header-args: instead"
|
|||
(and (boundp v) (symbol-value v))))
|
||||
org-babel-common-header-args-w-values))
|
||||
(datum-header-values
|
||||
(org-babel-process-params
|
||||
(apply
|
||||
#'org-babel-merge-params
|
||||
org-babel-default-header-args
|
||||
|
@ -912,7 +911,7 @@ Use :header-args: instead"
|
|||
(concat
|
||||
(org-element-property :inside-header datum)
|
||||
" "
|
||||
(org-element-property :end-header datum))))))))))))
|
||||
(org-element-property :end-header datum)))))))))))
|
||||
(dolist (header datum-header-values)
|
||||
(let ((allowed-values
|
||||
(cdr (assoc-string (substring (symbol-name (car header)) 1)
|
||||
|
|
Loading…
Reference in New Issue