branch: externals/denote
commit b72257ad7d0c036b62871528f1a9dfe3a2de49e5
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@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