From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.devel Subject: Emacs fullscreen and sizes in frame parameters Date: Sun, 09 Jun 2013 00:04:57 +0200 Message-ID: <87txl8dzsm.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1370729116 12359 80.91.229.3 (8 Jun 2013 22:05:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Jun 2013 22:05:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 09 00:05:16 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UlRG8-0001ya-Dn for ged-emacs-devel@m.gmane.org; Sun, 09 Jun 2013 00:05:16 +0200 Original-Received: from localhost ([::1]:37563 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlRG8-0004o2-0d for ged-emacs-devel@m.gmane.org; Sat, 08 Jun 2013 18:05:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlRG4-0004m5-3t for emacs-devel@gnu.org; Sat, 08 Jun 2013 18:05:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UlRG2-0004Bl-7h for emacs-devel@gnu.org; Sat, 08 Jun 2013 18:05:12 -0400 Original-Received: from randomsample.de ([83.169.19.17]:55932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlRG1-0003zJ-Ok for emacs-devel@gnu.org; Sat, 08 Jun 2013 18:05:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=QuLe/5MCeTdpGicTnPCA2qSNkB7nK7noGIFwxIW0XL8=; b=DadUZNvPpSpoc4qD8hnR7jV6ayJ57sKDgV9U1s+haTZQB4R3+QzlcMQG/Bov4tIu+0hzJ7tan7SILdeQC3yBeHyfUF7I/papnlZupttl6WtPvfb0DVIArTy2tDj/x98y; Original-Received: from dslc-082-083-058-057.pools.arcor-ip.net ([82.83.58.57] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1UlRFu-0007Eg-1C for emacs-devel@gnu.org; Sun, 09 Jun 2013 00:05:02 +0200 User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Mail-Followup-To: emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 83.169.19.17 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160271 Archived-At: I'd like Emacs to display an image so that it spans the *entire* screen from top to bottom. That means: just the image, no window decorations or anything else. I know that Emacs frames can only have pixel-sizes which are multiples of the character width and height. Still, I was hoping that I could achieve that by simply making the frame a bit larger. However, it seems I cannot resize the frame when the 'fullscreen' parameter is set to 'fullboth', which (I think) is the only way to get rid of the window decorations. Is this really the case or am I missing something? Here's what I've tried (you need an Imagemagick-enabled Emacs for this, and I guess the x-display-* thingies only work under X11): (let* ((cols (/ (x-display-pixel-width) (frame-char-width))) (lines (/ (x-display-pixel-height) (frame-char-height)))) (with-selected-frame (make-frame '((minibuffer . nil) (left-fringe . 0) (right-fringe . 0) (menu-bar-lines . 0) (vertical-scroll-bars . nil) (tool-bar-lines . 0) (fullscreen . fullboth))) (modify-frame-parameters nil `((width . ,(1+ cols)) (height . ,(1+ lines)))) (switch-to-buffer (get-buffer-create "test")) (setq mode-line-format nil) (insert-image (create-image "someimagefile" 'imagemagick nil :height (x-display-pixel-height))))) If you evaluate this, you'll get an empty buffer in a fullscreen Emacs frame, and as you can see I set 'width' and 'height' slightly bigger than the actual viewport, but it seems this doesn't have any effect since the image is still truncated at the bottom, at least if (mod (x-display-pixel-height) (frame-char-height)) is not zero, which is mostly the case. So, is there any possibility to reliably display an image with ':height (x-display-pixel-height)', so that it is not truncated? -David