(math-to-percentsigns): Change placeholder for percent signs.
authorJay Belanger <jay.p.belanger@gmail.com>
Thu, 27 Dec 2007 17:32:59 +0000 (17:32 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Thu, 27 Dec 2007 17:32:59 +0000 (17:32 +0000)
lisp/calc/calccomp.el

index 0f913ea..2b81363 100644 (file)
     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))