aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1997-04-10 06:49:45 +0000
committerRichard M. Stallman <[email protected]>1997-04-10 06:49:45 +0000
commitb5d48854deae08700a84578e2797157e74130091 (patch)
treea0340e64db6fc7b2024d2d4c220d1c5a99e97e83 /lisp
parent2718efdd525898b3026636bd611ea16dda75402c (diff)
(frame-parameter): New function.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/frame.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index dca7f81677..1396aa1178 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -578,6 +578,10 @@ is given and non-nil, the unwanted frames are iconified instead."
;;;; Convenience functions for accessing and interactively changing
;;;; frame parameters.
+(defun frame-parameter (frame parameter)
+ "Return FRAME's value for parameter PARAMETER."
+ (cdr (assq parameter(frame-parameters frame))))
+
(defun frame-height (&optional frame)
"Return number of lines available for display on FRAME.
If FRAME is omitted, describe the currently selected frame."