]> git.eshelyaron.com Git - emacs.git/commitdiff
Properly ignore stderr in elisp Flymake backend
authorJoão Távora <joaotavora@gmail.com>
Tue, 19 Jun 2018 19:59:27 +0000 (20:59 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 19 Jun 2018 20:00:26 +0000 (21:00 +0100)
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

index d74c523c8c86f3c1ad191be286d656f91941a3ac..8eded03b9c4d0a4d34f5d2b7d3dbb7d31bfc9e4e 100644 (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)