changeset 59307:bef2fe94c4a5

(calc-finish-selection-edit): Use calc-edit-top for the beginning of the edited object.
author Jay Belanger <jay.p.belanger@gmail.com>
date Sun, 02 Jan 2005 17:05:45 +0000
parents c80fa806ab33
children 8f487d424820
files lisp/calc/calc-sel.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)))