emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] master 9300306: bug-hunter: Don't offer interactive bisection in


From: Artur Malabarba
Subject: [elpa] master 9300306: bug-hunter: Don't offer interactive bisection in the terminal
Date: Fri, 01 Apr 2016 14:21:28 +0000

branch: master
commit 930030657f3ff08192bf47cf110a39f45860152a
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>

    bug-hunter: Don't offer interactive bisection in the terminal
---
 packages/bug-hunter/bug-hunter.el |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/packages/bug-hunter/bug-hunter.el 
b/packages/bug-hunter/bug-hunter.el
index 6875470..d6de15d 100644
--- a/packages/bug-hunter/bug-hunter.el
+++ b/packages/bug-hunter/bug-hunter.el
@@ -4,7 +4,7 @@
 
 ;; Author: Artur Malabarba <address@hidden>
 ;; URL: https://github.com/Malabarba/elisp-bug-hunter
-;; Version: 1.1
+;; Version: 1.2
 ;; Keywords: lisp
 ;; Package-Requires: ((seq "1.3") (cl-lib "0.5"))
 
@@ -468,8 +468,15 @@ form.
 The user may decide to not provide input, in which case
 'interactive is returned.  Note, this is different from the user
 typing `RET' at an empty prompt, in which case nil is returned."
-  (pcase (read-char-choice bug-hunter--hunt-type-prompt '(?i ?e ?a))
-    (`?i 'interactive)
+  (pcase (read-char-choice (if (display-graphic-p)
+                               bug-hunter--hunt-type-prompt
+                             (replace-regexp-in-string "To bisect 
interactively,.*\n" ""
+                                                       
bug-hunter--hunt-type-prompt))
+                           '(?i ?e ?a))
+    (`?i
+     (unless (display-graphic-p)
+       (user-error "Sorry, but `interactive' bisection needs a graphical 
frame"))
+     'interactive)
     (`?e nil)
     (_
      (require 'simple)



reply via email to

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