* frame.el (get-other-frame): Tiny cleanup.
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 6 Aug 2013 10:59:39 +0000 (14:59 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Tue, 6 Aug 2013 10:59:39 +0000 (14:59 +0400)
lisp/ChangeLog
lisp/frame.el

index c7a5d6a..b9d97d4 100644 (file)
@@ -1,3 +1,7 @@
+2013-08-06  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * frame.el (get-other-frame): Tiny cleanup.
+
 2013-08-06  Juanma Barranquero  <lekktu@gmail.com>
 
        * vc/vc.el (vc-default-ignore-completion-table):
index 9d3c839..31a9123 100644 (file)
@@ -500,10 +500,7 @@ See help of `modify-frame-parameters' for more information."
   "Return some frame other than the current frame.
 Create one if necessary.  Note that the minibuffer frame, if separate,
 is not considered (see `next-frame')."
-  (let ((s (if (equal (next-frame (selected-frame)) (selected-frame))
-              (make-frame)
-            (next-frame (selected-frame)))))
-    s))
+  (if (equal (next-frame) (selected-frame)) (make-frame) (next-frame)))
 
 (defun next-multiframe-window ()
   "Select the next window, regardless of which frame it is on."