From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.bugs Subject: bug#16839: 24.3.50; image-mode-fit-frame fails to use all display space with image larger than display Date: Fri, 21 Feb 2014 21:00:14 -0400 Message-ID: <87bny0hsgx.fsf@moondust.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1393030882 1504 80.91.229.3 (22 Feb 2014 01:01:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Feb 2014 01:01:22 +0000 (UTC) To: 16839@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 22 02:01:29 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1WH0y8-00072F-Qy for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Feb 2014 02:01:29 +0100 Original-Received: from localhost ([::1]:47950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH0y8-0006IP-8O for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Feb 2014 20:01:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH0xw-0006ID-D5 for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 20:01:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WH0xj-00086E-8j for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 20:01:16 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH0xj-000867-53 for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 20:01:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WH0xi-0007HX-LM for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 20:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: nljlistbox2@gmail.com (N. Jackson) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Feb 2014 01:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16839 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.139303085227967 (code B ref -1); Sat, 22 Feb 2014 01:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Feb 2014 01:00:52 +0000 Original-Received: from localhost ([127.0.0.1]:35206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WH0xX-0007H0-PY for submit@debbugs.gnu.org; Fri, 21 Feb 2014 20:00:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36425) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WH0xU-0007Gk-IH for submit@debbugs.gnu.org; Fri, 21 Feb 2014 20:00:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WH0xG-0007s6-Qr for submit@debbugs.gnu.org; Fri, 21 Feb 2014 20:00:43 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH0xG-0007ry-JM for submit@debbugs.gnu.org; Fri, 21 Feb 2014 20:00:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH0x7-0005u5-VJ for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 20:00:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WH0wz-0007lo-FV for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 20:00:25 -0500 Original-Received: from mail-qa0-x22f.google.com ([2607:f8b0:400d:c00::22f]:43044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH0wz-0007lg-AM for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2014 20:00:17 -0500 Original-Received: by mail-qa0-f47.google.com with SMTP id j5so4145215qaq.20 for ; Fri, 21 Feb 2014 17:00:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; bh=CMZKlpz+ywzJf8743uxWXEfvqbUBiAA4RXwSQeo59Rw=; b=Fyku2ePqs2L2xS78NOhEhM6IocpoSXILBfD9GC+f9PGLXBfL8qDUDduyWX+hBGSOcI jRwmu7IYef1/8HVmmXMtJ9suWPuBoOTUjAgQ1xhfbnW12Sm7GqlTR442k+3DdmeM+Ct0 g10ENjCNaUoRrYWDyM/oG6HxS1Ba+Kv1bp3JndSAETbdJTz72XXy+oAHmGkzoRBzRH3a zk0Zt/uXHhPgdM9HJhgejnxmLJfM3SfE4UcTemL3EU4JtON2S5n4hy/b6ymIEGM0U1gL +HPs1ZNk8vh/dQUWh7/BJMLiiadE+K1lh1x/kmejqeBRCuc9JhFc/XBVYd6Z1EZynNUu EdZw== X-Received: by 10.140.37.47 with SMTP id q44mr13606980qgq.57.1393030816730; Fri, 21 Feb 2014 17:00:16 -0800 (PST) Original-Received: from moondust.localdomain.nodomain.none (T8630.WPA.Dal.Ca. [134.190.134.48]) by mx.google.com with ESMTPSA id d15sm26622237qaq.4.2014.02.21.17.00.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Feb 2014 17:00:16 -0800 (PST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:86002 Archived-At: Recipe: =3D=3D=3D=3D=3D=3D=3D This recipe requires an image file bigger than the display (I used a 2048 x 1536 pixel JPEG file on a display with a resolution of 1366 x 768). 1. emacs -Q 2. C-x C-f big-image.jpg 3. M-x image-mode-fit-frame Expected behaviour: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Frame size increases to the maximum size that will fit on the display. Actual behaviour: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Frame size increases to a size slightly less that the maximum that will fit on the display. There is a gap above the frame of about the height of the title bar, a gap below the frame about a pixel high, and a gap to the left of the frame maybe three pixels wide. Furthermore, the size of this frame does not seem to be recorded wherever such parameters normally are (in Emacs or the windowing system?), so that if I maximise the frame (logo key and up arrow) and then "restore" it (logo key and down arrow), it does not return to the size it was before I maximised it, nor to the size it was before I issued the image-mode-fit-frame command, but to some intermediate size. Additional Comments: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The name of the command image-mode-fit-frame seems ill-chosen. This is not intended to fit the image to the frame, but rather the frame to the image. The text on the menu -- "Fit Frame to Image" -- is clear. This suggests the command should be called image-mode-fit-frame-to-image. In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.8) of 2014-02-19 on moondust Repository revision: 116484 lekktu@gmail.com-20140219210406-y2s7lx244ojfl5on Windowing system distributor `Fedora Project', version 11.0.11404000 System Description: Fedora release 19 (Schr=C3=B6dinger=E2=80=99s Cat) Configured using: `configure --prefix=3D/home/nlj/local/' Important settings: value of $LC_MONETARY: en_DK.utf8 value of $LC_NUMERIC: en_DK.utf8 value of $LC_TIME: en_DK.utf8 value of $LANG: en_CA.utf8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Image[jpeg] Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode image-mode easymenu time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)