]> git.eshelyaron.com Git - emacs.git/commitdiff
(last-sexp-toggle-display): At end of buffer, run the global binding
authorRichard M. Stallman <rms@gnu.org>
Mon, 14 Apr 2003 10:09:35 +0000 (10:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 14 Apr 2003 10:09:35 +0000 (10:09 +0000)
of the same key.

lisp/emacs-lisp/lisp-mode.el

index 6c084c409df617169cf0f0f065bf4c48b875c36d..fe38ab5a8042f0357720dc7cd6242c305fa9ce1b 100644 (file)
@@ -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)))