summaryrefslogtreecommitdiff
path: root/lisp/calc
diff options
context:
space:
mode:
authorJay Belanger <jay.p.belanger@gmail.com>2012-11-21 19:47:04 -0600
committerJay Belanger <jay.p.belanger@gmail.com>2012-11-21 19:47:04 -0600
commit723da6aa83d8308623ed56aff31a4171fae029ee (patch)
tree4a20c23762f4790797f1a96f5b5618cb45df9d44 /lisp/calc
parentb6096e850526fa1c2202dfc27f580bae94a22d9f (diff)
downloademacs-723da6aa83d8308623ed56aff31a4171fae029ee.tar.gz
* doc/misc/calc.texi (Date Forms): Mention the customizable
Gregorian-Julian switch. (Customizing Calc): Mention the variable `calc-gregorian-switch'. * calc/calc.el (calc-gregorian-switch): Refresh the Calc buffer after the variable is changed.
Diffstat (limited to 'lisp/calc')
-rw-r--r--lisp/calc/README13
-rw-r--r--lisp/calc/calc.el3
2 files changed, 12 insertions, 4 deletions
diff --git a/lisp/calc/README b/lisp/calc/README
index 25d1a5e9b58..638b482a60a 100644
--- a/lisp/calc/README
+++ b/lisp/calc/README
@@ -70,11 +70,18 @@ opinions.
Summary of changes to "Calc"
------- -- ------- -- ----
+Emacs 24.4
+
+* The date forms use the Gregorian calendar for all dates.
+ (Previously they were a combination of Julian and Gregorian
+ dates.) This can be configured with the customizable variable
+ `calc-gregorian-switch'.
+
Emacs 24.3
-Algebraic simplification mode is now the default.
-To restrict to the limited simplifications given by the former
-default simplification mode, use `m I'.
+* Algebraic simplification mode is now the default.
+ To restrict to the limited simplifications given by the former
+ default simplification mode, use `m I'.
Emacs 24.1
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index aeca45ebf26..99e40768467 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -508,7 +508,8 @@ the United States."
(integer :tag "Day")))
:set (lambda (symbol value)
(set-default symbol value)
- (setq math-format-date-cache nil)))
+ (setq math-format-date-cache nil)
+ (calc-refresh)))
(defface calc-nonselected-face
'((t :inherit shadow