# HG changeset patch # User Richard M. Stallman # Date 1054121272 0 # Node ID 0e0d3c3dca7f11066be727cc5f20056b5b868a42 # Parent ba101d1e9521cc38df6bc78fa3d7e9cff6cf91b5 (last-sexp-toggle-display): Undo previous change (don't check for eob). Widen at the beginning. diff -r ba101d1e9521 -r 0e0d3c3dca7f lisp/emacs-lisp/lisp-mode.el --- a/lisp/emacs-lisp/lisp-mode.el Wed May 28 11:26:45 2003 +0000 +++ b/lisp/emacs-lisp/lisp-mode.el Wed May 28 11:27:52 2003 +0000 @@ -428,9 +428,8 @@ ;; Normally this command won't be called at end of line. ;; 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) - (let ((prefix-arg arg)) - (command-execute (lookup-key global-map (this-single-command-keys)))) + (save-restriction + (widen) (let ((value (get-text-property (point) 'printed-value))) (when value (let ((beg (or (previous-single-property-change (min (point-max) (1+ (point)))