]> git.eshelyaron.com Git - emacs.git/commitdiff
(calc-finish-selection-edit): Use calc-edit-top for the beginning of
authorJay Belanger <jay.p.belanger@gmail.com>
Sun, 2 Jan 2005 17:05:45 +0000 (17:05 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Sun, 2 Jan 2005 17:05:45 +0000 (17:05 +0000)
the edited object.

lisp/calc/calc-sel.el

index 7b45814f1e753a1f6749945f2d255b3d07ce8fed..4ae0df5d3bab3b776d5b1f8dd34f77efdb7aba66 100644 (file)
 ;; 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)))