aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorJoakim Verona2013-02-11 00:03:42 +0100
committerJoakim Verona2013-02-11 00:03:42 +0100
commit77f4834db1299b571b1fb3dfb120e5e50eec7cb1 (patch)
treeafe4035739ce5bd25799ed469f67939431ae91a3 /doc/misc
parent33cc2cd4d53f845b7d1e681dbbe8166acdb652c3 (diff)
parenta4ba3963957c289a913b32bca9531aadcc3f377f (diff)
downloademacs-77f4834db1299b571b1fb3dfb120e5e50eec7cb1.tar.gz
emacs-77f4834db1299b571b1fb3dfb120e5e50eec7cb1.zip
auto upstream
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/calc.texi36
2 files changed, 32 insertions, 9 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index c0a454d31b5..11ff3700da4 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
12013-02-09 Jay Belanger <jay.p.belanger@gmail.com>
2
3 * calc.texi (Basic Operations on Units):
4 (Customizing Calc): Mention the variable `calc-allow-units-as-numbers'.
5
12013-02-08 Aidan Gauland <aidalgol@no8wireless.co.nz> 62013-02-08 Aidan Gauland <aidalgol@no8wireless.co.nz>
2 7
3 * eshell.texi: Fill most of the missing sections. 8 * eshell.texi: Fill most of the missing sections.
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi
index a5514867a99..da018acffe9 100644
--- a/doc/misc/calc.texi
+++ b/doc/misc/calc.texi
@@ -27866,11 +27866,6 @@ acres per meter-second.) Remainder units are expressed in terms of
27866``fundamental'' units like @samp{m} and @samp{s}, regardless of the 27866``fundamental'' units like @samp{m} and @samp{s}, regardless of the
27867input units. 27867input units.
27868 27868
27869If you want to disallow using inconsistent units, you can set the customizable variable
27870@code{calc-ensure-consistent-units} to @code{t} (@pxref{Customizing Calc}). In this case,
27871if you request units which are inconsistent with the original units, you will be warned about
27872it and no conversion will occur.
27873
27874One special exception is that if you specify a single unit name, and 27869One special exception is that if you specify a single unit name, and
27875a compatible unit appears somewhere in the units expression, then 27870a compatible unit appears somewhere in the units expression, then
27876that compatible unit will be converted to the new unit and the 27871that compatible unit will be converted to the new unit and the
@@ -27880,6 +27875,12 @@ change the @samp{s} to @samp{ms} to get @samp{9.8e-4 cm/ms^2}.
27880The ``remainder unit'' @samp{cm} is left alone rather than being 27875The ``remainder unit'' @samp{cm} is left alone rather than being
27881changed to the base unit @samp{m}. 27876changed to the base unit @samp{m}.
27882 27877
27878If you want to disallow using inconsistent units, you can set the
27879customizable variable @code{calc-ensure-consistent-units} to @code{t}
27880(@pxref{Customizing Calc}). In this case, if you request units which
27881are inconsistent with the original units, you will be warned about it
27882and no conversion will occur.
27883
27883You can use explicit unit conversion instead of the @kbd{u s} command 27884You can use explicit unit conversion instead of the @kbd{u s} command
27884to gain more control over the units of the result of an expression. 27885to gain more control over the units of the result of an expression.
27885For example, given @samp{5 m + 23 mm}, you can type @kbd{u c m} or 27886For example, given @samp{5 m + 23 mm}, you can type @kbd{u c m} or
@@ -27912,10 +27913,16 @@ Composite units are expanded as if by @kbd{a x}, so that
27912 27913
27913If the value on the stack does not contain any units, @kbd{u c} will 27914If the value on the stack does not contain any units, @kbd{u c} will
27914prompt first for the old units which this value should be considered 27915prompt first for the old units which this value should be considered
27915to have, then for the new units. Assuming the old and new units you 27916to have, then for the new units. (If the value on the stack can be
27916give are consistent with each other, the result also will not contain 27917simplified so that it doesn't contain any units, like @samp{ft/in} can
27917any units. For example, @kbd{@w{u c} cm @key{RET} in @key{RET}} 27918be simplified to 12, then @kbd{u c} will still prompt for both old
27918converts the number 2 on the stack to 5.08. 27919units and new units. You can ignore the prompt for old units with
27920@key{RET}, or turn off the prompt by setting the customizable variable
27921@code{calc-allow-units-as-numbers} to @code{nil}.
27922@pxref{Customizing Calc}) Assuming the old and new units you give are
27923consistent with each other, the result also will not contain any
27924units. For example, @kbd{@w{u c} cm @key{RET} in @key{RET}} converts
27925the number 2 on the stack to 5.08.
27919 27926
27920@kindex u b 27927@kindex u b
27921@pindex calc-base-units 27928@pindex calc-base-units
@@ -35694,6 +35701,17 @@ have different dimensions. The default value of @code{calc-ensure-consistent-uni
35694is @code{nil}. 35701is @code{nil}.
35695@end defvar 35702@end defvar
35696 35703
35704@defvar calc-allow-units-as-numbers
35705When converting units, the variable @code{calc-allow-units-as-numbers}
35706determines whether or not values which can be simplified so that
35707they don't contain units (such as @samp{ft/in} can be simplified to 12)
35708can be regarded as not containing units. If
35709@code{calc-allow-units-as-numbers} is non-@code{nil}, then @kbd{u c}
35710will prompt for both old units and new units when converting an expression
35711like @samp{ft/in}, otherwise @kbd{u c} will only prompt for the new units.
35712The default value of @code{calc-allow-units-as-numbers} is @code{t}.
35713@end defvar
35714
35697@defvar calc-undo-length 35715@defvar calc-undo-length
35698The variable @code{calc-undo-length} determines the number of undo 35716The variable @code{calc-undo-length} determines the number of undo
35699steps that Calc will keep track of when @code{calc-quit} is called. 35717steps that Calc will keep track of when @code{calc-quit} is called.