From: Jay Belanger Date: Thu, 27 Dec 2007 17:32:59 +0000 (+0000) Subject: (math-to-percentsigns): Change placeholder for percent signs. X-Git-Tag: emacs-pretest-23.0.90~8808 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=88cf3347895cd2af986ab73c77b96abccfb153c9;p=emacs.git (math-to-percentsigns): Change placeholder for percent signs. --- diff --git a/lisp/calc/calccomp.el b/lisp/calc/calccomp.el index 0f913ea0cb4..2b81363af47 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))