Function: viper-frame-value
viper-frame-value is a macro defined in viper-util.el.gz.
Signature
(viper-frame-value VARIABLE)
Documentation
Return the value of VARIABLE local to the current frame, if there is one.
Otherwise return the normal value.
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/viper-util.el.gz
(defmacro viper-frame-value (variable)
"Return the value of VARIABLE local to the current frame, if there is one.
Otherwise return the normal value."
`(if (local-variable-p ',variable)
,variable
;; Distinguish between no frame parameter and a frame parameter
;; with a value of nil.
(let ((fp (assoc ',variable (frame-parameters))))
(if fp (cdr fp)
,variable))))