mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 18:41:25 -08:00
* lisp/emacs-lisp/pp.el (pp-macroexpand-expression): Use macroexpand-1.
* lisp/progmodes/elisp-mode.el (emacs-lisp-macroexpand): Idem. Fixes: debbugs:18821
This commit is contained in:
parent
ee17a97bea
commit
4a48e97cf9
4 changed files with 10 additions and 4 deletions
|
|
@ -137,7 +137,7 @@ Also add the value to the front of the list in the variable `values'."
|
|||
"Macroexpand EXPRESSION and pretty-print its value."
|
||||
(interactive
|
||||
(list (read--expression "Macroexpand: ")))
|
||||
(pp-display-expression (macroexpand expression) "*Pp Macroexpand Output*"))
|
||||
(pp-display-expression (macroexpand-1 expression) "*Pp Macroexpand Output*"))
|
||||
|
||||
(defun pp-last-sexp ()
|
||||
"Read sexp before point. Ignores leading comment characters."
|
||||
|
|
@ -175,7 +175,7 @@ With argument, pretty-print output into current buffer.
|
|||
Ignores leading comment characters."
|
||||
(interactive "P")
|
||||
(if arg
|
||||
(insert (pp-to-string (macroexpand (pp-last-sexp))))
|
||||
(insert (pp-to-string (macroexpand-1 (pp-last-sexp))))
|
||||
(pp-macroexpand-expression (pp-last-sexp))))
|
||||
|
||||
;;; Test cases for quote
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue