diff options
| author | Jay Belanger | 2004-11-19 22:17:25 +0000 |
|---|---|---|
| committer | Jay Belanger | 2004-11-19 22:17:25 +0000 |
| commit | 7fc684b3920b7b0f5e71a73065fa2c421fe0984c (patch) | |
| tree | 5f604d3c7bbe157cdc53b759cdfd5bd8d413093e | |
| parent | c85b00223d606cf1adf9d6fda81c469f86b47cbe (diff) | |
| download | emacs-7fc684b3920b7b0f5e71a73065fa2c421fe0984c.tar.gz emacs-7fc684b3920b7b0f5e71a73065fa2c421fe0984c.zip | |
(calc-edit-disp-trail): New variable.
(calc-edit-finish, calc-finish-stack-edit): Replace variable
disp-trail by declared variable.
| -rw-r--r-- | lisp/calc/calc-yank.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/calc/calc-yank.el b/lisp/calc/calc-yank.el index 6d9db84c369..eff391e81b8 100644 --- a/lisp/calc/calc-yank.el +++ b/lisp/calc/calc-yank.el | |||
| @@ -492,6 +492,10 @@ To cancel the edit, simply kill the *Calc Edit* buffer." | |||
| 492 | (newline) | 492 | (newline) |
| 493 | (calc-edit-finish))) | 493 | (calc-edit-finish))) |
| 494 | 494 | ||
| 495 | ;; The variable calc-edit-disp-trail is local to calc-edit finish, but | ||
| 496 | ;; is used by calc-finish-selection-edit and calc-finish-stack-edit. | ||
| 497 | (defvar calc-edit-disp-trail) | ||
| 498 | |||
| 495 | (defun calc-edit-finish (&optional keep) | 499 | (defun calc-edit-finish (&optional keep) |
| 496 | "Finish calc-edit mode. Parse buffer contents and push them on the stack." | 500 | "Finish calc-edit mode. Parse buffer contents and push them on the stack." |
| 497 | (interactive "P") | 501 | (interactive "P") |
| @@ -507,7 +511,7 @@ To cancel the edit, simply kill the *Calc Edit* buffer." | |||
| 507 | (original calc-original-buffer) | 511 | (original calc-original-buffer) |
| 508 | (return calc-return-buffer) | 512 | (return calc-return-buffer) |
| 509 | (one-window calc-one-window) | 513 | (one-window calc-one-window) |
| 510 | (disp-trail calc-restore-trail)) | 514 | (calc-edit-disp-trail calc-restore-trail)) |
| 511 | (save-excursion | 515 | (save-excursion |
| 512 | (when (or (null (buffer-name original)) | 516 | (when (or (null (buffer-name original)) |
| 513 | (progn | 517 | (progn |
| @@ -527,7 +531,7 @@ To cancel the edit, simply kill the *Calc Edit* buffer." | |||
| 527 | (if keep | 531 | (if keep |
| 528 | (bury-buffer buf) | 532 | (bury-buffer buf) |
| 529 | (kill-buffer buf)) | 533 | (kill-buffer buf)) |
| 530 | (if disp-trail | 534 | (if calc-edit-disp-trail |
| 531 | (calc-wrapper | 535 | (calc-wrapper |
| 532 | (calc-trail-display 1 t))) | 536 | (calc-trail-display 1 t))) |
| 533 | (message ""))) | 537 | (message ""))) |
| @@ -561,7 +565,7 @@ To cancel the edit, simply kill the *Calc Edit* buffer." | |||
| 561 | (progn | 565 | (progn |
| 562 | (set num (car vals)) | 566 | (set num (car vals)) |
| 563 | (calc-refresh-evaltos num)) | 567 | (calc-refresh-evaltos num)) |
| 564 | (if disp-trail | 568 | (if calc-edit-disp-trail |
| 565 | (calc-trail-display 1 t)) | 569 | (calc-trail-display 1 t)) |
| 566 | (and vals | 570 | (and vals |
| 567 | (let ((calc-simplify-mode (if (eq last-command-char ?\C-j) | 571 | (let ((calc-simplify-mode (if (eq last-command-char ?\C-j) |