aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/calc/calccomp.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/calc/calccomp.el b/lisp/calc/calccomp.el
index 0f913ea0cb..2b81363af4 100644
--- a/lisp/calc/calccomp.el
+++ b/lisp/calc/calccomp.el
@@ -945,10 +945,8 @@
x))
(defun math-to-percentsigns (x)
- (if (string-match "^I#'" x)
- (setq x (concat "%" (substring x 3))))
- (if (string-match "\\`\\(.*\\)'\\(.*\\)\\'" x)
- (math-to-percentsigns
+ (if (string-match "\\`\\(.*\\)o'o\\(.*\\)\\'" x)
+ (math-to-underscores
(concat (math-match-substring x 1) "%" (math-match-substring x 2)))
x))