I'm trying to get pcase to match against a let-bound variable. However, I can't seem to get pcase to recognize the variable correctly.
See this minimal example:
(let ((a 1)) (pcase 2 (a 7))) => 7 ;; as predicted by the docs
(let ((a 2)) (pcase 2 (`a 7))) => nil ;; ???
How can I get pcase to return 7 iff a = 2?
(An alternative to pcase with similar features would also suffice.)