From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#25583: 26.0.50; :width/:max-width and vice versa in images Date: Sat, 15 Jul 2017 02:48:08 +0200 Message-ID: <878tjqh6ev.fsf@mouse> References: <83efzjw7cz.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500079763 14980 195.159.176.226 (15 Jul 2017 00:49:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Jul 2017 00:49:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 25583@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 15 02:49:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWBGi-0003Kk-Hl for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jul 2017 02:49:12 +0200 Original-Received: from localhost ([::1]:40331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWBGn-0006tp-Nm for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jul 2017 20:49:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWBGc-0006tj-NK for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 20:49:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWBGY-0003i2-QK for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 20:49:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36745) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWBGY-0003hw-Mk for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 20:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dWBGY-0007Kg-Gj for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 20:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jul 2017 00:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25583 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 25583-submit@debbugs.gnu.org id=B25583.150007970128133 (code B ref 25583); Sat, 15 Jul 2017 00:49:02 +0000 Original-Received: (at 25583) by debbugs.gnu.org; 15 Jul 2017 00:48:21 +0000 Original-Received: from localhost ([127.0.0.1]:39422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWBFq-0007Je-3e for submit@debbugs.gnu.org; Fri, 14 Jul 2017 20:48:21 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:46229) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWBFl-0007JR-Fd for 25583@debbugs.gnu.org; Fri, 14 Jul 2017 20:48:17 -0400 Original-Received: from cm-84.209.243.26.getinternet.no ([84.209.243.26] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dWBFg-0006TG-P6 for 25583@debbugs.gnu.org; Sat, 15 Jul 2017 02:48:12 +0200 In-Reply-To: (Lars Ingebrigtsen's message of "Tue, 31 Jan 2017 17:02:16 +0100") 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" Xref: news.gmane.org gmane.emacs.bugs:134574 Archived-At: Lars Ingebrigtsen writes: > And then this is done, and :max-height is ignored. I've now implemented this, and in doing so, simplified compute_image_size quite a bit. :-/ I'm glad I had written all those image sizing tests in advance, otherwise I would be tempted to say there must be something wrong somewhere, because the new code is less... er... convoluted. I think. But it even seems to work in practice, which is something of a miracle. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no