In SPC h d P, print :toggle expression using Elisp syntax

This prints out an expression in valid Lisp syntax, so that, e.g.,
strings in the expression are quoted.
This commit is contained in:
Aaron L. Zeng 2021-03-17 17:32:15 -04:00 committed by duianto
parent 8f1b6b1e04
commit 454e729ef0
1 changed files with 1 additions and 1 deletions

View File

@ -993,7 +993,7 @@ a new object."
(princ (if (cfgl-package-toggled-p pkg t) "on" "off"))
(princ " because the following expression evaluates to ")
(princ (if (cfgl-package-toggled-p pkg t) "t:\n" "nil:\n"))
(princ (oref pkg :toggle))
(prin1 (oref pkg :toggle))
(princ "\n"))
(when (oref pkg :requires)
(princ "\nThis package requires the following packages: ")