Variable: calc-units-menu

calc-units-menu is a variable defined in calc-menu.el.gz.

Value

Large value
("Units"
 ["Convert units in (1:)"
  (progn
    (require 'calc-units) (call-interactively 'calc-convert-units))
  :keys "u c" :active (>= (calc-stack-size) 1)]
 ["Convert temperature in (1:)"
  (progn
    (require 'calc-units)
    (call-interactively 'calc-convert-temperature))
  :keys "u t" :active (>= (calc-stack-size) 1)]
 ["Simplify units in (1:)"
  (progn
    (require 'calc-units) (call-interactively 'calc-simplify-units))
  :keys "u s" :active (>= (calc-stack-size) 1)]
 ["View units table"
  (progn
    (require 'calc-units) (call-interactively 'calc-view-units-table))
  :keys "u V"]
 ("Logarithmic Units"
  ["Convert (1:) to dB (power)"
   (progn (require 'calc-units) (call-interactively 'calc-db)) :keys
   "l d" :active (>= (calc-stack-size) 1)]
  ["Convert (2:) to dB (power) with reference level (1:)"
   (progn
     (require 'calc-units)
     (let ((calc-option-flag t)) (call-interactively 'calc-db)))
   :keys "O l d" :active (>= (calc-stack-size) 2)]
  ["Convert (1:) to Np (power)"
   (progn (require 'calc-units) (call-interactively 'calc-np)) :keys
   "l n" :active (>= (calc-stack-size) 1)]
  ["Convert (2:) to Np (power) with reference level (1:)"
   (progn
     (require 'calc-units)
     (let ((calc-option-flag t)) (call-interactively 'calc-np)))
   :keys "O l n" :active (>= (calc-stack-size) 2)]
  ["Convert (1:) to power quantity"
   (progn (require 'calc-units) (call-interactively 'calc-lu-quant))
   :keys "l q" :active (>= (calc-stack-size) 1)]
  ["Convert (2:) to power quantity with reference level (1:)"
   (progn
     (require 'calc-units)
     (let ((calc-option-flag t)) (call-interactively 'calc-lu-quant)))
   :keys "O l q" :active (>= (calc-stack-size) 2)]
  "----"
  ["Convert (1:) to dB (field)"
   (progn
     (require 'calc-units)
     (let ((calc-hyperbolic-flag t)) (call-interactively 'calc-db)))
   :keys "H l d" :active (>= (calc-stack-size) 1)]
  ["Convert (2:) to dB (field) with reference level (1:)"
   (progn
     (require 'calc-units)
     (let ((calc-option-flag t) (calc-hyperbolic-flag t))
       (call-interactively 'calc-db)))
   :keys "O H l d" :active (>= (calc-stack-size) 2)]
  ["Convert (1:) to Np (field)"
   (progn
     (require 'calc-units)
     (let ((calc-hyperbolic-flag t)) (call-interactively 'calc-np)))
   :keys "H l n" :active (>= (calc-stack-size) 1)]
  ["Convert (2:) to Np (field) with reference level (1:)"
   (progn
     (require 'calc-units)
     (let ((calc-option-flag t) (calc-hyperbolic-flag t))
       (call-interactively 'calc-np)))
   :keys "O H l d" :active (>= (calc-stack-size) 2)]
  ["Convert (1:) to field quantity"
   (progn
     (require 'calc-units)
     (let ((calc-hyperbolic-flag t))
       (call-interactively 'calc-lu-quant)))
   :keys "H l q" :active (>= (calc-stack-size) 1)]
  ["Convert (2:) to field quantity with reference level (1:)"
   (progn
     (require 'calc-units)
     (let ((calc-option-flag t) (calc-hyperbolic-flag))
       (call-interactively 'calc-lu-quant)))
   :keys "O H l q" :active (>= (calc-stack-size) 2)])
 ("Musical Notes"
  ["Convert (1:) to scientific pitch notation"
   (progn (require 'calc-units) (call-interactively 'calc-spn)) :keys
   "l s" :active (>= (calc-stack-size) 1)]
  ["Convert (1:) to midi number"
   (progn (require 'calc-units) (call-interactively 'calc-midi)) :keys
   "l m" :active (>= (calc-stack-size) 1)]
  ["Convert (1:) to frequency"
   (progn (require 'calc-units) (call-interactively 'calc-freq)) :keys
   "l f" :active (>= (calc-stack-size) 1)])
 "----" ["Help on Units" (calc-info-goto-node "Units")])

Documentation

Menu for Calc's units functions.

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-menu.el.gz
(defvar calc-units-menu
  (list "Units"
        ["Convert units in (1:)"
         (progn
           (require 'calc-units)
           (call-interactively 'calc-convert-units ))
         :keys "u c"
         :active (>= (calc-stack-size) 1)]
        ["Convert temperature in (1:)"
         (progn
           (require 'calc-units)
           (call-interactively 'calc-convert-temperature))
         :keys "u t"
         :active (>= (calc-stack-size) 1)]
        ["Simplify units in (1:)"
         (progn
           (require 'calc-units)
           (call-interactively 'calc-simplify-units))
         :keys "u s"
         :active (>= (calc-stack-size) 1)]
        ["View units table"
         (progn
           (require 'calc-units)
           (call-interactively 'calc-view-units-table))
         :keys "u V"]
        (list "Logarithmic Units"
              ["Convert (1:) to dB (power)"
               (progn
                 (require 'calc-units)
                 (call-interactively 'calc-db))
               :keys "l d"
               :active (>= (calc-stack-size) 1)]
              ["Convert (2:) to dB (power) with reference level (1:)"
               (progn
                 (require 'calc-units)
                 (let ((calc-option-flag t))
                   (call-interactively 'calc-db)))
               :keys "O l d"
               :active (>= (calc-stack-size) 2)]
              ["Convert (1:) to Np (power)"
               (progn
                 (require 'calc-units)
                 (call-interactively 'calc-np))
               :keys "l n"
               :active (>= (calc-stack-size) 1)]
              ["Convert (2:) to Np (power) with reference level (1:)"
               (progn
                 (require 'calc-units)
                 (let ((calc-option-flag t))
                   (call-interactively 'calc-np)))
               :keys "O l n"
               :active (>= (calc-stack-size) 2)]
              ["Convert (1:) to power quantity"
               (progn
                 (require 'calc-units)
                 (call-interactively 'calc-lu-quant))
               :keys "l q"
               :active (>= (calc-stack-size) 1)]
              ["Convert (2:) to power quantity with reference level (1:)"
               (progn
                 (require 'calc-units)
                 (let ((calc-option-flag t))
                   (call-interactively 'calc-lu-quant)))
               :keys "O l q"
               :active (>= (calc-stack-size) 2)]
              "----"
              ["Convert (1:) to dB (field)"
               (progn
                 (require 'calc-units)
                 (let ((calc-hyperbolic-flag t))
                   (call-interactively 'calc-db)))
               :keys "H l d"
               :active (>= (calc-stack-size) 1)]
              ["Convert (2:) to dB (field) with reference level (1:)"
               (progn
                 (require 'calc-units)
                 (let ((calc-option-flag t)
                       (calc-hyperbolic-flag t))
                   (call-interactively 'calc-db)))
               :keys "O H l d"
               :active (>= (calc-stack-size) 2)]
              ["Convert (1:) to Np (field)"
               (progn
                 (require 'calc-units)
                 (let ((calc-hyperbolic-flag t))
                   (call-interactively 'calc-np)))
               :keys "H l n"
               :active (>= (calc-stack-size) 1)]
              ["Convert (2:) to Np (field) with reference level (1:)"
               (progn
                 (require 'calc-units)
                 (let ((calc-option-flag t)
                       (calc-hyperbolic-flag t))
                   (call-interactively 'calc-np)))
               :keys "O H l d"
               :active (>= (calc-stack-size) 2)]
              ["Convert (1:) to field quantity"
               (progn
                 (require 'calc-units)
                 (let ((calc-hyperbolic-flag t))
                   (call-interactively 'calc-lu-quant)))
               :keys "H l q"
               :active (>= (calc-stack-size) 1)]
              ["Convert (2:) to field quantity with reference level (1:)"
               (progn
                 (require 'calc-units)
                 (let ((calc-option-flag t)
                       (calc-hyperbolic-flag))
                   (call-interactively 'calc-lu-quant)))
               :keys "O H l q"
               :active (>= (calc-stack-size) 2)])
        (list "Musical Notes"
              ["Convert (1:) to scientific pitch notation"
               (progn
                 (require 'calc-units)
                 (call-interactively 'calc-spn))
               :keys "l s"
               :active (>= (calc-stack-size) 1)]
              ["Convert (1:) to midi number"
               (progn
                 (require 'calc-units)
                 (call-interactively 'calc-midi))
               :keys "l m"
               :active (>= (calc-stack-size) 1)]
              ["Convert (1:) to frequency"
               (progn
                 (require 'calc-units)
                 (call-interactively 'calc-freq))
               :keys "l f"
               :active (>= (calc-stack-size) 1)])
        "----"
        ["Help on Units"
         (calc-info-goto-node "Units")])
  "Menu for Calc's units functions.")