From unknown Wed Jun 18 23:12:39 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#24393 <24393@debbugs.gnu.org> To: bug#24393 <24393@debbugs.gnu.org> Subject: Status: 25.1.50; image-mode ignore the image :scale Reply-To: bug#24393 <24393@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:12:39 +0000 retitle 24393 25.1.50; image-mode ignore the image :scale reassign 24393 emacs submitter 24393 Tino Calancha severity 24393 normal tag 24393 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 08 08:14:58 2016 Received: (at submit) by debbugs.gnu.org; 8 Sep 2016 12:14:58 +0000 Received: from localhost ([127.0.0.1]:53248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhyEI-0000su-Ff for submit@debbugs.gnu.org; Thu, 08 Sep 2016 08:14:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42417) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhyEC-0000sc-Mk for submit@debbugs.gnu.org; Thu, 08 Sep 2016 08:14:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhyE3-0006pU-RB for submit@debbugs.gnu.org; Thu, 08 Sep 2016 08:14:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhyE3-0006od-OO for submit@debbugs.gnu.org; Thu, 08 Sep 2016 08:14:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhyE1-00083L-Lh for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2016 08:14:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhyDw-0006nn-GL for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2016 08:14:36 -0400 Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:33595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhyDw-0006nd-91 for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2016 08:14:32 -0400 Received: by mail-pf0-x22d.google.com with SMTP id g202so17831273pfb.0 for ; Thu, 08 Sep 2016 05:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:subject:message-id:user-agent:mime-version; bh=YShU5VdrMHnaSeTxOPhD3hZHBZrhG3B7H71mlKbHBnc=; b=sh70lNBYXqMtsAUfnetPEEFhKY0FTKlhTki8+HrnCdejGt8wBBnAArNG5fqrj+M2W7 44iYUGDCcaTapI+lBBOlKKoKW9FQTVtXNOYjCjvStz+otn6okWQ1O5sgVVh6KwcoEFun IAFI5jIdZb0LTHdeHHjF8uLOoZl/Hf0JvGFIldGTm9tn7QaMrRQOskttJtnRcsEpOeEB IUDk1w+BR/pf0N3F0NR52cfWRLWfUosUr3xSLeQBNQBpokIkgqgMkUOUFEwLNkbAsb/W hCxLZlDxbj9j0InBZJixjgaOQ4qGxRFyFcPypeeGG7HfR8f/3p6Kp91gTsR+RKdZaxrZ NgBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:subject:message-id:user-agent :mime-version; bh=YShU5VdrMHnaSeTxOPhD3hZHBZrhG3B7H71mlKbHBnc=; b=lv3UvimgGt4c4M5j7wnC8EDBi+fBX3ZCH6g3H/lsfeuBOpydjGr/1LuT7EFBOTaB9g 0qUpV1QX90eyb/MjBDD+Wj9VxHzMcvuW916ecaNHdtOYR/c/SNr6kFIobPt9aY1zl0rP tJgVn52vAM6TyzBOijYW8FtWpiSXq58VqJbaqUE85D0YNN2ndw8ijHfFY5aatDRgADn6 PQHrW1W6RcZz14Cl3066dl8PfhZm3cnrrNjuDOeUDzPUYKDJ2hRz9WOrIXZwHkXGIbkB OsWSoPRgH3SyrtdEBjxizFsDvlxMW2l8YYtr9ugQ8F+QWiIYmOmmtiFcgmiFYPTevK8j Eufg== X-Gm-Message-State: AE9vXwMYRi+n9xR1DiqCyq6etHkLHghc6aH1vJ2uZqGcGUthdq0zJLTdbQksXftpv5s37Q== X-Received: by 10.98.22.212 with SMTP id 203mr91698265pfw.74.1473336871133; Thu, 08 Sep 2016 05:14:31 -0700 (PDT) Received: from calancha-pc (57.92.100.220.dy.bbexcite.jp. [220.100.92.57]) by smtp.gmail.com with ESMTPSA id ty6sm56142594pac.18.2016.09.08.05.14.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Sep 2016 05:14:30 -0700 (PDT) From: Tino Calancha X-Google-Original-From: Tino Calancha Date: Thu, 8 Sep 2016 21:14:26 +0900 (JST) X-X-Sender: calancha@calancha-pc To: bug-gnu-emacs@gnu.org Subject: 25.1.50; image-mode ignore the image :scale Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) emacs -Q IMAGE ; IMAGE is the file name of an image file M-x: image-transform-fit-to-width ;; assertion fails. The image width is bigger than the window width. This happens after commit: ad1951db In GNU Emacs 25.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.21.5) of 2016-09-07 Repository revision: ba5d32398ba42fcf14ad5242d95c68133981744f From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 08 13:16:18 2016 Received: (at 24393) by debbugs.gnu.org; 8 Sep 2016 17:16:18 +0000 Received: from localhost ([127.0.0.1]:53831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi2vy-00089C-FN for submit@debbugs.gnu.org; Thu, 08 Sep 2016 13:16:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi2vw-000890-Bi for 24393@debbugs.gnu.org; Thu, 08 Sep 2016 13:16:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bi2vn-0001kr-0r for 24393@debbugs.gnu.org; Thu, 08 Sep 2016 13:16:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi2vm-0001kQ-UL; Thu, 08 Sep 2016 13:16:06 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3270 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bi2vj-0003xU-4J; Thu, 08 Sep 2016 13:16:05 -0400 Date: Thu, 08 Sep 2016 20:15:39 +0300 Message-Id: <83pooe8g90.fsf@gnu.org> From: Eli Zaretskii To: Tino Calancha In-reply-to: (message from Tino Calancha on Thu, 8 Sep 2016 21:14:26 +0900 (JST)) Subject: Re: bug#24393: 25.1.50; image-mode ignore the image :scale References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 24393 Cc: 24393@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) > From: Tino Calancha > Date: Thu, 8 Sep 2016 21:14:26 +0900 (JST) > > > emacs -Q IMAGE ; IMAGE is the file name of an image file > M-x: image-transform-fit-to-width > ;; assertion fails. The image width is bigger than the window width. > > This happens after commit: ad1951db Please show a backtrace from the assertion violation. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 08 14:13:49 2016 Received: (at 24393) by debbugs.gnu.org; 8 Sep 2016 18:13:49 +0000 Received: from localhost ([127.0.0.1]:53861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi3pc-00014R-Un for submit@debbugs.gnu.org; Thu, 08 Sep 2016 14:13:49 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:35396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi3pa-00014D-RX for 24393@debbugs.gnu.org; Thu, 08 Sep 2016 14:13:47 -0400 Received: by mail-pf0-f179.google.com with SMTP id w87so20547592pfk.2 for <24393@debbugs.gnu.org>; Thu, 08 Sep 2016 11:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=SiX2+g1rRqyDeg1W5DrJ+Mc/f4g3NNFwDsAW3lpD4xc=; b=NzKzinnZzcCug0ON2sYKiFA5pdggdo5ybQUrEft9vgCW2PpyiZBuxCZxF3OYz9Wv37 sizy50YW3BK+0E5rS35HEHkJjDQ/XGpO6XdrHdbkAnsSbimjZyoMIgpBYDv6RzhAV7lZ S4s8j+TTrMlYlrBJSO2a7lhzKNBcZu+D1EdKbrm1T6LiLIP9oACCo1Z7pUsjhQDRpRe4 3ntWMXeCa2Bj2eUxNyolpeZ/3A13h6q8aVAttDTuGRq5HgcwDE+RB0u3eOfgcnFYdxxJ 65HL/tq/FUu98gheRsaRkE715GH7Mi0RVKUmX+3+y6D1HYuXV1q8YGTdXYefybOU9e0H egow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=SiX2+g1rRqyDeg1W5DrJ+Mc/f4g3NNFwDsAW3lpD4xc=; b=cBbKUD3HZTUUW+J0G6yp6Zi13B8GQUYRfjjDvQq+UeBF/GIgdnggD7QCFO7IitzeUu 1tw7m5ppMc7iQRvzmnnVYtO6p6y5NDchufVD/9WuZlGAnd1AGJxPaImXGGq7fuRexK3r PilOR8aDQ0uYXVI+grlygNuZdTybBgmP+NrohXzRmmizmIprwL+cEIzqKnm1w05/Di3g yGgi+CYC3ayvbc6vNHZWGhEjR8q+hCKrSLMW8vXNamULi/5GdOK+HJtBHiqqCahEXdZq 74PkRwZI6WHWywhKbSuO8XNZ8w7mDQWt+NtNuLpKctkQrYFovwL/d+HP8bE2Ps8vlVNg LI9w== X-Gm-Message-State: AE9vXwNZhQALZYeF9YCyLisoDyEkuNxbThtr7kFiNGpy+kgwvjwjA/bdJVfx/hqUjoE83g== X-Received: by 10.98.58.218 with SMTP id v87mr1782004pfj.8.1473358421237; Thu, 08 Sep 2016 11:13:41 -0700 (PDT) Received: from calancha-pc (57.92.100.220.dy.bbexcite.jp. [220.100.92.57]) by smtp.gmail.com with ESMTPSA id wr8sm39611147pab.44.2016.09.08.11.13.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Sep 2016 11:13:40 -0700 (PDT) From: Tino Calancha X-Google-Original-From: Tino Calancha Date: Fri, 9 Sep 2016 03:13:36 +0900 (JST) X-X-Sender: calancha@calancha-pc To: Eli Zaretskii Subject: Re: bug#24393: 25.1.50; image-mode ignore the image :scale In-Reply-To: <83pooe8g90.fsf@gnu.org> Message-ID: References: <83pooe8g90.fsf@gnu.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 24393 Cc: 24393@debbugs.gnu.org, Tino Calancha X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Thu, 8 Sep 2016, Eli Zaretskii wrote: >> From: Tino Calancha >> Date: Thu, 8 Sep 2016 21:14:26 +0900 (JST) >> >> >> emacs -Q IMAGE ; IMAGE is the file name of an image file >> M-x: image-transform-fit-to-width >> ;; assertion fails. The image width is bigger than the window width. >> >> This happens after commit: ad1951db > > Please show a backtrace from the assertion violation. Debugger entered: ((cl-assertion-failed (= (car size) (- (nth 2 (window-inside-pixel-edges)) (nth 0 (window-inside-pixel-edges)))) nil 4299 2514)) cl--assertion-failed((= (car size) (- (nth 2 (window-inside-pixel-edges)) (nth 0 (window-inside-pixel-edges)))) nil (4299 2514) nil) image-transform-check-size() image-toggle-display-image() image-transform-fit-to-width() eval((image-transform-fit-to-width) nil) eval-expression((image-transform-fit-to-width) nil) funcall-interactively(eval-expression (image-transform-fit-to-width) nil) call-interactively(eval-expression nil nil) command-execute(eval-expression) From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 09 04:06:41 2016 Received: (at 24393) by debbugs.gnu.org; 9 Sep 2016 08:06:41 +0000 Received: from localhost ([127.0.0.1]:54168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biGpc-0000eZ-UX for submit@debbugs.gnu.org; Fri, 09 Sep 2016 04:06:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biGpb-0000eL-Dh for 24393@debbugs.gnu.org; Fri, 09 Sep 2016 04:06:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biGpS-0002CJ-6L for 24393@debbugs.gnu.org; Fri, 09 Sep 2016 04:06:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biGpS-0002Bk-2a; Fri, 09 Sep 2016 04:06:30 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4625 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1biGpP-00068X-CW; Fri, 09 Sep 2016 04:06:28 -0400 Date: Fri, 09 Sep 2016 11:06:19 +0300 Message-Id: <83a8fh8pl0.fsf@gnu.org> From: Eli Zaretskii To: Tino Calancha In-reply-to: (message from Tino Calancha on Fri, 9 Sep 2016 03:13:36 +0900 (JST)) Subject: Re: bug#24393: 25.1.50; image-mode ignore the image :scale References: <83pooe8g90.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 24393 Cc: 24393@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) > From: Tino Calancha > Date: Fri, 9 Sep 2016 03:13:36 +0900 (JST) > cc: Tino Calancha , 24393@debbugs.gnu.org > > >> emacs -Q IMAGE ; IMAGE is the file name of an image file > >> M-x: image-transform-fit-to-width > >> ;; assertion fails. The image width is bigger than the window width. > >> > >> This happens after commit: ad1951db > > > > Please show a backtrace from the assertion violation. > Debugger entered: ((cl-assertion-failed (= (car size) (- (nth 2 (window-inside-pixel-edges)) (nth 0 (window-inside-pixel-edges)))) nil 4299 2514)) > cl--assertion-failed((= (car size) (- (nth 2 (window-inside-pixel-edges)) (nth 0 (window-inside-pixel-edges)))) nil (4299 2514) nil) > image-transform-check-size() > image-toggle-display-image() > image-transform-fit-to-width() > eval((image-transform-fit-to-width) nil) > eval-expression((image-transform-fit-to-width) nil) > funcall-interactively(eval-expression (image-transform-fit-to-width) > nil) > call-interactively(eval-expression nil nil) > command-execute(eval-expression) Isn't there something wrong with the logic from the following fragment of image-toggle-display-image? The comment certainly seems to have it backwards, or at least in contradiction to what image-transform-fit-to-width expects. ;; If we have a `fit-width' or a `fit-height', don't limit ;; the size of the image to the window size. (edges (and (null image-transform-resize) (window-inside-pixel-edges (get-buffer-window (current-buffer))))) I think 'edges' should be non-nil if image-transform-resize is non-nil, no? From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 09 06:23:14 2016 Received: (at 24393) by debbugs.gnu.org; 9 Sep 2016 10:23:14 +0000 Received: from localhost ([127.0.0.1]:54214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biIxm-00045b-4k for submit@debbugs.gnu.org; Fri, 09 Sep 2016 06:23:14 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:33761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biIxj-00045N-Uw for 24393@debbugs.gnu.org; Fri, 09 Sep 2016 06:23:12 -0400 Received: by mail-pa0-f54.google.com with SMTP id cm16so27249595pac.0 for <24393@debbugs.gnu.org>; Fri, 09 Sep 2016 03:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=PgEYoFwhnRs0cTBPEtfHuJ9ttJNNV7lL1c0MfXEk4z8=; b=ix2PR+aUl01jTI7eDSCI87i5wHwEzmy510x8yfBudRXSYtTWk4u5b2G7aHzAIApIpK 0oHHV+c7Ydohacd6RVUyx16oMZh8X2a9qKcZgVn019zSrnWxtChkfDGJarOoPFtT2noN 63gBEXXW5Q5gVG0jJwofhF92BUSgmvKlZQBtMfLVDneFyuFX/zJRb2BkiPH2z6KTPTcg iS1v50hnZePI+dhIgJfZXCqptD9EV8rvqcDJnaZ40EO6qaUdgmNYYuThMNbzSBoAp4he pdsjGHKbx2kIhf+ginmx535c3UOSTwm0jxOGx2kjbWvOHIpXJ9DJbracHxfUNuwjS95q QJOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=PgEYoFwhnRs0cTBPEtfHuJ9ttJNNV7lL1c0MfXEk4z8=; b=ZJIVS4i0npQCtUPUEKPe034wdfo2/VzA3d5XUkS3HTdn2BBkoGwfT5+YcOOEt5fpq/ JvDapqh+HKCBs+HPJZzlF3S7hhiNrx3ZbOM7oU/8JMj8L1hw3EBdsTHhlFr2Xpw3KYZT O0UtIR7D0OEf7tyMSNjk172KOPjomUXmnnWYOKnKfvF/UxQzO7sdKMh5tDXhNv7snIcS asH+KN72XWJGAztXTLYyzFlzENwDFelaBBK+lSmftoPwUApBjXpe+7Z2HBHuXQuRB4lL 4QBsLw1WdafB6JuJb8PirOHc3daPlEYsNKek4WQsm4Rpp5q89kUBwEgAg57/gJLf/UAo 8cxw== X-Gm-Message-State: AE9vXwNClGbqaSxYnqeP7YB4SR0ZA8eWknnjhHTSizTlYNQBMCc7CsVcx5eaPJwnu6eZ+w== X-Received: by 10.66.76.106 with SMTP id j10mr5123756paw.65.1473416586135; Fri, 09 Sep 2016 03:23:06 -0700 (PDT) Received: from calancha-pc (57.92.100.220.dy.bbexcite.jp. [220.100.92.57]) by smtp.gmail.com with ESMTPSA id tj5sm4132205pab.37.2016.09.09.03.23.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Sep 2016 03:23:05 -0700 (PDT) From: Tino Calancha X-Google-Original-From: Tino Calancha Date: Fri, 9 Sep 2016 19:23:02 +0900 (JST) X-X-Sender: calancha@calancha-pc To: Eli Zaretskii Subject: Re: bug#24393: 25.1.50; image-mode ignore the image :scale In-Reply-To: <83a8fh8pl0.fsf@gnu.org> Message-ID: References: <83pooe8g90.fsf@gnu.org> <83a8fh8pl0.fsf@gnu.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 24393 Cc: 24393@debbugs.gnu.org, Tino Calancha X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Fri, 9 Sep 2016, Eli Zaretskii wrote: > Isn't there something wrong with the logic from the following fragment > of image-toggle-display-image? The comment certainly seems to have it > backwards, or at least in contradiction to what > image-transform-fit-to-width expects. > > ;; If we have a `fit-width' or a `fit-height', don't limit > ;; the size of the image to the window size. > (edges (and (null image-transform-resize) > (window-inside-pixel-edges > (get-buffer-window (current-buffer))))) > > I think 'edges' should be non-nil if image-transform-resize is > non-nil, no? I think is OK. Maybe i would adjust the comment a bit, because `image-transform-resize' can also be a number (set by `image-transform-set-scale'): i would say: ;; If `image-transform-resize' is non-nil, don't limit ;; the size of the image to the window size. I think the logic is as follows: The proportion width/height is an invariant of this transformation. If you call `image-transform-fit-to-width', your image width will occupy all the window width. Then, the height is increased in the same proportion as the width, so the final image height may be longer than the window height. That's OK. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 09 09:16:34 2016 Received: (at 24393) by debbugs.gnu.org; 9 Sep 2016 13:16:34 +0000 Received: from localhost ([127.0.0.1]:54253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biLfV-0001TT-WA for submit@debbugs.gnu.org; Fri, 09 Sep 2016 09:16:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biLfU-0001TF-CR for 24393@debbugs.gnu.org; Fri, 09 Sep 2016 09:16:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biLfL-0001Gq-Rn for 24393@debbugs.gnu.org; Fri, 09 Sep 2016 09:16:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biLfL-0001GC-Nv; Fri, 09 Sep 2016 09:16:23 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2128 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1biLfH-0005Hn-U8; Fri, 09 Sep 2016 09:16:22 -0400 Date: Fri, 09 Sep 2016 16:15:58 +0300 Message-Id: <837fal8b8x.fsf@gnu.org> From: Eli Zaretskii To: Tino Calancha In-reply-to: (message from Tino Calancha on Fri, 9 Sep 2016 19:23:02 +0900 (JST)) Subject: Re: bug#24393: 25.1.50; image-mode ignore the image :scale References: <83pooe8g90.fsf@gnu.org> <83a8fh8pl0.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 24393 Cc: 24393@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) > From: Tino Calancha > Date: Fri, 9 Sep 2016 19:23:02 +0900 (JST) > cc: Tino Calancha , 24393@debbugs.gnu.org > > > ;; If we have a `fit-width' or a `fit-height', don't limit > > ;; the size of the image to the window size. > > (edges (and (null image-transform-resize) > > (window-inside-pixel-edges > > (get-buffer-window (current-buffer))))) > > > > I think 'edges' should be non-nil if image-transform-resize is > > non-nil, no? > I think is OK. Maybe i would adjust the comment a bit, because > `image-transform-resize' can also be a number (set by > `image-transform-set-scale'): i would say: > ;; If `image-transform-resize' is non-nil, don't limit > ;; the size of the image to the window size. > > I think the logic is as follows: > The proportion width/height is an invariant of this transformation. > If you call `image-transform-fit-to-width', your image width will occupy > all the window width. Then, the height is increased in the same > proportion as the width, so the final image height may be longer than > the window height. That's OK. When image-transform-fit-to-width sets image-transform-resize to the symbol 'fit-width', image-toggle-display-image will not pass any dimensions to create-image. So how will the image be resized at all in this case? What am I missing? And how do you explain the assertion violation in this case, anyway? What are the window dimensions in pixels? From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 09 09:51:15 2016 Received: (at 24393) by debbugs.gnu.org; 9 Sep 2016 13:51:15 +0000 Received: from localhost ([127.0.0.1]:54276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biMD5-0002JO-6w for submit@debbugs.gnu.org; Fri, 09 Sep 2016 09:51:15 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:36132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biMD3-0002JC-Ht for 24393@debbugs.gnu.org; Fri, 09 Sep 2016 09:51:13 -0400 Received: by mail-pa0-f48.google.com with SMTP id id6so28664482pad.3 for <24393@debbugs.gnu.org>; Fri, 09 Sep 2016 06:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=uctNYzz8uF+HOQdk9CkLqYwhkMHjZEVy5YaNZOw+9aM=; b=uWBsnc3GFGhpOI9LqgyLz1gwkUtiNzcwid9rRBQ04v589hailvZ3GJm9QCmo7PTGZv ZOUNkZcrHT1uNRYMpWK/Y7RHkH8EQ0mihrBTcchP7RmIXDJ+hI03le5ftUISMTX4Te2H 8OWJvoDTVxL8969scYmk533Y9mDMULnzN1ODNax+KhPCeSEuzRUsgVxtuG1Rsh/HIHvV BsGGmxwJ7OM3UUsUa8h1ypgK0Vt1P+fgImiCJGoEuqApCrNMe4NRoBKFKFdEUKWj/VJe /mmsPeHbd++Pqx3okzMJDN5NoesGvKImkKLwMK0GpdFyeyKMwhsx4VslRU237iwu4JvV dqDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=uctNYzz8uF+HOQdk9CkLqYwhkMHjZEVy5YaNZOw+9aM=; b=aCjU+K35jsDUWzrqzY6HfkaR5SnxmILjayjmmSt2zQ7NxhqtZL9gcxVjarySsXasqG 8GrWW7z8i7ijUvxSI8w0wGpedpX2FZt4/4lho/At4HguW0u+gLtrzDZxdNYcfPdaG41f kz6zED2ubPelOy5neJZswfWLAhAgGyA7JOeNrkIxNAPWrqxYiANT+0wd+c+DcgAZNL1B beGNWOyA55Y9wVyVq0T/OxKkZVSFFdQ4oZWh5sDFjc9sngIGIezItbDCRpB+09AtF0oG GsB34WMab8zrCQx+mBmHxfFgNCwakQ8aa8q9t1VU8h/Bs4VcO0U9L7yHAjXylUkCsoOr A5Ng== X-Gm-Message-State: AE9vXwNgKbz/p96zOCUzMTDp3mCSFdd3iiWca4JpKA4y1ACE4F48jjghSI2xi47lLw2Ecg== X-Received: by 10.66.190.200 with SMTP id gs8mr6915501pac.42.1473429067629; Fri, 09 Sep 2016 06:51:07 -0700 (PDT) Received: from calancha-pc (57.92.100.220.dy.bbexcite.jp. [220.100.92.57]) by smtp.gmail.com with ESMTPSA id d6sm5689951pfe.37.2016.09.09.06.51.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Sep 2016 06:51:07 -0700 (PDT) From: Tino Calancha X-Google-Original-From: Tino Calancha Date: Fri, 9 Sep 2016 22:51:04 +0900 (JST) X-X-Sender: calancha@calancha-pc To: Eli Zaretskii Subject: Re: bug#24393: 25.1.50; image-mode ignore the image :scale In-Reply-To: <837fal8b8x.fsf@gnu.org> Message-ID: References: <83pooe8g90.fsf@gnu.org> <83a8fh8pl0.fsf@gnu.org> <837fal8b8x.fsf@gnu.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 24393 Cc: 24393@debbugs.gnu.org, Tino Calancha X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Fri, 9 Sep 2016, Eli Zaretskii wrote: >> From: Tino Calancha >> Date: Fri, 9 Sep 2016 19:23:02 +0900 (JST) >> cc: Tino Calancha , 24393@debbugs.gnu.org >> >>> ;; If we have a `fit-width' or a `fit-height', don't limit >>> ;; the size of the image to the window size. >>> (edges (and (null image-transform-resize) >>> (window-inside-pixel-edges >>> (get-buffer-window (current-buffer))))) >>> >>> I think 'edges' should be non-nil if image-transform-resize is >>> non-nil, no? >> I think is OK. Maybe i would adjust the comment a bit, because >> `image-transform-resize' can also be a number (set by >> `image-transform-set-scale'): i would say: >> ;; If `image-transform-resize' is non-nil, don't limit >> ;; the size of the image to the window size. >> >> I think the logic is as follows: >> The proportion width/height is an invariant of this transformation. >> If you call `image-transform-fit-to-width', your image width will occupy >> all the window width. Then, the height is increased in the same >> proportion as the width, so the final image height may be longer than >> the window height. That's OK. > > When image-transform-fit-to-width sets image-transform-resize to the > symbol 'fit-width', image-toggle-display-image will not pass any > dimensions to create-image. So how will the image be resized at all > in this case? What am I missing? It is done inside `image-toggle-display-image'. Maybe the word 'toggle' inside this function is misleading: indeed it looks more than a toggle. This 'toggle' calls `image-transform-properties' which calculate the resize for 'fit-width/'fit-height cases. > And how do you explain the assertion violation in this case, anyway? > What are the window dimensions in pixels? The same 'toggle' calls `image-transform-check-size' to check the sizes (do the cl-asserts). I guess, the origin of the problem is that these functions, `image-transform-properties' and `image-transform-check-size', don't use the image scale. After the commit mentioned in my original report, the scale of an image matters. We need somehow to teach `image-mode' to use :scale to fix this bug. We could fix this file amending those functions. I tried before and i didn't like this approach. I also suggested in https://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00159.html that if image-mode.el uses more the API in image.el (maybe extending the API a bit ), then this bug could get fix easily; currently both files define resizes and rotations; for me it has much sense that, if the API already provide those functionalities, then image-mode.el just use them: one source of truth, easier to maintain. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 26 11:59:33 2019 Received: (at 24393) by debbugs.gnu.org; 26 Sep 2019 15:59:33 +0000 Received: from localhost ([127.0.0.1]:44432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDWB3-0007Sp-7q for submit@debbugs.gnu.org; Thu, 26 Sep 2019 11:59:33 -0400 Received: from quimby.gnus.org ([80.91.231.51]:34898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDWAx-0007SQ-Hj for 24393@debbugs.gnu.org; Thu, 26 Sep 2019 11:59:32 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDWAs-0004j8-Og; Thu, 26 Sep 2019 17:59:25 +0200 From: Lars Ingebrigtsen To: Tino Calancha Subject: Re: bug#24393: 25.1.50; image-mode ignore the image :scale References: Date: Thu, 26 Sep 2019 17:59:22 +0200 In-Reply-To: (Tino Calancha's message of "Thu, 8 Sep 2016 21:14:26 +0900 (JST)") Message-ID: <874l0zrqud.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Tino Calancha writes: > emacs -Q IMAGE ; IMAGE is the file name of an image file > M-x: image-transform-fit-to-width > ;; assertion fails. The image width is bigger than the window width. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 24393 Cc: 24393@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tino Calancha writes: > emacs -Q IMAGE ; IMAGE is the file name of an image file > M-x: image-transform-fit-to-width > ;; assertion fails. The image width is bigger than the window width. I'm unable to reproduce this bug in Emacs 27. Are you still seeing this? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 26 11:59:33 2019 Received: (at control) by debbugs.gnu.org; 26 Sep 2019 15:59:33 +0000 Received: from localhost ([127.0.0.1]:44430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDWB2-0007Sm-Pu for submit@debbugs.gnu.org; Thu, 26 Sep 2019 11:59:33 -0400 Received: from quimby.gnus.org ([80.91.231.51]:34912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDWB0-0007SZ-TT for control@debbugs.gnu.org; Thu, 26 Sep 2019 11:59:31 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDWAx-0004jF-A2 for control@debbugs.gnu.org; Thu, 26 Sep 2019 17:59:29 +0200 Date: Thu, 26 Sep 2019 17:59:27 +0200 Message-Id: <8736gjrqu8.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #24393 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 24393 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 24393 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 26 13:42:48 2019 Received: (at 24393) by debbugs.gnu.org; 26 Sep 2019 17:42:48 +0000 Received: from localhost ([127.0.0.1]:44705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDXmy-0007ya-2m for submit@debbugs.gnu.org; Thu, 26 Sep 2019 13:42:48 -0400 Received: from mail-wm1-f42.google.com ([209.85.128.42]:38894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDXmw-0007yM-Qu for 24393@debbugs.gnu.org; Thu, 26 Sep 2019 13:42:47 -0400 Received: by mail-wm1-f42.google.com with SMTP id 3so3484262wmi.3 for <24393@debbugs.gnu.org>; Thu, 26 Sep 2019 10:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=rEN9iFTp2mJ2hpoWvP9vG3bjHMZ0QbG3GGt2TpI4KRM=; b=D1ecv+L6UKc520a0bxHQd6c/GZYb/em3VbVtBpGV4Mglmr2jEbH9vFfL+dmBuEPF6W jyABD+P8ufRGvDhvoTXTqUFpy4643jtsP/NK54T+RcjQz8c1Y44Y7XxS//MMg9XEFJJD GqLN8Gam9HurcQE6SmqwBY7EHVD2ZEXJa+so46T7nqR58e1ZnwDuSMlRGx/i9D9Jm8nd VQJfx8CKlpCnINdAUs14v/CRU/jH9dqL6C4Ktd03sblNRZXaW4Aebk96FrkN+JfZySqJ w+9uYcOY90amcvJvtbTqaEhMDef2Js2z6muXX+FymOednVRHjRLTe3rstaaxrWu9Y3zZ D3UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=rEN9iFTp2mJ2hpoWvP9vG3bjHMZ0QbG3GGt2TpI4KRM=; b=CvF/k+CyoIJIN+PTnNiQh78Sb2P2T2rqgqPH3JxRNspnArU3ChFAZ7G1l+2Thl8QYS 55b54bcGv7IYQAaiPYBih/qj36bb1gcn8MKx78tQ90mUoFiFZy2IiGwVUjovBO9gdzqL n+QqZNHB40vJk+FiWMdHLSeOHA3D33GJ8MVTnhaScpjpv3wG9hhmqFymIaagefHqFtYt d97i5Zcyw1cQCmmYDAPjUnK4IZSMwLP/3yWursZYhUJCHm/1RzQdEmnt0bzaLvaPC0JL IlI/tCB5itsyttR/pthkdhbI1/tlOvolMagc337Ttw+dePDeRKFX3bA7iBxyJi9iR99h ubiw== X-Gm-Message-State: APjAAAV75pZaHsk+xSma/LUTjVrJbR8WF8HuJdC6RRn0j5QmPqQQI4yp qm8S4SR3fHxivSTVjQF5dDU= X-Google-Smtp-Source: APXvYqxAOMls4h7zEbax1yIxAtGfg9sA3pXFtJHLUMn3pPQVcgHqn95pIk5s6gkQfSZNOxx/8O6Fhw== X-Received: by 2002:a1c:f714:: with SMTP id v20mr4187131wmh.55.1569519760922; Thu, 26 Sep 2019 10:42:40 -0700 (PDT) Received: from calancha-pc.dy.bbexcite.jp ([2a02:8308:70c5:4d00:a2fc:1435:82df:8682]) by smtp.gmail.com with ESMTPSA id o70sm4047847wme.29.2019.09.26.10.42.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2019 10:42:39 -0700 (PDT) From: Tino Calancha X-Google-Original-From: Tino Calancha Date: Thu, 26 Sep 2019 19:42:38 +0200 (CEST) X-X-Sender: calancha@calancha-pc.dy.bbexcite.jp To: Lars Ingebrigtsen Subject: Re: bug#24393: 25.1.50; image-mode ignore the image :scale In-Reply-To: <874l0zrqud.fsf@gnus.org> Message-ID: References: <874l0zrqud.fsf@gnus.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 24393 Cc: 24393@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, 26 Sep 2019, Lars Ingebrigtsen wrote: > Tino Calancha writes: > >> emacs -Q IMAGE ; IMAGE is the file name of an image file >> M-x: image-transform-fit-to-width >> ;; assertion fails. The image width is bigger than the window width. > > I'm unable to reproduce this bug in Emacs 27. Are you still seeing > this? No, I don't see this anymore; and I am using `image-transform-fit-to-width' `image-transform-fit-to-height' quite often. It seems fixed. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 26 13:49:32 2019 Received: (at 24393) by debbugs.gnu.org; 26 Sep 2019 17:49:33 +0000 Received: from localhost ([127.0.0.1]:44719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDXtU-0001kx-Gp for submit@debbugs.gnu.org; Thu, 26 Sep 2019 13:49:32 -0400 Received: from quimby.gnus.org ([80.91.231.51]:37482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDXtR-0001kl-V7 for 24393@debbugs.gnu.org; Thu, 26 Sep 2019 13:49:31 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDXtM-0005wk-IL; Thu, 26 Sep 2019 19:49:26 +0200 From: Lars Ingebrigtsen To: Tino Calancha Subject: Re: bug#24393: 25.1.50; image-mode ignore the image :scale References: <874l0zrqud.fsf@gnus.org> Date: Thu, 26 Sep 2019 19:49:24 +0200 In-Reply-To: (Tino Calancha's message of "Thu, 26 Sep 2019 19:42:38 +0200 (CEST)") Message-ID: <87lfubkkwr.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Tino Calancha writes: > No, I don't see this anymore; and I am using > `image-transform-fit-to-width' `image-transform-fit-to-height' quite > often. It seems fixed. Thanks; closing. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 24393 Cc: 24393@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tino Calancha writes: > No, I don't see this anymore; and I am using > `image-transform-fit-to-width' `image-transform-fit-to-height' quite > often. It seems fixed. Thanks; closing. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 26 13:49:39 2019 Received: (at control) by debbugs.gnu.org; 26 Sep 2019 17:49:39 +0000 Received: from localhost ([127.0.0.1]:44722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDXta-0001lN-Rd for submit@debbugs.gnu.org; Thu, 26 Sep 2019 13:49:39 -0400 Received: from quimby.gnus.org ([80.91.231.51]:37498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDXtZ-0001lE-Ha for control@debbugs.gnu.org; Thu, 26 Sep 2019 13:49:37 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDXtW-0005wt-PQ for control@debbugs.gnu.org; Thu, 26 Sep 2019 19:49:36 +0200 Date: Thu, 26 Sep 2019 19:49:34 +0200 Message-Id: <87k19vkkwh.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #24393 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 24393 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 24393 quit From unknown Wed Jun 18 23:12:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 25 Oct 2019 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator