]> code.delx.au - gnu-emacs/commitdiff
(User Defined Units): Mention how to enter optional display string.
authorJay Belanger <jay.p.belanger@gmail.com>
Tue, 30 Sep 2008 02:45:50 +0000 (02:45 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Tue, 30 Sep 2008 02:45:50 +0000 (02:45 +0000)
doc/misc/ChangeLog
doc/misc/calc.texi
lisp/ChangeLog

index 63d67c665990e5e961fbee1bbaddde33cccc436c..29165252fe9d4a610a659d7e501d9ecd1c56eba5 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-30  Jay Belanger  <jay.p.belanger@gmail.com>
+
+       * calc.texi (User Defined Units): Mention how to enter optional display
+       string.
+
 2008-09-25  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * message.texi (Sending Variables): Fixed variable documentation to
index be38321f5cfeefafb3800a151ebe738aca75b93c..504fe5ea729cc760d86634cff1e838ab4938d072 100644 (file)
@@ -27877,7 +27877,11 @@ typing @kbd{u d rod} defines the new unit @samp{rod} to be equivalent to
 16.5 feet.  The unit conversion and simplification commands will now
 treat @code{rod} just like any other unit of length.  You will also be
 prompted for an optional English description of the unit, which will
-appear in the Units Table.
+appear in the Units Table.  If you wish the definition of this unit to
+be displayed in a special way in the Units Table buffer (such as with an
+asterisk to indicate an approximate value), then you can call this
+command with an argument, @kbd{C-u u d}; you will then also be prompted
+for a string that will be used to display the definition.
 
 @kindex u u
 @pindex calc-undefine-unit
index 1ab3018a9948220c45db94334f2529e0dbe59c04..d77a8b9f99484c14f6c353c2c3cae6288639c8f3 100644 (file)
@@ -1,3 +1,13 @@
+2008-09-30  Jay Belanger  <jay.p.belanger@gmail.com>
+
+       * calc/calc-units.el (math-standard-units): Add entries used to
+       display the the values in the units buffer.
+       (math-build-units-table):  Add entries to the units table to be used
+       to display the values in the units buffer.
+       (math-build-units-table-buffer):  Use the display entry of the units
+       table when non-nil.
+       (calc-define-unit): Add option to enter display value of unit.
+
 2008-09-29  Michael Albinus  <michael.albinus@gmx.de>
 
        * vc-hooks.el (vc-file-clearprops): Check, that FILE is a string.