Hello,

stardiviner <numbch...@gmail.com> writes:

> Add a test for Babel src block languages and header arguments.

Thank you.

> I'm wandering how to complete header argument values? Do you have any
> hints?

You can use, again, `org-babel-common-header-args-w-values' for some
parameters. However, most of them specify `:any', which means the value
can be anything, and, therefore, cannot be completed.

You may want to have a look at `org-lint-wrong-header-value' for an
example on how to treat

> +(ert-deftest test-org-pcomplete/src-block ()
> +  "Test Babel src block header arguments completion."

"source block" instead of "src block".

> +  (should
> +   (string-prefix-p
> +    "#+begin_src emacs-lisp"
> +    (org-test-with-temp-text "#+begin_src emac<point>"
> +      (pcomplete)
> +      (buffer-string))
> +    t))

You can remove the t

> +  (should
> +   (string-prefix-p
> +    "#+begin_src emacs-lisp :session"
> +    (org-test-with-temp-text "#+begin_src emacs-lisp :sess<point>"
> +      (pcomplete)
> +      (buffer-string))
> +    t)))

Ditto.

Regards,

-- 
Nicolas Goaziou

Reply via email to