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

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

[elpa] externals/denote b72257ad7d 28/44: Make denote-sequence--pad thro


From: ELPA Syncer
Subject: [elpa] externals/denote b72257ad7d 28/44: Make denote-sequence--pad throw an error if the type is unknown
Date: Wed, 1 Jan 2025 03:57:49 -0500 (EST)

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

    Make denote-sequence--pad throw an error if the type is unknown
    
    I thought about the scenario of generating a descendant, but it does
    not seem to make sense workflow-wise. The user should be more
    specific, such as to create the child of a sequence.
---
 denote-sequence.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/denote-sequence.el b/denote-sequence.el
index d3ce74105d..e4338b50a4 100644
--- a/denote-sequence.el
+++ b/denote-sequence.el
@@ -128,10 +128,7 @@ TYPE is a symbol among `denote-sequence-types'."
                   ('parent (car split))
                   ('sibling split)
                   ('child (car (nreverse split)))
-                  ;; FIXME 2024-12-30: This is the last descendant. Do
-                  ;; we define a new `descendant' type or do we error
-                  ;; here?
-                  (_ (butlast split)))
+                  (_ (error "The type `%s' is not among 
`denote-sequence-types'" type)))
               sequence)))
     (if (listp s)
         (combine-and-quote-strings



reply via email to

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