]> git.eshelyaron.com Git - emacs.git/commit
Refactor lisp eval result printing
authorNoam Postavsky <npostavs@gmail.com>
Mon, 24 Apr 2017 02:21:42 +0000 (22:21 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Fri, 19 May 2017 22:16:15 +0000 (18:16 -0400)
commit267be4bdc28564a99f45da29e84eb98838117b50
tree3816b74e945cb1a17a1f4c8ad5e25e4abb0e8206
parentc1c8b67246c4314b302cca2ac43f13a0baba4c16
Refactor lisp eval result printing

* lisp/simple.el (eval-expression-print-format): Don't check
`standard-output' or `current-prefix-arg'.
(eval-expression-get-print-arguments): New function, centralizes
decision about how to print results of `eval-expression' and
`eval-last-sexp'.
(eval-expression):
* lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp-print-value):
Use it.
lisp/progmodes/elisp-mode.el
lisp/simple.el
test/lisp/progmodes/elisp-mode-tests.el
test/lisp/simple-tests.el