GNU bug report logs - #16839
24.3.50; image-mode-fit-frame fails to use all display space with image larger than display

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: nljlistbox2@HIDDEN (N. Jackson); dated Sat, 22 Feb 2014 01:01:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Feb 2014 17:55:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 24 12:55:19 2014
Received: from localhost ([127.0.0.1]:38109 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WHzkM-0007ob-PG
	for submit <at> debbugs.gnu.org; Mon, 24 Feb 2014 12:55:19 -0500
Received: from eggs.gnu.org ([208.118.235.92]:54331)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WHzkI-0007oJ-Ji
 for submit <at> debbugs.gnu.org; Mon, 24 Feb 2014 12:55:15 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WHzk4-0006vW-UB
 for submit <at> debbugs.gnu.org; Mon, 24 Feb 2014 12:55:09 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44971)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WHzk4-0006vS-Qc
 for submit <at> debbugs.gnu.org; Mon, 24 Feb 2014 12:55:00 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55924)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WHzjw-0002sn-6e
 for bug-gnu-emacs@HIDDEN; Mon, 24 Feb 2014 12:55:00 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WHzjn-0006rF-QN
 for bug-gnu-emacs@HIDDEN; Mon, 24 Feb 2014 12:54:52 -0500
Received: from mail-qg0-x232.google.com ([2607:f8b0:400d:c04::232]:48585)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WHzjn-0006r3-Lh
 for bug-gnu-emacs@HIDDEN; Mon, 24 Feb 2014 12:54:43 -0500
Received: by mail-qg0-f50.google.com with SMTP id z60so15792421qgd.9
 for <bug-gnu-emacs@HIDDEN>; Mon, 24 Feb 2014 09:54:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:references:date:in-reply-to:message-id:user-agent
 :mime-version:content-type;
 bh=SEUuBiTH3bQ2oLaNSk8WF95EaTil6i1RN4geOM7Dg9E=;
 b=tV831G+pX/vuzda0S/bbPqVpcSB/XHwzT1fWJ5gLPfNce8gEaZCFv5l1rcAXZDB7Vr
 egBZ1plZgY0/MElcuJZ7W3VupYrMFISbV22XLoQnd931XKT605xysskifRcdl0oeIpOk
 3cKk96DZqrmlBD6DRos7u2PoBkhHkuRLcSVJg8NFw3ZEg8/mld6Gqx57Gs8X6gRf2SXC
 Ir3Mn7oLxbdTX5f8M4ewZiw4+QSHG/BYxEdEve3Wmxf4Hzcov7f3gVnQIRwioyHwD1cy
 9g0gBN8f5fo9rR708gbwhlcIVPyWYIvE8aC5rIRnju4Z/PKQyIxt9tdOR6gnp12OLZVD
 70lQ==
X-Received: by 10.224.94.2 with SMTP id x2mr31814260qam.100.1393264483144;
 Mon, 24 Feb 2014 09:54:43 -0800 (PST)
Received: from moondust.localdomain.nodomain.none (T872B.WPA.Dal.Ca.
 [134.190.135.43])
 by mx.google.com with ESMTPSA id t5sm51486349qat.6.2014.02.24.09.54.42
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 24 Feb 2014 09:54:42 -0800 (PST)
From: nljlistbox2@HIDDEN (N. Jackson)
To: bug-gnu-emacs@HIDDEN
Subject: Re: bug#16839: 24.3.50;
 image-mode-fit-frame fails to use all display space with image larger
 than display
References: <87bny0hsgx.fsf@HIDDEN>
Date: Mon, 24 Feb 2014 13:54:41 -0400
In-Reply-To: <87bny0hsgx.fsf@HIDDEN> (N. Jackson's message of
 "Fri, 21 Feb 2014 21:00:14 -0400")
Message-ID: <87sir81jmm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
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-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)

At 21:00 -0400 on Friday 2014-02-21, N. Jackson wrote:

> 1. emacs -Q
> 2. C-x C-f big-image.jpg
> 3. M-x image-mode-fit-frame

> 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.

Setting frame-resize-pixelwise to t works around this problem.

> 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.

But frame-resize-pixelwise doesn't help with the frame not "remembering"
what size to restore to.






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16839; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 22 Feb 2014 01:00:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 21 20:00:52 2014
Received: from localhost ([127.0.0.1]:35206 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WH0xX-0007H0-PY
	for submit <at> debbugs.gnu.org; Fri, 21 Feb 2014 20:00:52 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36425)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WH0xU-0007Gk-IH
 for submit <at> debbugs.gnu.org; Fri, 21 Feb 2014 20:00:49 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WH0xG-0007s6-Qr
 for submit <at> debbugs.gnu.org; Fri, 21 Feb 2014 20:00:43 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:39129)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WH0xG-0007ry-JM
 for submit <at> debbugs.gnu.org; Fri, 21 Feb 2014 20:00:34 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37946)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WH0x7-0005u5-VJ
 for bug-gnu-emacs@HIDDEN; Fri, 21 Feb 2014 20:00:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WH0wz-0007lo-FV
 for bug-gnu-emacs@HIDDEN; Fri, 21 Feb 2014 20:00:25 -0500
Received: from mail-qa0-x22f.google.com ([2607:f8b0:400d:c00::22f]:43044)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WH0wz-0007lg-AM
 for bug-gnu-emacs@HIDDEN; Fri, 21 Feb 2014 20:00:17 -0500
Received: by mail-qa0-f47.google.com with SMTP id j5so4145215qaq.20
 for <bug-gnu-emacs@HIDDEN>; 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)
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 <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 21 Feb 2014 17:00:16 -0800 (PST)
From: nljlistbox2@HIDDEN (N. Jackson)
To: bug-gnu-emacs@HIDDEN
Subject: 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@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)

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@HIDDEN
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)




Acknowledgement sent to nljlistbox2@HIDDEN (N. Jackson):
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#16839; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.