summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-11-05 20:12:35 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2025-11-05 20:12:35 +0100
commit0149fa759b5951f8c531d2b6920028c00ad08bc7 (patch)
treea8751cff87ebf111f89f230c8a9df375acccaca2
parent98c375e6279c55c4e0c1a14df5ab8fbc0c8018d4 (diff)
Update docstring
-rw-r--r--cape.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/cape.el b/cape.el
index 4e8e150..4cf5c3e 100644
--- a/cape.el
+++ b/cape.el
@@ -1111,8 +1111,10 @@ This function can be used as an advice around an existing Capf."
;;;###autoload
(defun cape-wrap-sort (capf &optional sort)
- "Call CAPF and add SORT function.
-This function can be used as an advice around an existing Capf."
+ "Call CAPF and add SORT function as completion metadata.
+If the SORT argument is nil or not given, the completion UI will use
+its own default sorting algorithm. This function can be used as an
+advice around an existing Capf."
(cape-wrap-properties
capf
:display-sort-function sort