Add FIXME about the group-function breaking the completion highlight of match visible words

I cannot tell why this is happening. Will need to investigate further.
I thought it might have to do with 'denote-retrieve-filename-title'
changing the match data. But the problem persists even if I put a
regular string in its case which is also found in the completion
candidates I am testing it against.
This commit is contained in:
Protesilaos Stavrou 2025-12-16 17:54:52 +02:00
parent badafe9782
commit 09a382fc46
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -1473,6 +1473,8 @@ there.")
(defun denote-file-prompt-group (file transform)
"Retun group of FILE if TRANSFORM is non-nil, per `completion-metadata'."
(cond
;; FIXME 2025-12-16: Why do we not get highlights of matched
;; visible words? It works if I just return FILE.
(transform (or (denote-retrieve-filename-title file) file))
((file-name-directory file))
((file-name-extension file))