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

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

[elpa] externals/denote 4997e6b007 02/11: Rename denote-sequence-get-seq


From: ELPA Syncer
Subject: [elpa] externals/denote 4997e6b007 02/11: Rename denote-sequence-get-sequences-with-max-depth to include "all"
Date: Sun, 12 Jan 2025 06:58:05 -0500 (EST)

branch: externals/denote
commit 4997e6b007e9c9beb30472d7111025ec97e8f286
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Rename denote-sequence-get-sequences-with-max-depth to include "all"
    
    This is to keep it consistent with all the other similar functions.
---
 denote-sequence.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/denote-sequence.el b/denote-sequence.el
index 575b094633..ca4c3fe5e3 100644
--- a/denote-sequence.el
+++ b/denote-sequence.el
@@ -336,7 +336,7 @@ With optional SEQUENCES operate on those, else use the 
return value of
      (string-prefix-p sequence string))
    (or sequences (denote-sequence-get-all-sequences))))
 
-(defun denote-sequence-get-sequences-with-max-depth (depth &optional sequences)
+(defun denote-sequence-get-all-sequences-with-max-depth (depth &optional 
sequences)
   "Get sequences up to DEPTH (inclusive).
 With optional SEQUENCES operate on those, else use the return value of
 `denote-sequence-get-all-sequences'."
@@ -422,7 +422,7 @@ function `denote-sequence-get-all-sequences-with-prefix'."
           (format "%s%s" (car all-unfiltered) start-child)
         (if-let* ((all-schemeless (cond
                                    ((= (length all-unfiltered) 1) 
all-unfiltered)
-                                   
((denote-sequence-get-sequences-with-max-depth depth all-unfiltered))
+                                   
((denote-sequence-get-all-sequences-with-max-depth depth all-unfiltered))
                                    (t all-unfiltered)))
                   (all (denote-sequence-filter-scheme all-schemeless))
                   (largest (denote-sequence--get-largest all 'child)))
@@ -458,7 +458,7 @@ function `denote-sequence-get-all-sequences-with-prefix'."
                                    (denote-sequence--get-prefix-for-siblings 
sequence)
                                    sequences)
                                 (denote-sequence-get-all-sequences)))
-              (all-schemeless (denote-sequence-get-sequences-with-max-depth 
depth all-unfiltered))
+              (all-schemeless 
(denote-sequence-get-all-sequences-with-max-depth depth all-unfiltered))
               (all (denote-sequence-filter-scheme all-schemeless))
               ((member sequence all))
               (largest (if children-p



reply via email to

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