diff options
| author | Jay Belanger | 2010-11-18 19:14:36 -0600 |
|---|---|---|
| committer | Jay Belanger | 2010-11-18 19:14:36 -0600 |
| commit | 1265829ec33f6d23787733a3f312984f4f268a33 (patch) | |
| tree | 4e97e83ec3b44852bfdb20420498163e101b4059 | |
| parent | 84dfc8a7faccf53d54231ab47a2dc237c80251fb (diff) | |
| download | emacs-1265829ec33f6d23787733a3f312984f4f268a33.tar.gz emacs-1265829ec33f6d23787733a3f312984f4f268a33.zip | |
calc.texi (TeX and LaTeX Language Modes, Predefined Units):
calc-units.el (math-build-units-table-buffer):
README: Mention that the TeX specific units won't use the `tex' prefix
in TeX mode.
calc-lang.el (math-variable-table): Don't use the `tex' prefix for
units in TeX mode.
| -rw-r--r-- | doc/misc/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/misc/calc.texi | 12 | ||||
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/calc/README | 3 | ||||
| -rw-r--r-- | lisp/calc/calc-lang.el | 10 | ||||
| -rw-r--r-- | lisp/calc/calc-units.el | 25 |
6 files changed, 54 insertions, 10 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index f9e55ffb5ee..d57df81befc 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-11-19 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc.texi (TeX and LaTeX Language Modes, Predefined Units): | ||
| 4 | Mention that the TeX specific units won't use the `tex' prefix | ||
| 5 | in TeX mode. | ||
| 6 | |||
| 1 | 2010-11-18 Katsumi Yamaoka <yamaoka@jpl.org> | 7 | 2010-11-18 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 8 | ||
| 3 | * gnus.texi (Misc Article): Document gnus-inhibit-images. | 9 | * gnus.texi (Misc Article): Document gnus-inhibit-images. |
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi index 9c30556ab78..58de84b8194 100644 --- a/doc/misc/calc.texi +++ b/doc/misc/calc.texi | |||
| @@ -14122,6 +14122,10 @@ but | |||
| 14122 | @texline @math{\sin(2 + x)}. | 14122 | @texline @math{\sin(2 + x)}. |
| 14123 | @infoline @expr{sin(2 + x)}. | 14123 | @infoline @expr{sin(2 + x)}. |
| 14124 | 14124 | ||
| 14125 | The @TeX{} specific unit names (@pxref{Predefined Units}) will not use | ||
| 14126 | the @samp{tex} prefix; the unit name for a @TeX{} point will be | ||
| 14127 | @samp{pt} instead of @samp{texpt}, for example. | ||
| 14128 | |||
| 14125 | Function and variable names not treated specially by @TeX{} and La@TeX{} | 14129 | Function and variable names not treated specially by @TeX{} and La@TeX{} |
| 14126 | are simply written out as-is, which will cause them to come out in | 14130 | are simply written out as-is, which will cause them to come out in |
| 14127 | italic letters in the printed document. If you invoke @kbd{d T} or | 14131 | italic letters in the printed document. If you invoke @kbd{d T} or |
| @@ -27990,6 +27994,14 @@ than the point used by @TeX{}), @code{texdd} (a Didot point), | |||
| 27990 | @code{texcc} (a Cicero) and @code{texsp} (a scaled @TeX{} point, | 27994 | @code{texcc} (a Cicero) and @code{texsp} (a scaled @TeX{} point, |
| 27991 | all dimensions representable in @TeX{} are multiples of this value). | 27995 | all dimensions representable in @TeX{} are multiples of this value). |
| 27992 | 27996 | ||
| 27997 | When Calc is using the @TeX{} or La@TeX{} language mode (@pxref{TeX | ||
| 27998 | and LaTeX Language Modes}), the @TeX{} specific unit names will not | ||
| 27999 | use the @samp{tex} prefix; the unit name for a @TeX{} point will be | ||
| 28000 | @samp{pt} instead of @samp{texpt}, for example. To avoid conflicts, | ||
| 28001 | the unit names for pint and parsec will simply be @samp{pint} and | ||
| 28002 | @samp{parsec} instead of @samp{pt} and @samp{pc}. | ||
| 28003 | |||
| 28004 | |||
| 27993 | The unit @code{e} stands for the elementary (electron) unit of charge; | 28005 | The unit @code{e} stands for the elementary (electron) unit of charge; |
| 27994 | because algebra command could mistake this for the special constant | 28006 | because algebra command could mistake this for the special constant |
| 27995 | @expr{e}, Calc provides the alternate unit name @code{ech} which is | 28007 | @expr{e}, Calc provides the alternate unit name @code{ech} which is |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9fa66ca8022..166f30c0574 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2010-11-19 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc/calc-units.el (math-build-units-table-buffer): | ||
| 4 | calc/README: Mention that the TeX specific units won't use the | ||
| 5 | `tex' prefix in TeX mode. | ||
| 6 | calc/calc-lang.el (math-variable-table): Don't use the `tex' | ||
| 7 | prefix for units in TeX mode. | ||
| 8 | |||
| 1 | 2010-11-18 Stefan Monnier <monnier@iro.umontreal.ca> | 9 | 2010-11-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 10 | ||
| 3 | * simple.el (kill-new, kill-append, kill-region): | 11 | * simple.el (kill-new, kill-append, kill-region): |
diff --git a/lisp/calc/README b/lisp/calc/README index cf3a697c5d7..b23666018e5 100644 --- a/lisp/calc/README +++ b/lisp/calc/README | |||
| @@ -74,6 +74,9 @@ Summary of changes to "Calc" | |||
| 74 | 74 | ||
| 75 | Emacs 24.1 | 75 | Emacs 24.1 |
| 76 | 76 | ||
| 77 | * Calc no longer uses the tex prefix for TeX specific unit | ||
| 78 | names when using TeX or LaTeX mode. | ||
| 79 | |||
| 77 | * Added option to highlight selections using faces. | 80 | * Added option to highlight selections using faces. |
| 78 | 81 | ||
| 79 | * Gave `calc-histogram' the option of using a vector to determine the bins. | 82 | * Gave `calc-histogram' the option of using a vector to determine the bins. |
diff --git a/lisp/calc/calc-lang.el b/lisp/calc/calc-lang.el index f461c47aafd..6c0a65f5567 100644 --- a/lisp/calc/calc-lang.el +++ b/lisp/calc/calc-lang.el | |||
| @@ -540,6 +540,16 @@ | |||
| 540 | ( \\Psi . var-Psi ) | 540 | ( \\Psi . var-Psi ) |
| 541 | ( \\omega . var-omega ) | 541 | ( \\omega . var-omega ) |
| 542 | ( \\Omega . var-Omega ) | 542 | ( \\Omega . var-Omega ) |
| 543 | ;; Units | ||
| 544 | ( pt . var-texpt ) | ||
| 545 | ( pc . var-texpc ) | ||
| 546 | ( bp . var-texbp ) | ||
| 547 | ( dd . var-texdd ) | ||
| 548 | ( cc . var-texcc ) | ||
| 549 | ( sp . var-texsp ) | ||
| 550 | ( pint . var-pt ) | ||
| 551 | ( parsec . var-pc) | ||
| 552 | |||
| 543 | ;; Others | 553 | ;; Others |
| 544 | ( \\ell . var-ell ) | 554 | ( \\ell . var-ell ) |
| 545 | ( \\infty . var-inf ) | 555 | ( \\infty . var-inf ) |
diff --git a/lisp/calc/calc-units.el b/lisp/calc/calc-units.el index a88e87dffbc..8fd1983ac6d 100644 --- a/lisp/calc/calc-units.el +++ b/lisp/calc/calc-units.el | |||
| @@ -57,23 +57,23 @@ | |||
| 57 | "149597870691 m (*)") | 57 | "149597870691 m (*)") |
| 58 | ;; (approx) NASA JPL (http://neo.jpl.nasa.gov/glossary/au.html) | 58 | ;; (approx) NASA JPL (http://neo.jpl.nasa.gov/glossary/au.html) |
| 59 | ( lyr "c yr" "Light Year" ) | 59 | ( lyr "c yr" "Light Year" ) |
| 60 | ( pc "3.0856775854*10^16 m" "Parsec" nil | 60 | ( pc "3.0856775854*10^16 m" "Parsec (**)" nil |
| 61 | "3.0856775854 10^16 m (*)") ;; (approx) ESUWM | 61 | "3.0856775854 10^16 m (*)") ;; (approx) ESUWM |
| 62 | ( nmi "1852 m" "Nautical Mile" ) | 62 | ( nmi "1852 m" "Nautical Mile" ) |
| 63 | ( fath "6 ft" "Fathom" ) | 63 | ( fath "6 ft" "Fathom" ) |
| 64 | ( fur "660 ft" "Furlong") | 64 | ( fur "660 ft" "Furlong") |
| 65 | ( mu "1 um" "Micron" ) | 65 | ( mu "1 um" "Micron" ) |
| 66 | ( mil "(1/1000) in" "Mil" ) | 66 | ( mil "(1/1000) in" "Mil" ) |
| 67 | ( point "(1/72) in" "Point (1/72 inch)" ) | 67 | ( point "(1/72) in" "Point (PostScript convention)" ) |
| 68 | ( Ang "10^(-10) m" "Angstrom" ) | 68 | ( Ang "10^(-10) m" "Angstrom" ) |
| 69 | ( mfi "mi+ft+in" "Miles + feet + inches" ) | 69 | ( mfi "mi+ft+in" "Miles + feet + inches" ) |
| 70 | ;; TeX lengths | 70 | ;; TeX lengths |
| 71 | ( texpt "(100/7227) in" "Point (TeX conventions)" ) | 71 | ( texpt "(100/7227) in" "Point (TeX convention) (**)" ) |
| 72 | ( texpc "12 texpt" "Pica" ) | 72 | ( texpc "12 texpt" "Pica (TeX convention) (**)" ) |
| 73 | ( texbp "point" "Big point (TeX conventions)" ) | 73 | ( texbp "point" "Big point (TeX convention) (**)" ) |
| 74 | ( texdd "(1238/1157) texpt" "Didot point" ) | 74 | ( texdd "(1238/1157) texpt" "Didot point (TeX convention) (**)" ) |
| 75 | ( texcc "12 texdd" "Cicero" ) | 75 | ( texcc "12 texdd" "Cicero (TeX convention) (**)" ) |
| 76 | ( texsp "(1/65536) texpt" "Scaled TeX point" ) | 76 | ( texsp "(1/65536) texpt" "Scaled TeX point (TeX convention) (**)" ) |
| 77 | 77 | ||
| 78 | ;; Area | 78 | ;; Area |
| 79 | ( hect "10000 m^2" "*Hectare" ) | 79 | ( hect "10000 m^2" "*Hectare" ) |
| @@ -86,7 +86,7 @@ | |||
| 86 | ( l "L" "Liter" ) | 86 | ( l "L" "Liter" ) |
| 87 | ( gal "4 qt" "US Gallon" ) | 87 | ( gal "4 qt" "US Gallon" ) |
| 88 | ( qt "2 pt" "Quart" ) | 88 | ( qt "2 pt" "Quart" ) |
| 89 | ( pt "2 cup" "Pint" ) | 89 | ( pt "2 cup" "Pint (**)" ) |
| 90 | ( cup "8 ozfl" "Cup" ) | 90 | ( cup "8 ozfl" "Cup" ) |
| 91 | ( ozfl "2 tbsp" "Fluid Ounce" ) | 91 | ( ozfl "2 tbsp" "Fluid Ounce" ) |
| 92 | ( floz "2 tbsp" "Fluid Ounce" ) | 92 | ( floz "2 tbsp" "Fluid Ounce" ) |
| @@ -1531,7 +1531,12 @@ If EXPR is nil, return nil." | |||
| 1531 | (indent-to 15) | 1531 | (indent-to 15) |
| 1532 | (insert " " (nth 2 u) "\n") | 1532 | (insert " " (nth 2 u) "\n") |
| 1533 | (while (eq (car (car (setq uptr (cdr uptr)))) 0))) | 1533 | (while (eq (car (car (setq uptr (cdr uptr)))) 0))) |
| 1534 | (insert "\n")) | 1534 | (insert "\n\n") |
| 1535 | (insert "(**) When in TeX or LaTeX display mode, the TeX specific unit\n" | ||
| 1536 | "names will not use the `tex' prefix; the unit name for a\n" | ||
| 1537 | "TeX point will be `pt' instead of `texpt', for example.\n" | ||
| 1538 | "To avoid conflicts, the unit names for pint and parsec will\n" | ||
| 1539 | "be `pint' and `parsec' instead of `pt' and `pc'.")) | ||
| 1535 | (view-mode) | 1540 | (view-mode) |
| 1536 | (message "Formatting units table...done")) | 1541 | (message "Formatting units table...done")) |
| 1537 | (setq math-units-table-buffer-valid t) | 1542 | (setq math-units-table-buffer-valid t) |