From: Jay Belanger Date: Sun, 2 Jan 2005 17:05:45 +0000 (+0000) Subject: (calc-finish-selection-edit): Use calc-edit-top for the beginning of X-Git-Tag: ttn-vms-21-2-B4~2966 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=519c0d007401464610626a407812488a57fa7640;p=emacs.git (calc-finish-selection-edit): Use calc-edit-top for the beginning of the edited object. --- diff --git a/lisp/calc/calc-sel.el b/lisp/calc/calc-sel.el index 7b45814f1e7..4ae0df5d3ba 100644 --- a/lisp/calc/calc-sel.el +++ b/lisp/calc/calc-sel.el @@ -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)))