]> code.delx.au - gnu-emacs/commitdiff
(frame-configuration-p): Moved here from frame.el.
authorKarl Heuer <kwzh@gnu.org>
Tue, 30 May 1995 18:39:33 +0000 (18:39 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 30 May 1995 18:39:33 +0000 (18:39 +0000)
lisp/subr.el

index f3ab57a4955590c2cf7be1ab19a0b00e1440535d..93165de8c005f21428afb1d3d19850dfba868886 100644 (file)
@@ -931,6 +931,15 @@ KEY is a string representing a sequence of keystrokes."
       (local-set-key key nil))
   nil)
 \f
+;; 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.