branch: externals/denote
commit 80901d46049dbd9b26cdc2460e0156eac9c78c57
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Use denote-sequence-split in two cases
---
 denote-sequence.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/denote-sequence.el b/denote-sequence.el
index e4338b50a4..b6984977bc 100644
--- a/denote-sequence.el
+++ b/denote-sequence.el
@@ -155,7 +155,7 @@ With optional SEQUENCES consider only those, otherwise 
operate on the
 return value of `denote-sequence-get-all-sequences'."
   (if-let* ((all (or sequences (denote-sequence-get-all-sequences))))
       (let* ((largest (denote-sequence--get-largest all 'parent))
-             (first-component (car (split-string largest "=")))
+             (first-component (car (denote-sequence-split largest)))
              (current-number (string-to-number first-component)))
         (number-to-string (+ current-number 1)))
     "1"))
@@ -208,7 +208,7 @@ function `denote-sequence-get-all-sequences-with-prefix'."
                            (denote-sequence--get-largest all 'sibling)
                          (denote-sequence--get-largest all 'parent))))
         (if children-p
-            (let* ((components (split-string largest "="))
+            (let* ((components (denote-sequence-split largest))
                    (butlast (butlast components))
                    (last-component (car (nreverse components)))
                    (current-number (string-to-number last-component))

Reply via email to