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: Thu, 03 Mar 2016 17:21:03 -0400 Message-ID: <87vb53uukg.fsf@gmail.com> References: <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 1457040146 7929 80.91.229.3 (3 Mar 2016 21:22:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2016 21:22:26 +0000 (UTC) To: 16839@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 03 22:22:15 2016 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 1abahK-0002Qw-Fa for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Mar 2016 22:22:14 +0100 Original-Received: from localhost ([::1]:37423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abahG-0006QB-Eh for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Mar 2016 16:22:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abahC-0006P7-TV for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 16:22:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abah8-0007SS-Rt for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 16:22:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abah8-0007SO-O7 for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 16:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1abah8-0002di-HK for bug-gnu-emacs@gnu.org; Thu, 03 Mar 2016 16:22: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: Thu, 03 Mar 2016 21:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16839 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16839-submit@debbugs.gnu.org id=B16839.145704007210074 (code B ref 16839); Thu, 03 Mar 2016 21:22:02 +0000 Original-Received: (at 16839) by debbugs.gnu.org; 3 Mar 2016 21:21:12 +0000 Original-Received: from localhost ([127.0.0.1]:60554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1abagK-0002cQ-Ky for submit@debbugs.gnu.org; Thu, 03 Mar 2016 16:21:12 -0500 Original-Received: from mail-io0-f180.google.com ([209.85.223.180]:34585) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1abagJ-0002cC-3K for 16839@debbugs.gnu.org; Thu, 03 Mar 2016 16:21:11 -0500 Original-Received: by mail-io0-f180.google.com with SMTP id m184so41998576iof.1 for <16839@debbugs.gnu.org>; Thu, 03 Mar 2016 13:21:11 -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-transfer-encoding; bh=Fh9rujk1SjTcW/ikQJ/rESm3j/btfQr1QGGyd0A3rDo=; b=v181dVNv4AZPVID8a6Gpf3wY5PGtE1SGi5bv34A1TzL660axdFTTzLlFZB0n/q+LQQ wyQtNe5JOL1XcBS9e+IKbLQqMTQAiibwbe2TgGw4uoW4A/FK0oRROAevh4Jep3F+XS3v 5oufs3X17we7R496t79aFyTK3d/loFndyJopBIckh8NSZp43IgUoLXY2AiJLDHCj+v+U xu/XbaT+SLdBgz8DWqhiAQybVASw3FZN8/fIJuqqgrFMSwnYj/ZV2kCl2z07ejLIG46m 94/1w5Ss/rvySF0oHwIELlzYLClC4CT9loaCZLeg5gPyzdv5FzbUPg3h1mM9ZwRkA9Ev XEdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Fh9rujk1SjTcW/ikQJ/rESm3j/btfQr1QGGyd0A3rDo=; b=Rz6uFq2RYVTkeJ4D+RugDpgLwAF4D23lvr2+/+0aYOxyUJdVZHyTuzYXI4NCBEHqB7 qKZe027i/qERgXmFPBS1jb919iIzjhJuZtjU8kDW0dw7Oemi2sk8YvWGh8bQxnZgG5pT 009dEn8E1Jf0jqY1bn6TTtE379v5io7W3rTC6LXe5X0srye4pbgKm+9O9LuEOTIoWh/W iXbZe3jAxOwxW4RhMbMgGaMAKl0LCWJnvpR3S4ztA5CST1Oaq9yR/uT4H0sGHwNPKL3k y5W1UzBRjGEdJQvc+Jk/KQgJ++9vs8YvpgSppB7erdojAJKQnVmuz5lk7knqWnKCZri/ lUeA== X-Gm-Message-State: AD7BkJKfa1/9LITMh10owCE4JDQLnDqxQm+n6C9PfNa/Amew+WKVaIW90WqpgoYuDv5EUA== X-Received: by 10.107.3.79 with SMTP id 76mr4750666iod.101.1457040065567; Thu, 03 Mar 2016 13:21:05 -0800 (PST) Original-Received: from moondust.nodomain.none ([142.176.202.106]) by smtp.gmail.com with ESMTPSA id n8sm157669igv.5.2016.03.03.13.21.04 for <16839@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Mar 2016 13:21:05 -0800 (PST) In-Reply-To: <87bny0hsgx.fsf@moondust.localdomain> (N. Jackson's message of "Fri, 21 Feb 2014 21:00:14 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:114365 Archived-At: At 21:00 -0400 on Friday 2014-02-21, N. Jackson wrote: > > 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 Just a quick update on this bug report. The recipe I provided above doesn't work on Emacs 25 (currently testing on the second pretest 25.0.92) because it seems that images are now shrunk to fit into the frame when they are opened. In any case the image-mode-fit-frame function still seems to be broken. The documented behaviour is: If called interactively, or if TOGGLE is non-nil, toggle between fitting FRAME to the current image and restoring the size and window configuration prior to the last =E2=80=98image-mode-fit-frame=E2= =80=99 call. The toggling makes it slightly confusing to figure out what's going on but it seems that the function is only doing half of its job. When it needs to adjust only the height of the frame and when it needs to adjust only the width of the frame, the function seems to work correctly. But when it needs to adjust both the height and the width, it only adjusts the height and fails to adjust the width.