diff options
author | John Turner <jturner.usa@gmail.com> | 2024-03-10 18:41:34 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2024-03-10 18:42:35 -0400 |
commit | 612c11ce8aac8517a5dc30ce213af816b4a89642 (patch) | |
tree | d4c3d7899ff91118418ffa17bdde74d159e7a8e9 /lisp | |
parent | bfc5f9e8442ce945238438f1f6ad74c6a7ecf17b (diff) | |
download | emacs.d-612c11ce8aac8517a5dc30ce213af816b4a89642.tar.gz |
call-process-region outputs stderr to a file, not a buffer
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/fmt/fmt.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/fmt/fmt.el b/lisp/fmt/fmt.el index 5ac97e3..5d837f4 100644 --- a/lisp/fmt/fmt.el +++ b/lisp/fmt/fmt.el @@ -37,7 +37,7 @@ :type '(string) :group 'fmt) -(defcustom fmt-stderr-buffer "*fmt stderr*" +(defcustom fmt-stderr-file "/dev/null" "Buffer to send fmt-executable stderr to." :type '(string) :group 'fmt) @@ -52,7 +52,7 @@ (defun fmt-buffer () (run-hooks 'fmt-before-format-hook) (let ((exit-status (apply 'call-process-region `(,(point-min) ,(point-max) ,fmt-executable - nil ,(list fmt-stdout-buffer fmt-stderr-buffer) + nil ,(list fmt-stdout-buffer fmt-stderr-file) nil ,@fmt-args)))) (if (zerop exit-status) (replace-buffer-contents fmt-stdout-buffer) |