From 1d24f6185810900396ed8e98e70f68cdb66af5e9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 14 Apr 2003 10:09:35 +0000 Subject: [PATCH] (last-sexp-toggle-display): At end of buffer, run the global binding of the same key. --- lisp/emacs-lisp/lisp-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 6c084c409df..fe38ab5a804 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -426,7 +426,8 @@ alternative printed representations that can be displayed." ;; But when the end of the line is also the end of the buffer, ;; it does get called. For consistency, pretend it was not called. (if (eobp) - (newline arg) + (let ((prefix-arg arg)) + (command-execute (lookup-key global-map (this-single-command-keys)))) (let ((value (get-text-property (point) 'printed-value))) (when value (let ((beg (or (previous-single-property-change (min (point-max) (1+ (point))) -- 2.39.2