Function: battery--call-process-to-string
battery--call-process-to-string is a byte-compiled function defined in
battery.el.gz.
Signature
(battery--call-process-to-string PROGRAM &rest ARGS)
Source Code
;; Defined in /usr/src/emacs/lisp/battery.el.gz
;;; `apm' interface for BSD.
;; This function is a wrapper on `call-process' that return the
;; standard output in a string. We are using it instead
;; `shell-command-to-string' because this last one is trying to run
;; PROGRAM on the remote host if the buffer is remote.
(defun battery--call-process-to-string (program &rest args)
(with-output-to-string
(with-current-buffer standard-output
(apply #'call-process program nil t nil args))))