emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 f20c2e2 4/4: ; Compare process status against 127


From: Dmitry Gutov
Subject: [Emacs-diffs] emacs-26 f20c2e2 4/4: ; Compare process status against 127 exactly
Date: Tue, 21 Nov 2017 18:57:32 -0500 (EST)

branch: emacs-26
commit f20c2e2f3def260052eae486ad5e045f234301f1
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    ; Compare process status against 127 exactly
---
 lisp/progmodes/ruby-mode.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 1dce49e..dc1b0f8 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -2348,8 +2348,10 @@ Only takes effect if Rubocop is installed."
          ;; Finding the executable is no guarantee of
          ;; rubocop working, especially in the presence
          ;; of rbenv shims (which cross ruby versions).
-         (unless (zerop (process-exit-status proc))
-           (flymake-log :warning "Rubocop returned non-zero status: %s"
+         (when (eq (process-exit-status proc) 127)
+           ;; Not sure what to do in this case.  Maybe ideally we'd
+           ;; switch back to ruby-flymake-simple.
+           (flymake-log :warning "Rubocop returned status 127: %s"
                         (buffer-string)))
          (goto-char (point-min))
          (cl-loop



reply via email to

[Prev in Thread] Current Thread [Next in Thread]