diff options
| author | Jay Belanger | 2005-01-02 07:22:44 +0000 |
|---|---|---|
| committer | Jay Belanger | 2005-01-02 07:22:44 +0000 |
| commit | f405d1f5e5f2efdc1253e2e64c6b25ebec9ac1c5 (patch) | |
| tree | 6595b599e1381f156d3df1a70254efb104c93097 | |
| parent | c5757d2e57183da7abeae8a934dfd9bec0c56300 (diff) | |
| download | emacs-f405d1f5e5f2efdc1253e2e64c6b25ebec9ac1c5.tar.gz emacs-f405d1f5e5f2efdc1253e2e64c6b25ebec9ac1c5.zip | |
(calc-edit-mode): Add a spacer line to the header.
(calc-edit-finish, calc-show-edit-buffer): Handle the spacer line in
the header.
| -rw-r--r-- | lisp/calc/calc-yank.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/calc/calc-yank.el b/lisp/calc/calc-yank.el index 4c7d41e0f76..ccb9a19ae51 100644 --- a/lisp/calc/calc-yank.el +++ b/lisp/calc/calc-yank.el | |||
| @@ -467,7 +467,7 @@ To cancel the edit, simply kill the *Calc Edit* buffer." | |||
| 467 | (insert (or title title "Calc Edit Mode. ") | 467 | (insert (or title title "Calc Edit Mode. ") |
| 468 | "Press `C-c C-c'" | 468 | "Press `C-c C-c'" |
| 469 | (if allow-ret "" " or RET") | 469 | (if allow-ret "" " or RET") |
| 470 | " to finish, `C-x k RET' to cancel.\n"))) | 470 | " to finish, `C-x k RET' to cancel.\n\n"))) |
| 471 | (put 'calc-edit-mode 'mode-class 'special) | 471 | (put 'calc-edit-mode 'mode-class 'special) |
| 472 | 472 | ||
| 473 | (defun calc-show-edit-buffer () | 473 | (defun calc-show-edit-buffer () |
| @@ -485,7 +485,7 @@ To cancel the edit, simply kill the *Calc Edit* buffer." | |||
| 485 | (delete-window win)))) | 485 | (delete-window win)))) |
| 486 | (set-buffer-modified-p nil) | 486 | (set-buffer-modified-p nil) |
| 487 | (goto-char (point-min)) | 487 | (goto-char (point-min)) |
| 488 | (forward-line 1))) | 488 | (forward-line 2))) |
| 489 | 489 | ||
| 490 | (defun calc-edit-return () | 490 | (defun calc-edit-return () |
| 491 | (interactive) | 491 | (interactive) |
| @@ -522,6 +522,8 @@ To cancel the edit, simply kill the *Calc Edit* buffer." | |||
| 522 | (goto-char (point-min)) | 522 | (goto-char (point-min)) |
| 523 | (when (looking-at "Calc Edit\\|Editing ") | 523 | (when (looking-at "Calc Edit\\|Editing ") |
| 524 | (forward-line 1)) | 524 | (forward-line 1)) |
| 525 | (if (looking-at "^ *$") | ||
| 526 | (forward-line 1)) | ||
| 525 | (if (buffer-modified-p) | 527 | (if (buffer-modified-p) |
| 526 | (eval calc-edit-handler)) | 528 | (eval calc-edit-handler)) |
| 527 | (if one-window | 529 | (if one-window |