aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Távora2018-06-19 20:59:27 +0100
committerJoão Távora2018-06-19 21:00:26 +0100
commit3a47f3921bdaaf7b7d80dc3be05a5f1b1f2501eb (patch)
tree3f12c8959f219f4a23fbeb917f782bbfe6f65e71
parenta9b720ac5030a4ca84e8ebe8436027da0468624c (diff)
downloademacs-3a47f3921bdaaf7b7d80dc3be05a5f1b1f2501eb.tar.gz
emacs-3a47f3921bdaaf7b7d80dc3be05a5f1b1f2501eb.zip
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.
-rw-r--r--lisp/progmodes/elisp-mode.el2
1 files changed, 1 insertions, 1 deletions
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."
1717 (format "byte-compile process %s died" proc)))) 1717 (format "byte-compile process %s died" proc))))
1718 (ignore-errors (delete-file temp-file)) 1718 (ignore-errors (delete-file temp-file))
1719 (kill-buffer output-buffer)))) 1719 (kill-buffer output-buffer))))
1720 :stderr null-device 1720 :stderr " *stderr of elisp-flymake-byte-compile*"
1721 :noquery t))))) 1721 :noquery t)))))
1722 1722
1723(defun elisp-flymake--batch-compile-for-flymake (&optional file) 1723(defun elisp-flymake--batch-compile-for-flymake (&optional file)