# HG changeset patch # User Richard M. Stallman # Date 1050314975 0 # Node ID 1e9e1fa3548b4f3266ba561f6c6d110db7cab4dc # Parent e36ce541f43990af3378151cbd506e2cb0cd87d2 (last-sexp-toggle-display): At end of buffer, run the global binding of the same key. diff -r e36ce541f439 -r 1e9e1fa3548b lisp/emacs-lisp/lisp-mode.el --- 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)))