aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2010-09-18 12:23:12 -0500
committerJay Belanger2010-09-18 12:23:12 -0500
commitc2a845b50432e9d6b5fdfb53dab420193056ceb9 (patch)
treebaf1dbc59f645da8045ae168943d16804e634ad0
parentf5632fb6c2392305e3a6f5231d219d5a72363734 (diff)
downloademacs-c2a845b50432e9d6b5fdfb53dab420193056ceb9.tar.gz
emacs-c2a845b50432e9d6b5fdfb53dab420193056ceb9.zip
calc-prog.el (calc-read-parse-table-part): Don't "fix" the empty
string when it follows a repeated or optional pattern.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/calc/calc-prog.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0914fa82d87..11b76ccc18f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-09-18 Jay Belanger <jay.p.belanger@gmail.com>
2
3 * calc/calc-prog.el (calc-read-parse-table-part): Don't "fix" the
4 empty string when it follows a repeated or optional pattern.
5
12010-09-18 Stefan Monnier <monnier@iro.umontreal.ca> 62010-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * indent.el (indent-according-to-mode): Apply syntax-propertize. 8 * indent.el (indent-according-to-mode): Apply syntax-propertize.
diff --git a/lisp/calc/calc-prog.el b/lisp/calc/calc-prog.el
index 5e4adace91e..91017627699 100644
--- a/lisp/calc/calc-prog.el
+++ b/lisp/calc/calc-prog.el
@@ -627,7 +627,8 @@
627 (error "Separator not allowed with { ... }?")) 627 (error "Separator not allowed with { ... }?"))
628 (if (string-match "\\`\"" sep) 628 (if (string-match "\\`\"" sep)
629 (setq sep (read-from-string sep))) 629 (setq sep (read-from-string sep)))
630 (setq sep (calc-fix-token-name sep)) 630 (if (> (length sep) 0)
631 (setq sep (calc-fix-token-name sep)))
631 (setq part (nconc part 632 (setq part (nconc part
632 (list (list sym p 633 (list (list sym p
633 (and (> (length sep) 0) 634 (and (> (length sep) 0)