diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2026-01-22 10:07:04 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2026-01-22 10:07:04 +0100 |
| commit | 2238ba4844a25e70e1dc42cc1e1a2905cb6b778e (patch) | |
| tree | 5f45daa79fcdc89fdb52aba7ecae5bce02c6e1a8 /cape.el | |
| parent | 8aabfdbe9ff651527cd82d99d51be00bb35c9fd5 (diff) | |
Simplify cape--table-drop-properties
Diffstat (limited to 'cape.el')
| -rw-r--r-- | cape.el | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -251,13 +251,8 @@ PROPERTIES is a properties plist. The corresponding keys are removed from the completion metadata alist. This function is used by `cape-wrap-properties'." (if-let* (((functionp table)) - (keys (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))) + (keys (cl-loop for (k _) on properties by #'cddr + collect (intern (substring (symbol-name k) 1))))) (lambda (str pred action) (if (eq action 'metadata) (let ((md (copy-sequence (funcall table str pred action)))) |
