emacs-diffs
[Top][All Lists]
Advanced

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

master bea90d8de2: Fix gud parsing of empty jdb classpaths


From: Lars Ingebrigtsen
Subject: master bea90d8de2: Fix gud parsing of empty jdb classpaths
Date: Tue, 14 Jun 2022 08:27:45 -0400 (EDT)

branch: master
commit bea90d8de27e673a039a71e15a08bcb0cb6f7011
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix gud parsing of empty jdb classpaths
    
    * lisp/progmodes/gud.el (gud-jdb-marker-filter): Parse empty
    classpaths (like classpath: []) correctly (bug#55957).
---
 lisp/progmodes/gud.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 213ebef92f..26fecf9c9f 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -2460,7 +2460,7 @@ during jdb initialization depending on the value of
   ;;  not supported/followed)
   (if (and gud-jdb-use-classpath
           (not gud-jdb-classpath-string)
-          (or (string-match "classpath:[ \t[]+\\([^]]+\\)" gud-marker-acc)
+          (or (string-match "classpath:[ \t[]+\\([^]]*\\)" gud-marker-acc)
               (string-match "-classpath[ \t\"]+\\([^ \"]+\\)" gud-marker-acc)))
       (setq gud-jdb-classpath
            (gud-jdb-parse-classpath-string



reply via email to

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