* lisp/emacs-lisp/comp.el (comp-prettyformat-insn): Fix (bug#61917)
This commit is contained in:
parent
8a8a994cfa
commit
4a7e657389
1 changed files with 6 additions and 4 deletions
|
@ -1137,10 +1137,12 @@ with `message'. Otherwise, log with `comp-log-to-buffer'."
|
|||
(comp-cstr-to-type-spec mvar)))
|
||||
|
||||
(defun comp-prettyformat-insn (insn)
|
||||
(cl-typecase insn
|
||||
(comp-mvar (comp-prettyformat-mvar insn))
|
||||
(atom (prin1-to-string insn))
|
||||
(cons (concat "(" (mapconcat #'comp-prettyformat-insn insn " ") ")"))))
|
||||
(cond
|
||||
((comp-mvar-p insn)
|
||||
(comp-prettyformat-mvar insn))
|
||||
((proper-list-p insn)
|
||||
(concat "(" (mapconcat #'comp-prettyformat-insn insn " ") ")"))
|
||||
(t (prin1-to-string insn))))
|
||||
|
||||
(defun comp-log-func (func verbosity)
|
||||
"Log function FUNC at VERBOSITY.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue