I have been reading the documentation for call-process-region
here and I am trying to redirect stderr to a file. from the the documentation, this looks correct
(call-process-region beg end perltidy-executable t '(t (:file "/tmp/tidy")))
however when I try to run it I get the following error
Wrong type argument: stringp, (:file "/tmp/tidy")
it works without errors if I use
(call-process-region beg end perltidy-executable t '(t nil))
but that causes stderr to be lost.
What am I doing wrong here?