summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2026-01-22 09:11:38 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2026-01-22 09:12:44 +0100
commit9210e998c945378153235eeee8b7e5bb8dd7e784 (patch)
treec9cce8824c3ca89dda89fecca3e993376c1e8fd3
parentaeb845c3f005b183221faffbf8db9a5bddef7ad5 (diff)
Formatting
-rw-r--r--cape.el22
1 files changed, 11 insertions, 11 deletions
diff --git a/cape.el b/cape.el
index 607e87d..b0c6326 100644
--- a/cape.el
+++ b/cape.el
@@ -250,24 +250,24 @@ BODY is the wrapping expression."
Some metadata properties of the table must be overridden, since they
take precedence over the properties specified as part of the Capf
result. This function is used by `cape-wrap-properties'."
- (if-let* ((alist (cl-loop
- for (x . y) in
- '((:category . category)
- (:display-sort-function . display-sort-function)
- (:cycle-sort-function . cycle-sort-function)
- (:annotation-function . annotation-function)
- (:affixation-function . affixation-function))
- if (plist-member properties x)
- collect `(,y . ,(plist-get properties x)))))
+ (if-let* ((md (cl-loop
+ for (x . y) in
+ '((:category . category)
+ (:display-sort-function . display-sort-function)
+ (:cycle-sort-function . cycle-sort-function)
+ (:annotation-function . annotation-function)
+ (:affixation-function . affixation-function))
+ if (plist-member properties x)
+ collect `(,y . ,(plist-get properties x)))))
(lambda (str pred action)
;; We cannot use `completion-table-with-metadata' since the new
;; metadata should be merged with the one of the underlying table.
(if (eq action 'metadata)
- `(metadata ,@alist
+ `(metadata ,@md
,@(and (functionp table)
(cdr (funcall table str pred action))))
(complete-with-action action table str pred)))
- table))
+ table))
(defvar cape--debug-length 5
"Length of printed lists in `cape--debug-print'.")