summaryrefslogtreecommitdiff
path: root/lisp/calc/calc-embed.el
diff options
context:
space:
mode:
authorJay Belanger <jay.p.belanger@gmail.com>2005-01-02 17:07:16 +0000
committerJay Belanger <jay.p.belanger@gmail.com>2005-01-02 17:07:16 +0000
commit4091a1e2f1b6521ae24d7a40266726438a90c704 (patch)
tree982803a20b83353e4d4acf3cd4d43de5a0392673 /lisp/calc/calc-embed.el
parent519c0d007401464610626a407812488a57fa7640 (diff)
downloademacs-4091a1e2f1b6521ae24d7a40266726438a90c704.tar.gz
(calc-embedded-finish-edit): Use calc-edit-top for the beginning of
the edited object.
Diffstat (limited to 'lisp/calc/calc-embed.el')
-rw-r--r--lisp/calc/calc-embed.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/calc/calc-embed.el b/lisp/calc/calc-embed.el
index 067d233bf4a..cdab562dc21 100644
--- a/lisp/calc/calc-embed.el
+++ b/lisp/calc/calc-embed.el
@@ -308,10 +308,10 @@ This is not required to be present for user-written mode annotations.")
(calc-show-edit-buffer))
(defvar calc-original-buffer)
-
+(defvar calc-edit-top)
(defun calc-embedded-finish-edit (info)
(let ((buf (current-buffer))
- (str (buffer-substring (point) (point-max)))
+ (str (buffer-substring calc-edit-top (point-max)))
(start (point))
pos)
(switch-to-buffer calc-original-buffer)