]> git.eshelyaron.com Git - emacs.git/commitdiff
* 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 c7a5d6ae070861a114b37c37da4a588ac29ebcd9..b9d97d4e1403330991e226c2411866875d684c7d 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 9d3c839fa35715ccce5876116b8f9723001e5588..31a9123503d86962a6c6b1ee6d824bbaebd6617a 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."