Function: cape--table-drop-metadata

cape--table-drop-metadata is a natively compiled function defined in cape.el.

Signature

(cape--table-drop-metadata TABLE KEYS)

Documentation

Create completion TABLE without metadata KEYS.

Source Code

;; Defined in /nix/store/nxaggkd0bn9kr2xfg9hyw77q51q20r8y-emacs-packages-deps/share/emacs/site-lisp/elpa/cape-20260927.2347/cape.el
(defun cape--table-drop-metadata (table keys)
  "Create completion TABLE without metadata KEYS."
  (if (functionp table)
      (lambda (str pred action)
        (if (eq action 'metadata)
            (when-let* ((md (copy-sequence (funcall table str pred action))))
              (dolist (k keys) (setq md (assq-delete-all k md)))
              md)
          (complete-with-action action table str pred)))
    table))