summaryrefslogtreecommitdiff
path: root/lisp/subr.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-05-30 18:39:33 +0000
committerKarl Heuer <kwzh@gnu.org>1995-05-30 18:39:33 +0000
commit1b1b294b8ccb766dc8ae1b9b2bd5e21a7dd5d4ef (patch)
tree04f49446bb7b0ab241595811af568592a204f200 /lisp/subr.el
parentc15cb2fd82aed4de7140617bb0392df233234da7 (diff)
downloademacs-1b1b294b8ccb766dc8ae1b9b2bd5e21a7dd5d4ef.tar.gz
(frame-configuration-p): Moved here from frame.el.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r--lisp/subr.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index f3ab57a4955..93165de8c00 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -931,6 +931,15 @@ KEY is a string representing a sequence of keystrokes."
(local-set-key key nil))
nil)
+;; We put this here instead of in frame.el so that it's defined even on
+;; systems where frame.el isn't loaded.
+(defun frame-configuration-p (object)
+ "Return non-nil if OBJECT seems to be a frame configuration.
+Any list whose car is `frame-configuration' is assumed to be a frame
+configuration."
+ (and (consp object)
+ (eq (car object) 'frame-configuration)))
+
;; now in fns.c
;(defun nth (n list)
; "Returns the Nth element of LIST.