summaryrefslogtreecommitdiff
path: root/lisp/calc/calc-lang.el
diff options
context:
space:
mode:
authorJay Belanger <jay.p.belanger@gmail.com>2005-01-31 09:08:34 +0000
committerJay Belanger <jay.p.belanger@gmail.com>2005-01-31 09:08:34 +0000
commit62b88263e7f87e259ca11d9715c5f24d65bc6eb5 (patch)
tree7675b52b2ba3a5d45f50b81de790f171bf39a1d2 /lisp/calc/calc-lang.el
parentca68df53df93ff64c4818d79d77280422c77dddc (diff)
downloademacs-62b88263e7f87e259ca11d9715c5f24d65bc6eb5.tar.gz
(math-latex-input-filter): Remove function.
Diffstat (limited to 'lisp/calc/calc-lang.el')
-rw-r--r--lisp/calc/calc-lang.el17
1 files changed, 1 insertions, 16 deletions
diff --git a/lisp/calc/calc-lang.el b/lisp/calc/calc-lang.el
index c691e2bcc2b..48612f4cfd5 100644
--- a/lisp/calc/calc-lang.el
+++ b/lisp/calc/calc-lang.el
@@ -557,22 +557,7 @@
(math-compose-expr (nth 2 a) -1)
"}"))
-(defun math-latex-input-filter (str) ; allow parsing of 123\,456\,789.
- (while (string-match "[0-9]\\\\,[0-9]" str)
- (setq str (concat (substring str 0 (1+ (match-beginning 0)))
- (substring str (1- (match-end 0))))))
- (while (string-match "\\\\begin{\\(small\\|[bp]\\)?matrix}" str)
- (setq str (concat (substring str 0 (match-beginning 0))
- "\\matrix{"
- (substring str (match-end 0)))))
- (while (string-match "\\\\end{\\(small\\|[bp]\\)?matrix}" str)
- (setq str (concat (substring str 0 (match-beginning 0))
- "}"
- (substring str (match-end 0)))))
-
- str)
-
-(put 'latex 'math-input-filter 'math-latex-input-filter)
+(put 'latex 'math-input-filter 'math-tex-input-filter)
(defun calc-eqn-language (n)
(interactive "P")