Subject: Re: bug#49739: 28.0.50; byte-compiled pcase pattern match failure

From: Michael Heerdegen <[email-masked]>
Date: Tue, 27 Jul 2021 00:26:30 +0200

No Wayman <[email-masked]> writes:

> (progn
>  (require 'org-capture)
>  (org-capture-fill-template "%^t"))
>
> This should prompt the user for a time, instead we hit the `_` case in
> one of the pcase calls in `org-capture-fill-template' despite the
> valid template string. This results in the error:
>
> "unrecognized template placeholder: %^t"

That works for me.  Are there any other requirements, a natively
compiled Emacs or so?

Or maybe "make bootstrap" (i.e. building Emacs from scratch) helps?

If not, are you able to provide a test case?  AFAIU the `pcase' call
causing the trouble fails to compare strings correctly.

If you compile and load a function like

(defun test (string)
  (pcase string
    ("a" 1)
    (_ nil)))

does that work as expected?

TIA,

Michael.