GNU bug report logs -
#35187
26.1; call-process should accept a buffer as stdin. or its doc should reference call-process-region
Previous Next
Reported by: Ernesto Alfonso <erjoalgo <at> gmail.com>
Date: Sun, 7 Apr 2019 21:42:02 UTC
Severity: minor
Tags: fixed
Found in version 26.1
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 35187 <at> debbugs.gnu.org (full text, mbox):
Ernesto Alfonso <erjoalgo <at> gmail.com> writes:
> When looking at the call-process doc, I didn't see a way to pass a
> buffer to stdin without creating a temporary file. It looks like
> the DESTINATION argument already supports either a file-name or a
> buffer, but passing a buffer to INFILE does not seem supported:
>
> (call-process "cat" (get-buffer "*Messages*") nil)
> *** Eval error *** Wrong type argument: stringp, #<buffer *Messages*>
>
> Can this be supported? Could call-process-region be merged into
> the INFILE argument to call-process?
I think it's probably too late to merge these two functions...
> As a short-term fix, it would be useful if the call-process referred to
> call-process-region.
... but I've now mentioned the latter in the former's doc string on the
Emacs trunk.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 5 years and 346 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.