From 3fadc4733ce9337d10e498424e9c7abe4d311d86 Mon Sep 17 00:00:00 2001 From: Zachary Wasserman Date: Tue, 5 Jun 2012 12:18:14 -0700 Subject: [PATCH] Fixing Issue 163: invalid function with-selected-frame The function isn't loaded when Prelude tries to start up, resulting in an error. I believe the intended effect can be achieved without its use, and this change modifies the prelude-frame-config function in accordance with this. --- prelude/prelude-ui.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/prelude/prelude-ui.el b/prelude/prelude-ui.el index 01292f7..716b419 100644 --- a/prelude/prelude-ui.el +++ b/prelude/prelude-ui.el @@ -43,10 +43,9 @@ (defun prelude-frame-config (frame) "Custom behaviours for new frames." (if (eq system-type 'darwin) - (with-selected-frame frame - (if (display-graphic-p) - (modify-frame-parameters frame '((menu-bar-lines . 1))) - (modify-frame-parameters frame '((menu-bar-lines . 0))))) + (if (display-graphic-p) + (modify-frame-parameters frame '((menu-bar-lines . 1))) + (modify-frame-parameters frame '((menu-bar-lines . 0)))) (menu-bar-mode -1))) ;; run now