Function: mode-local-symbol-value

mode-local-symbol-value is a byte-compiled function defined in mode-local.el.gz.

Signature

(mode-local-symbol-value SYMBOL &optional MODE PROPERTY)

Documentation

Return the value of the mode local symbol bound with SYMBOL's name.

If optional argument MODE is non-nil, restrict lookup to that mode and its parents (see the function mode-local-symbol for more details). If optional argument PROPERTY is non-nil the mode local symbol must have that property set. Return nil if the symbol doesn't exist, or doesn't have PROPERTY set.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/mode-local.el.gz
(defsubst mode-local-symbol-value (symbol &optional mode property)
  "Return the value of the mode local symbol bound with SYMBOL's name.
If optional argument MODE is non-nil, restrict lookup to that mode and
its parents (see the function `mode-local-symbol' for more details).
If optional argument PROPERTY is non-nil the mode local symbol must
have that property set.  Return nil if the symbol doesn't exist, or
doesn't have PROPERTY set."
  (and (setq symbol (mode-local-symbol symbol mode))
       (or (not property) (get symbol property))
       (symbol-value symbol)))