]> git.eshelyaron.com Git - emacs.git/commit
Improve pp-emacs-lisp-code backquote form printing
authorMichael Heerdegen <michael_heerdegen@web.de>
Sun, 18 Feb 2024 00:55:54 +0000 (01:55 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Mar 2024 09:28:50 +0000 (10:28 +0100)
commit1187735ab7226a3f3ba5346a57587274f7e88359
tree99566e95e08e5abe9fa4f4f20d44f6a1f66345ec
parent0590a8b38454d563d294ea199813fdf0d5c8fd2b
Improve pp-emacs-lisp-code backquote form printing

* lisp/emacs-lisp/pp.el (pp--quoted-or-unquoted-form-p): New helper
function.
(pp--insert-lisp): Take care of quoted, backquoted and
unquoted expressions; print using an recursive call.
(pp--format-list): Exclude more cases from printing as a function call
by default.  Print lists whose second-last element is an (un)quoting
symbol using dotted list syntax; e.g. (a b . ,c) instead of (a b \, c).

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