diff options
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 5b348169e0f..e0030ea766a 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -424,7 +424,9 @@ alternative printed representations that can be displayed." | |||
| 424 | (interactive) | 424 | (interactive) |
| 425 | (let ((value (get-text-property (point) 'printed-value))) | 425 | (let ((value (get-text-property (point) 'printed-value))) |
| 426 | (when value | 426 | (when value |
| 427 | (let ((beg (or (previous-single-property-change (point) 'printed-value) (point))) | 427 | (let ((beg (or (previous-single-property-change (min (point-max) (1+ (point))) |
| 428 | 'printed-value) | ||
| 429 | (point))) | ||
| 428 | (end (or (next-single-char-property-change (point) 'printed-value) (point))) | 430 | (end (or (next-single-char-property-change (point) 'printed-value) (point))) |
| 429 | (standard-output (current-buffer)) | 431 | (standard-output (current-buffer)) |
| 430 | (point (point))) | 432 | (point (point))) |
| @@ -436,7 +438,6 @@ alternative printed representations that can be displayed." | |||
| 436 | (nth 1 value)) | 438 | (nth 1 value)) |
| 437 | (goto-char (min (point-max) point)))))) | 439 | (goto-char (min (point-max) point)))))) |
| 438 | 440 | ||
| 439 | |||
| 440 | (defun eval-last-sexp-1 (eval-last-sexp-arg-internal) | 441 | (defun eval-last-sexp-1 (eval-last-sexp-arg-internal) |
| 441 | "Evaluate sexp before point; print value in minibuffer. | 442 | "Evaluate sexp before point; print value in minibuffer. |
| 442 | With argument, print output into current buffer." | 443 | With argument, print output into current buffer." |