branch: externals/cape
commit 2e2cfb788b7d448e7f23510203211b279ae1e064
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Add comment regarding metadata merging
---
 cape.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cape.el b/cape.el
index c2cd78baaf..6105366ddf 100644
--- a/cape.el
+++ b/cape.el
@@ -261,6 +261,8 @@ precedence over the properties specified as part of the 
Capf result."
                         (and aff `((affixation-function . ,aff))))))
     (if alist
         (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
                          ,@(and (functionp table)

Reply via email to