GNU bug report logs -
#49739
28.0.50; byte-compiled pcase pattern match failure
Previous Next
Reported by: No Wayman <iarchivedmywholelife <at> gmail.com>
Date: Mon, 26 Jul 2021 03:35:02 UTC
Severity: normal
Found in version 28.0.50
Done: Mattias EngdegÄrd <mattiase <at> acm.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
No Wayman <iarchivedmywholelife <at> 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.
This bug report was last modified 3 years and 358 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.