changeset 70253:36e7fd0f02f6

(calc-embedded-make-info): Use `math-read-expr' when `math-read-big-expr' doesn't work.
author Jay Belanger <jay.p.belanger@gmail.com>
date Thu, 27 Apr 2006 18:38:37 +0000
parents 8b0a765eb64a
children 3732dd943c16
files lisp/calc/calc-embed.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calc/calc-embed.el	Thu Apr 27 13:51:57 2006 +0000
+++ b/lisp/calc/calc-embed.el	Thu Apr 27 18:38:37 2006 +0000
@@ -932,7 +932,9 @@
 			     (substring str pref-len suff-pos)))
 		(if (string-match "[^ \t\n]" str)
 		    (setq pref-len 0
-			  val (math-read-big-expr str))
+			  val (condition-case nil
+                                  (math-read-big-expr str)
+                                (error (math-read-expr str))))
 		  (setq val nil))))
 	    (if (eq (car-safe val) 'error)
 		(setq val (list 'error