[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eval-expression of arithmetic with prefix arg is less useful due to
From: |
Richard Stallman |
Subject: |
Re: eval-expression of arithmetic with prefix arg is less useful due to lisp verbosity |
Date: |
Wed, 10 Jan 2007 18:06:05 -0500 |
This change:
**** Typing C-x C-e twice prints the value of the integer result
in additional formats (octal, hexadecimal, character) specified
by the new function `eval-expression-print-format'. The same
function also defines the result format for `eval-expression' (M-:),
`eval-print-last-sexp' (C-j) and some edebug evaluation functions.
is awful for C-u M-:
It makes it much harder to make keyboard macros that manipulate numbers in
buffers since every time they insert the result they insert this garbage in
the buffer.
Does this change do what you want? Does anyone have an argument
against it?
*** simple.el 05 Jan 2007 15:24:46 -0500 1.840
--- simple.el 10 Jan 2007 15:28:14 -0500
***************
*** 1079,1085 ****
(if eval-expression-insert-value
(with-no-warnings
(let ((standard-output (current-buffer)))
! (eval-last-sexp-print-value (car values))))
(prog1
(prin1 (car values) t)
(let ((str (eval-expression-print-format (car values))))
--- 1079,1085 ----
(if eval-expression-insert-value
(with-no-warnings
(let ((standard-output (current-buffer)))
! (prin1 (car values))))
(prog1
(prin1 (car values) t)
(let ((str (eval-expression-print-format (car values))))