cross-reference.
* calc/calc-units.el (calc-convert-units): Fix the way that default
new units are stored.
+2013-03-08 Jay Belanger <jay.p.belanger@gmail.com>
+
+ * calc.texi (Basic Operations on Units): Fix
+ cross-reference.
+
2013-03-07 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-faq.texi (FAQ 3-11): Now Gnus supports POP3 UIDL.
be simplified to 12, then @kbd{u c} will still prompt for both old
units and new units. You can ignore the prompt for old units with
@key{RET}, or turn off the prompt by setting the customizable variable
-@code{calc-allow-units-as-numbers} to @code{nil}.
-@pxref{Customizing Calc}) Assuming the old and new units you give are
+@code{calc-allow-units-as-numbers} to @code{nil};
+@pxref{Customizing Calc}.) Assuming the old and new units you give are
consistent with each other, the result also will not contain any
units. For example, @kbd{@w{u c} cm @key{RET} in @key{RET}} converts
the number 2 on the stack to 5.08.
+2013-03-08 Jay Belanger <jay.p.belanger@gmail.com>
+
+ * calc/calc-units.el (calc-convert-units): Fix the way that default
+ new units are stored.
+
2013-03-07 Karl Fogel <kfogel@red-bean.com>
* bookmark.el: Define a face to highlight bookmark names in
(comp (eq (car-safe units) '+)))
(unless (or unew std)
(error "No units specified"))
- (let ((res
- (if std
- (math-simplify-units (math-to-standard-units expr (nth 1 std)))
- (math-convert-units expr units (and uoldname (not (equal uoldname "1")))))))
- (math-put-default-units res (if comp units))
+ (let* ((noold (and uoldname (not (equal uoldname "1"))))
+ (res
+ (if std
+ (math-simplify-units (math-to-standard-units expr (nth 1 std)))
+ (math-convert-units expr units noold))))
+ (unless std
+ (math-put-default-units (if noold units res) (if comp units)))
(calc-enter-result 1 "cvun" res))))))
(defun calc-autorange-units (arg)