[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49739: 28.0.50; byte-compiled pcase pattern match failure
From: |
Michael Heerdegen |
Subject: |
bug#49739: 28.0.50; byte-compiled pcase pattern match failure |
Date: |
Tue, 27 Jul 2021 00:26:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
No Wayman <iarchivedmywholelife@gmail.com> 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.