aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2011-03-16 21:25:36 -0500
committerJay Belanger2011-03-16 21:25:36 -0500
commit580b66d801d9f9d8a7484c00e047b04c20ebe0d6 (patch)
tree38dd62b55853d16290f5376c4741a5d841fcd205
parentd71990a1e4ff251bffa6453772c1e93f84059f5d (diff)
downloademacs-580b66d801d9f9d8a7484c00e047b04c20ebe0d6.tar.gz
emacs-580b66d801d9f9d8a7484c00e047b04c20ebe0d6.zip
* lisp/calc-units.el (calcFunc-lupquant): Rename from
`calcFunc-pquant' (fixing previous commit). (calcFunc-lufquant): Rename from `calcFunc-fquant' (fixing previous commit). * lisp/calc/calc-ext.el (calc-init-extensions): Update the names of the functions being autoloaded.
-rw-r--r--doc/misc/calc.texi18
-rw-r--r--lisp/calc/calc-ext.el2
-rw-r--r--lisp/calc/calc-units.el12
3 files changed, 16 insertions, 16 deletions
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi
index d708bb47c0e..f732eff5690 100644
--- a/doc/misc/calc.texi
+++ b/doc/misc/calc.texi
@@ -28238,17 +28238,17 @@ capital @kbd{O} prefix is used.
28238 28238
28239@kindex l q 28239@kindex l q
28240@pindex calc-lu-quant 28240@pindex calc-lu-quant
28241@tindex pquant 28241@tindex lupquant
28242@tindex fquant 28242@tindex lufquant
28243The @kbd{l q} (@code{calc-lu-quant}) [@code{pquant}] 28243The @kbd{l q} (@code{calc-lu-quant}) [@code{lupquant}]
28244command computes the power quantity corresponding to a given number of 28244command computes the power quantity corresponding to a given number of
28245logarithmic units. With the capital @kbd{O} prefix, @kbd{O l q}, the 28245logarithmic units. With the capital @kbd{O} prefix, @kbd{O l q}, the
28246reference level will be read from the top of the stack. (In an 28246reference level will be read from the top of the stack. (In an
28247algebraic formula, @code{pquant} can be given an optional second 28247algebraic formula, @code{lupquant} can be given an optional second
28248argument which will be used for the reference level.) For example, 28248argument which will be used for the reference level.) For example,
28249@code{20 dB @key{RET} l q} will return @code{100 mW}; 28249@code{20 dB @key{RET} l q} will return @code{100 mW};
28250@code{20 dB @key{RET} 4 W @key{RET} O l q} will return @code{400 W}. 28250@code{20 dB @key{RET} 4 W @key{RET} O l q} will return @code{400 W}.
28251The @kbd{H l q} [@code{fquant}] command behaves like @kbd{l q} but 28251The @kbd{H l q} [@code{lufquant}] command behaves like @kbd{l q} but
28252computes field quantities instead of power quantities. 28252computes field quantities instead of power quantities.
28253 28253
28254@kindex l d 28254@kindex l d
@@ -36222,10 +36222,10 @@ keystrokes are not listed in this summary.
36222@r{ a b@: O l n @: @: @:nppower@:(a,b)} 36222@r{ a b@: O l n @: @: @:nppower@:(a,b)}
36223@r{ a@: H l n @: @: @:npfield@:(a)} 36223@r{ a@: H l n @: @: @:npfield@:(a)}
36224@r{ a b@: O H l n @: @: @:npfield@:(a,b)} 36224@r{ a b@: O H l n @: @: @:npfield@:(a,b)}
36225@r{ a@: l q @: @: @:pquant@:(a)} 36225@r{ a@: l q @: @: @:lupquant@:(a)}
36226@r{ a b@: O l q @: @: @:pquant@:(a,b)} 36226@r{ a b@: O l q @: @: @:lupquant@:(a,b)}
36227@r{ a@: H l q @: @: @:fquant@:(a)} 36227@r{ a@: H l q @: @: @:lufquant@:(a)}
36228@r{ a b@: O H l q @: @: @:fquant@:(a,b)} 36228@r{ a b@: O H l q @: @: @:lufquant@:(a,b)}
36229@r{ a@: l s @: @: @:spn@:(a)} 36229@r{ a@: l s @: @: @:spn@:(a)}
36230@r{ a@: l m @: @: @:midi@:(a)} 36230@r{ a@: l m @: @: @:midi@:(a)}
36231@r{ a@: l f @: @: @:freq@:(a)} 36231@r{ a@: l f @: @: @:freq@:(a)}
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el
index 57e7eabd1f9..9ea773fbb98 100644
--- a/lisp/calc/calc-ext.el
+++ b/lisp/calc/calc-ext.el
@@ -945,7 +945,7 @@ calcFunc-pclean calcFunc-pfloat calcFunc-pfrac)
945 945
946 ("calc-units" calcFunc-usimplify calcFunc-lufadd calcFunc-lupadd 946 ("calc-units" calcFunc-usimplify calcFunc-lufadd calcFunc-lupadd
947calcFunc-lufsub calcFunc-lupsub calcFunc-lufmul calcFunc-lupmul 947calcFunc-lufsub calcFunc-lupsub calcFunc-lufmul calcFunc-lupmul
948calcFunc-lufdiv calcFunc-lupdiv calcFunc-fquant calcFunc-pquant 948calcFunc-lufdiv calcFunc-lupdiv calcFunc-lufquant calcFunc-lupquant
949calcFunc-dbfield calcFunc-dbpower calcFunc-npfield 949calcFunc-dbfield calcFunc-dbpower calcFunc-npfield
950calcFunc-nppower calcFunc-spn calcFunc-midi calcFunc-freq 950calcFunc-nppower calcFunc-spn calcFunc-midi calcFunc-freq
951math-build-units-table math-build-units-table-buffer 951math-build-units-table math-build-units-table-buffer
diff --git a/lisp/calc/calc-units.el b/lisp/calc/calc-units.el
index a74cfb60c8d..43cb5828e85 100644
--- a/lisp/calc/calc-units.el
+++ b/lisp/calc/calc-units.el
@@ -1780,12 +1780,12 @@ In symbolic mode, return the list (^ a b)."
1780(defvar calc-lu-field-reference) 1780(defvar calc-lu-field-reference)
1781(defvar calc-lu-power-reference) 1781(defvar calc-lu-power-reference)
1782 1782
1783(defun calcFunc-fquant (val &optional ref) 1783(defun calcFunc-lufquant (val &optional ref)
1784 (unless ref 1784 (unless ref
1785 (setq ref (math-read-expr calc-lu-field-reference))) 1785 (setq ref (math-read-expr calc-lu-field-reference)))
1786 (math-logunits-quant val ref nil)) 1786 (math-logunits-quant val ref nil))
1787 1787
1788(defun calcFunc-pquant (val &optional ref) 1788(defun calcFunc-lupquant (val &optional ref)
1789 (unless ref 1789 (unless ref
1790 (setq ref (math-read-expr calc-lu-power-reference))) 1790 (setq ref (math-read-expr calc-lu-power-reference)))
1791 (math-logunits-quant val ref t)) 1791 (math-logunits-quant val ref t))
@@ -1795,11 +1795,11 @@ In symbolic mode, return the list (^ a b)."
1795 (calc-slow-wrapper 1795 (calc-slow-wrapper
1796 (if (calc-is-hyperbolic) 1796 (if (calc-is-hyperbolic)
1797 (if (calc-is-option) 1797 (if (calc-is-option)
1798 (calc-binary-op "lupq" 'calcFunc-fquant arg) 1798 (calc-binary-op "lupq" 'calcFunc-lufquant arg)
1799 (calc-unary-op "lupq" 'calcFunc-fquant arg)) 1799 (calc-unary-op "lupq" 'calcFunc-lufquant arg))
1800 (if (calc-is-option) 1800 (if (calc-is-option)
1801 (calc-binary-op "lufq" 'calcFunc-pquant arg) 1801 (calc-binary-op "lufq" 'calcFunc-lupquant arg)
1802 (calc-unary-op "lufq" 'calcFunc-pquant arg))))) 1802 (calc-unary-op "lufq" 'calcFunc-lupquant arg)))))
1803 1803
1804(defun math-logunits-level (val ref db power) 1804(defun math-logunits-level (val ref db power)
1805 "Compute the value of VAL in decibels or nepers." 1805 "Compute the value of VAL in decibels or nepers."