From 519c0d007401464610626a407812488a57fa7640 Mon Sep 17 00:00:00 2001 From: Jay Belanger Date: Sun, 2 Jan 2005 17:05:45 +0000 Subject: (calc-finish-selection-edit): Use calc-edit-top for the beginning of the edited object. --- lisp/calc/calc-sel.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/calc/calc-sel.el b/lisp/calc/calc-sel.el index 7b45814f1e..4ae0df5d3b 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))) -- cgit v1.2.3