]> git.eshelyaron.com Git - emacs.git/commitdiff
(calc-inverse, calc-hyperbolic): Add more checks.
authorJay Belanger <jay.p.belanger@gmail.com>
Wed, 1 Dec 2004 21:03:24 +0000 (21:03 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Wed, 1 Dec 2004 21:03:24 +0000 (21:03 +0000)
lisp/calc/calc-ext.el

index 3347d8f24a78e7bc42acf8b780b49a129cdcb409..d308a391a059d478a3faf66a92c07ffd1b62bfd4 100644 (file)
@@ -1318,7 +1318,9 @@ calc-kill calc-kill-region calc-yank))))
 
 (defun calc-inverse (&optional n)
   (interactive "P")
-  (let* ((hyp-flag (if (eq major-mode 'calc-keypad-mode)
+  (let* ((hyp-flag (if (or
+                        (eq major-mode 'calc-keypad-mode)
+                        (eq major-mode 'calc-trail-mode))
                        (with-current-buffer calc-main-buffer
                          calc-hyperbolic-flag)
                      calc-hyperbolic-flag))
@@ -1393,7 +1395,9 @@ calc-kill calc-kill-region calc-yank))))
 
 (defun calc-hyperbolic (&optional n)
   (interactive "P")
-  (let* ((inv-flag (if (eq major-mode 'calc-keypad-mode)
+  (let* ((inv-flag (if (or
+                        (eq major-mode 'calc-keypad-mode)
+                        (eq major-mode 'calc-trail-mode))
                        (with-current-buffer calc-main-buffer
                          calc-inverse-flag)
                      calc-inverse-flag))