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

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

[elpa] externals/xr 414c936524 4/4: Don't use `match-string` as a boolea


From: ELPA Syncer
Subject: [elpa] externals/xr 414c936524 4/4: Don't use `match-string` as a boolean
Date: Sat, 9 Sep 2023 09:59:17 -0400 (EDT)

branch: externals/xr
commit 414c93652458fca4b83bb32d24a9767dfd797e86
Author: Mattias EngdegÄrd <mattiase@acm.org>
Commit: Mattias EngdegÄrd <mattiase@acm.org>

    Don't use `match-string` as a boolean
---
 xr.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xr.el b/xr.el
index d0832eaa64..649a3f55dd 100644
--- a/xr.el
+++ b/xr.el
@@ -802,13 +802,13 @@ like (* (* X) ... (* X))."
                                         (opt (group ",")
                                              (opt (group (one-or-more digit))))
                                         "\\}"))
-                        (let ((lower (if (match-string 1)
+                        (let ((lower (if (match-beginning 1)
                                          (string-to-number (match-string 1))
                                        0))
                               (comma (match-string 2))
-                              (upper (and (match-string 3)
+                              (upper (and (match-beginning 3)
                                           (string-to-number (match-string 
3)))))
-                          (unless (or (match-beginning 1) (match-string 3))
+                          (unless (or (match-beginning 1) (match-beginning 3))
                             (xr--report warnings (- (match-beginning 0) 2)
                                         (if comma
                                             "Uncounted repetition"



reply via email to

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