aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/calc/calc-misc.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/calc/calc-misc.el b/lisp/calc/calc-misc.el
index c01d37e684..159b1ee317 100644
--- a/lisp/calc/calc-misc.el
+++ b/lisp/calc/calc-misc.el
@@ -130,9 +130,9 @@ Calc user interface as before (either M-# C or M-# K; initially M-# C)."
"Now using full screen for Calc"
"Now using partial screen for Calc"))))
-(defun calc-other-window ()
+(defun calc-other-window (&optional interactive)
"Invoke the Calculator in another window."
- (interactive)
+ (interactive "p")
(if (memq major-mode '(calc-mode calc-trail-mode))
(progn
(other-window 1)
@@ -141,7 +141,7 @@ Calc user interface as before (either M-# C or M-# K; initially M-# C)."
(if (get-buffer-window "*Calculator*")
(calc-quit)
(let ((win (selected-window)))
- (calc nil win (interactive-p))))))
+ (calc nil win interactive)))))
(defun another-calc ()
"Create another, independent Calculator buffer."