From 612c11ce8aac8517a5dc30ce213af816b4a89642 Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 10 Mar 2024 18:41:34 -0400 Subject: [PATCH] call-process-region outputs stderr to a file, not a buffer --- lisp/fmt/fmt.el | 4 ++-- 1 file 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) -- 2.39.5