# HG changeset patch # User Jay Belanger # Date 1198776779 0 # Node ID f18b45437f897d7b8cfb61c72aa6ae7a423a2002 # Parent a5a588610e41f6b0d9947680532c4e690d492680 (math-to-percentsigns): Change placeholder for percent signs. diff -r a5a588610e41 -r f18b45437f89 lisp/calc/calccomp.el --- a/lisp/calc/calccomp.el Thu Dec 27 16:17:17 2007 +0000 +++ b/lisp/calc/calccomp.el Thu Dec 27 17:32:59 2007 +0000 @@ -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))