# HG changeset patch # User Jay Belanger # Date 1104685545 0 # Node ID bef2fe94c4a5b7f896b0e4efa3d6f15889ab9f3c # Parent c80fa806ab33d3ca363fef296a17a2bdee5474eb (calc-finish-selection-edit): Use calc-edit-top for the beginning of the edited object. diff -r c80fa806ab33 -r bef2fe94c4a5 lisp/calc/calc-sel.el --- a/lisp/calc/calc-sel.el Sun Jan 02 17:04:37 2005 +0000 +++ b/lisp/calc/calc-sel.el Sun Jan 02 17:05:45 2005 +0000 @@ -677,10 +677,11 @@ ;; The variable calc-edit-disp-trail is local to calc-edit-finish, ;; in calc-yank.el. (defvar calc-edit-disp-trail) +(defvar calc-edit-top) (defun calc-finish-selection-edit (num sel reselect) (let ((buf (current-buffer)) - (str (buffer-substring (point) (point-max))) + (str (buffer-substring calc-edit-top (point-max))) (start (point))) (switch-to-buffer calc-original-buffer) (let ((val (math-read-expr str)))