From 3a47f3921bdaaf7b7d80dc3be05a5f1b1f2501eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Tue, 19 Jun 2018 20:59:27 +0100 Subject: [PATCH] Properly ignore stderr in elisp Flymake backend Naively passing `null-device' as stderr creates a buffer named "/dev/null" instead. Pass a hidden buffer name instead. (Bug#31902). * lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile): Pass hidden buffer as make-process :stderr instead of null-device. --- lisp/progmodes/elisp-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index d74c523c8c8..8eded03b9c4 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -1717,7 +1717,7 @@ current buffer state and calls REPORT-FN when done." (format "byte-compile process %s died" proc)))) (ignore-errors (delete-file temp-file)) (kill-buffer output-buffer)))) - :stderr null-device + :stderr " *stderr of elisp-flymake-byte-compile*" :noquery t))))) (defun elisp-flymake--batch-compile-for-flymake (&optional file) -- 2.39.2