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

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

[nongnu] elpa/inf-ruby a2a6434bb3 163/265: Reverting to re-search-forwar


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby a2a6434bb3 163/265: Reverting to re-search-forward
Date: Sat, 9 Jul 2022 21:59:22 -0400 (EDT)

branch: elpa/inf-ruby
commit a2a6434bb33fd2e04bcbab27b8bf1d1e7f583808
Author: Daniel Luna <dancluna@gmail.com>
Commit: Daniel Luna <dancluna@gmail.com>

    Reverting to re-search-forward
---
 inf-ruby.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 73c0aa1d6c..64e6a7b89c 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -634,7 +634,7 @@ keymaps to bind `inf-ruby-switch-from-compilation' to `ะก-x 
C-q'."
 one of the predicates matches, then calls `inf-ruby-console-NAME',
 passing it the found directory.")
 
-(defvar inf-ruby-breakpoint-pattern ".*\\(\\[1\\] pry(\\)\\|\\((rdb:1)\\)"
+(defvar inf-ruby-breakpoint-pattern "\\(\\[1\\] pry(\\)\\|\\((rdb:1)\\)"
   "Pattern found when a breakpoint is triggered in a compilation session.
 This checks if the current line is a pry or ruby-debug prompt.")
 
@@ -746,7 +746,8 @@ Gemfile, it should use the `gemspec' instruction."
   (when (inf-ruby-in-ruby-compilation-modes major-mode)
     (save-excursion
       (beginning-of-line)
-      (when (looking-at inf-ruby-breakpoint-pattern)
+      (when (re-search-forward inf-ruby-breakpoint-pattern
+                               (line-end-position) t)
         (inf-ruby-switch-from-compilation)))))
 
 (defun inf-ruby-auto-exit (input)



reply via email to

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