(newline)
(calc-edit-finish)))
+;; The variable calc-edit-disp-trail is local to calc-edit finish, but
+;; is used by calc-finish-selection-edit and calc-finish-stack-edit.
+(defvar calc-edit-disp-trail)
+
(defun calc-edit-finish (&optional keep)
"Finish calc-edit mode. Parse buffer contents and push them on the stack."
(interactive "P")
(original calc-original-buffer)
(return calc-return-buffer)
(one-window calc-one-window)
- (disp-trail calc-restore-trail))
+ (calc-edit-disp-trail calc-restore-trail))
(save-excursion
(when (or (null (buffer-name original))
(progn
(if keep
(bury-buffer buf)
(kill-buffer buf))
- (if disp-trail
+ (if calc-edit-disp-trail
(calc-wrapper
(calc-trail-display 1 t)))
(message "")))
(progn
(set num (car vals))
(calc-refresh-evaltos num))
- (if disp-trail
+ (if calc-edit-disp-trail
(calc-trail-display 1 t))
(and vals
(let ((calc-simplify-mode (if (eq last-command-char ?\C-j)