all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* full screen problems
@ 2010-12-18 21:31 Andrea Crotti
  2010-12-18  4:11 ` Glauber Alex Dias Prado
       [not found] ` <mailman.7.1292736657.4786.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Andrea Crotti @ 2010-12-18 21:31 UTC (permalink / raw)
  To: help-gnu-emacs

I use the following to enable full screen mode

(defun full (&optional f)
  (interactive)
  (if
      mac
      ;; included in emacs 23.2
      (ns-toggle-fullscreen)
    (set-frame-parameter f 'fullscreen
                         (if (frame-parameter f 'fullscreen) nil 'fullboth))))

;; this toogle the fullscreen for every new frame (window) created
 (add-hook 'after-make-frame-functions 'full)

on "GNU Emacs 23.2.1 (x86_64-apple-darwin10.3.0, NS apple-appkit-1038.29)
of 2010-05-09 on linc"

Now there are two problems:
1. I just want to enable it not toggle, but that function only support
   toggling apparently, and I don't see a variable to check if I'm
   already in full screen

2. 'full called from the hook doesn't work well, since the minibuffer
   goes out of the screen, somehow everything is "pushed" down


Trying with "emacs -Q" very strangely the hook doesn't work at all, but
if I call 'full manually it works correctly...
Any suggestions?
Thanks,
Andrea




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-20 13:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-18 21:31 full screen problems Andrea Crotti
2010-12-18  4:11 ` Glauber Alex Dias Prado
2010-12-20 13:05   ` Andrea Crotti
     [not found] ` <mailman.7.1292736657.4786.help-gnu-emacs@gnu.org>
2010-12-19  6:25   ` Pascal J. Bourguignon

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.