diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2025-03-24 01:47:31 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2025-03-24 01:47:31 +0100 |
| commit | 8daf9890ee65335a23eebc8919e9cfdd7c7249eb (patch) | |
| tree | 19eada39db01bbcc93bc7966c3ded0f469eeeca1 /lisp | |
| parent | 14b39ff70609a9f04915c09c7aa13b24a05da848 (diff) | |
transient--insert-suffix: Signal error if location is invalid
Closes #374.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/transient.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/transient.el b/lisp/transient.el index 165089f..91ad248 100644 --- a/lisp/transient.el +++ b/lisp/transient.el @@ -1455,14 +1455,14 @@ Intended for use in a group's `:setup-children' function." (setq suf (eval suf t)) (cond ((not mem) - (message "Cannot insert %S into %s; %s not found" - suffix prefix loc)) + (error "Cannot insert %S into %s; %s not found" + suffix prefix loc)) ((or (and (vectorp suffix) (not (vectorp elt))) (and (listp suffix) (vectorp elt)) (and (stringp suffix) (vectorp elt))) - (message "Cannot place %S into %s at %s; %s" - suffix prefix loc - "suffixes and groups cannot be siblings")) + (error "Cannot place %S into %s at %s; %s" + suffix prefix loc + "suffixes and groups cannot be siblings")) (t (when-let* (((not (eq keep-other 'always))) (bindingp (listp suf)) |
