changeset 50585:1e9e1fa3548b

(last-sexp-toggle-display): At end of buffer, run the global binding of the same key.
author Richard M. Stallman <rms@gnu.org>
date Mon, 14 Apr 2003 10:09:35 +0000
parents e36ce541f439
children 3bbd33912c1d
files lisp/emacs-lisp/lisp-mode.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/lisp-mode.el	Mon Apr 14 10:06:55 2003 +0000
+++ b/lisp/emacs-lisp/lisp-mode.el	Mon Apr 14 10:09:35 2003 +0000
@@ -426,7 +426,8 @@
   ;; 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)))