summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-04-13 10:02:29 +0200
committerBastien Guerry <bzg@altern.org>2013-04-13 10:02:29 +0200
commit9c141cfd8c0f0ca429730ddd395623cded47daab (patch)
tree51a86b35038ca7d8b03a9d8cf308202247e9c808
parent56bf3d789146fcd3c9f82d875de28c394fe593a0 (diff)
downloadorg-mode-9c141cfd8c0f0ca429730ddd395623cded47daab.tar.gz
org.el (org-uniquify-alist): Improve docstring
* org.el (org-uniquify-alist): Improve docstring.
-rw-r--r--lisp/org.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/org.el b/lisp/org.el
index cf5c9a9..5bb008c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -21598,14 +21598,16 @@ for the search purpose."
(let ((res (copy-seq list))) (delete-dups res)))
(defun org-uniquify-alist (alist)
- "Merge duplicate elements of ALIST.
+ "Merge elements of ALIST with the same key.
For example, in this alist:
\(org-uniquify-alist '((a 1) (b 2) (a 3)))
=> '((a 1 3) (b 2))
-merge (a 1) and (a 3) into (a 1 3) and return the new alist."
+merge (a 1) and (a 3) into (a 1 3).
+
+The function returns the new ALIST."
(let (rtn)
(mapc
(lambda (e)