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.
This commit is contained in:
João Távora 2018-06-19 20:59:27 +01:00
parent a9b720ac50
commit 3a47f3921b

View file

@ -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)