title: Fullscreen mode in emacs24
body: <p>I've recently updated my emacs from version 22 to 24. Lots of things changed, but the most annoying is that fullscreen support disapeared. </p>
  
  <p>I used to use this function:</p>
  
  <pre><code>(defun toggle-fullscreen (&amp;optional f)
    (interactive)
    (let ((current-value (frame-parameter nil 'fullscreen)))
      (set-frame-parameter nil 'fullscreen
                           (if (equal 'fullboth current-value)
                               (if (boundp 'old-fullscreen) old-fullscreen nil)
                             (progn (setq old-fullscreen current-value)
                                    'fullboth)))))
  (global-set-key [f11] 'toggle-fullscreen)
  </code></pre>
  
  <p>But that appears not to work any more. :-)</p>
  
  <p>I'm running on a mac OSX 10.6 and emacs24 <a href="http://emacsformacosx.com/" rel="nofollow">emacs for mac osx</a></p>