Subject: 31; Deprecate minibuffer-completing-file-name

From: Daniel Mendler <[email-masked]>
Date: Tue, 28 Jan 2025 15:28:28 +0100

I propose to deprecate `minibuffer-completing-file-name', since the
completion category as part of the completion metadata acts as
generalization for this variable. Similarly `minibuffer-completing-symbols'
has been deprecated and removed a while ago.

Instead of checking `minibuffer-completing-file-name' one can use
(minibuffer-category-p 'file) given the following predicate function:

(defun minibuffer-category-p (cat)
  (eq (completion-metadata-get
       (completion-metadata
        (buffer-substring-no-properties
         (minibuffer-prompt-end) (point))
        minibuffer-completion-table
        minibuffer-completion-predicate)
       'category)
      cat))