]> git.eshelyaron.com Git - emacs.git/commit
Don't try to pretty-print non-lists as binding list
authorMichael Heerdegen <michael_heerdegen@web.de>
Sun, 12 May 2024 17:58:14 +0000 (19:58 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 27 May 2024 20:27:37 +0000 (22:27 +0200)
commit17f472d1dbb4d50f2977255c6d5e0c2f84ae11e0
treee0e99a655216af7c60c984d57e62ec2ea7bdbceb
parent6554170fedae1d27d3ebf2a519082f05360e85bd
Don't try to pretty-print non-lists as binding list

* lisp/emacs-lisp/pp.el (pp--format-definition): Ensure that what we try
to print as a list of bindings has an appropriate format.  This avoids
raising an error for SEXPs like (let X Y) inside `pcase' forms where our
heuristic expects a binding list in the X position.

(cherry picked from commit 3580dc155c3c9f48fb1b7855b4d858eec3948dfb)
lisp/emacs-lisp/pp.el