From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: full screen problems Date: Sat, 18 Dec 2010 22:31:23 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1292707930 2393 80.91.229.12 (18 Dec 2010 21:32:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Dec 2010 21:32:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 18 22:32:06 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PU4Nq-0001AY-1p for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Dec 2010 22:32:06 +0100 Original-Received: from localhost ([127.0.0.1]:45199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PU4Np-00043Z-BS for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Dec 2010 16:32:05 -0500 Original-Received: from [140.186.70.92] (port=39756 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PU4NT-0003xi-75 for help-gnu-emacs@gnu.org; Sat, 18 Dec 2010 16:31:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PU4NS-00055d-44 for help-gnu-emacs@gnu.org; Sat, 18 Dec 2010 16:31:43 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:35493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PU4NR-00055H-Th for help-gnu-emacs@gnu.org; Sat, 18 Dec 2010 16:31:42 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PU4NL-0000uJ-Rr for help-gnu-emacs@gnu.org; Sat, 18 Dec 2010 22:31:35 +0100 Original-Received: from ip1-201.halifax.rwth-aachen.de ([137.226.108.201]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Dec 2010 22:31:35 +0100 Original-Received: from andrea.crotti.0 by ip1-201.halifax.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 Dec 2010 22:31:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ip1-201.halifax.rwth-aachen.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:xKjMMuNrbTEcetbUvJZIm3vwkAM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77664 Archived-At: 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