Subject: bug#59575: 29.0.50; add-log-current-defun-header-regexp matches Windows drive letter

From: Juanma Barranquero <[email-masked]>
Date: Sun, 27 Nov 2022 12:22:00 +0100

On Sun, Nov 27, 2022 at 12:11 PM Juanma Barranquero <[email-masked]>
wrote:

> That should be changed to
>
>    (cl-ecase xref-file-name-display
>      (abs group)
>      (nondirectory
> -     (if (string-match-p "\\`~?/" group)
> +     (if (string-match-p "\\`\\(~\\|[A-Za-z]:\\)?/" group)
>           (file-name-nondirectory group)
>         group))
>      (project-relative
>
> or something similar.
>

Silly me, that should just use `file-name-absolute-p'.

OK to fix this, regardless of what's decided for the original bug?