2

I am using pattern matching in Emacs Lisp with pcase. I would like to simplify the rx expressions I am using by binding common pattern with rx-let. However, it seems like if you use rx by itself the substitution works as expected. However, if rx is within pcase, the identifier cannot be resolved.

I would expect the following code to return t:

(rx-let ((custom-value "a"))
  (pcase "a" ((rx custom-value) t)))

However, this instead results in an error stating "Unknown rx symbol custom-value".

1 Answers1

2

That's bug#59814 which is fixed in Emacs 29.

phils
  • 48,657
  • 3
  • 76
  • 115