(insert (or title title "Calc Edit Mode. ")
"Press `C-c C-c'"
(if allow-ret "" " or RET")
- " to finish, `C-x k RET' to cancel.\n")))
+ " to finish, `C-x k RET' to cancel.\n\n")))
(put 'calc-edit-mode 'mode-class 'special)
(defun calc-show-edit-buffer ()
(delete-window win))))
(set-buffer-modified-p nil)
(goto-char (point-min))
- (forward-line 1)))
+ (forward-line 2)))
(defun calc-edit-return ()
(interactive)
(goto-char (point-min))
(when (looking-at "Calc Edit\\|Editing ")
(forward-line 1))
+ (if (looking-at "^ *$")
+ (forward-line 1))
(if (buffer-modified-p)
(eval calc-edit-handler))
(if one-window