aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2010-05-14 18:46:11 -0500
committerJay Belanger2010-05-14 18:46:11 -0500
commit78ed0efce4b9a55b2c6ed47742bfc33588627df2 (patch)
tree3cd18f9943aef5d9802025aeaf3874d39cc33ee5
parent5ccaa35996841a6b28de93e346f57a3ff7f6f640 (diff)
downloademacs-78ed0efce4b9a55b2c6ed47742bfc33588627df2.tar.gz
emacs-78ed0efce4b9a55b2c6ed47742bfc33588627df2.zip
calc-bin.el (math-format-twos-complement): Group digits when appropriate.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/calc/calc-bin.el2
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a2c7deece59..a32d261b9e7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-05-14 Jay Belanger <jay.p.belanger@gmail.com>
2
3 * calc-bin.el (math-format-twos-complement): Group digits when
4 appropriate.
5
12010-05-14 Stefan Monnier <monnier@iro.umontreal.ca> 62010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * progmodes/sh-script.el (sh-mode-default-syntax-table): Remove. 8 * progmodes/sh-script.el (sh-mode-default-syntax-table): Remove.
diff --git a/lisp/calc/calc-bin.el b/lisp/calc/calc-bin.el
index 0e31fbe681c..4ab698ea640 100644
--- a/lisp/calc/calc-bin.el
+++ b/lisp/calc/calc-bin.el
@@ -845,6 +845,8 @@ the size of a Calc bignum digit.")
845 (len (length num))) 845 (len (length num)))
846 (if (< len digs) 846 (if (< len digs)
847 (setq num (concat (make-string (- digs len) ?0) num)))) 847 (setq num (concat (make-string (- digs len) ?0) num))))
848 (when calc-group-digits
849 (setq num (math-group-float num)))
848 (concat 850 (concat
849 (number-to-string calc-number-radix) 851 (number-to-string calc-number-radix)
850 "##" 852 "##"