From 0149fa759b5951f8c531d2b6920028c00ad08bc7 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Wed, 5 Nov 2025 20:12:35 +0100 Subject: Update docstring --- cape.el | 6 ++++-- 1 file 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 -- cgit v1.0