[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 5c8cb83f11 1/3: Fix helm-append-at-nth docstring
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm 5c8cb83f11 1/3: Fix helm-append-at-nth docstring |
Date: |
Thu, 16 Feb 2023 07:59:27 -0500 (EST) |
branch: elpa/helm
commit 5c8cb83f1111d6a555a8c137588d748f4a741eb6
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Fix helm-append-at-nth docstring
---
helm-lib.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/helm-lib.el b/helm-lib.el
index 7a3e893b46..55706c3de8 100644
--- a/helm-lib.el
+++ b/helm-lib.el
@@ -842,16 +842,19 @@ When INDEX is 0 or negative, ELM is added at beginning of
SEQ.
Examples:
- (helm-append-at-nth \\='(a b c d) \\='z 2)
- =>(a b z c d)
(helm-append-at-nth \\='(a b c d) \\='(z) 2)
=>(a b z c d)
+
(helm-append-at-nth \\='(a b c d) \\='((x . 1) (y . 2)) 2)
=>(a b (x . 1) (y . 2) c d)
-NOTE: This function uses `append' internally, so ELM is expected to be a list
to
-be appended to SEQ, however for convenience ELM can be an atom or a cons cell,
-it will be wrapped inside a list automatically."
+ But this is not working:
+ (helm-append-at-nth \\='(a b c d) \\='(x . 1) 2)
+ =>Wrong type argument: listp, 1
+
+NOTE: This function uses `append' internally, so ELM is expected
+to be a list to be appended to SEQ, even if for convenience an
+atom is supported as ELM value."
(setq index (min (max index 0) (length seq))
elm (helm-mklist elm))
(if (zerop index)