From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id mKzUGAfZq2YYIwAA62LTzQ:P1 (envelope-from ) for ; Thu, 01 Aug 2024 18:50:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id mKzUGAfZq2YYIwAA62LTzQ (envelope-from ) for ; Thu, 01 Aug 2024 20:50:47 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=runbox.eu header.s=selector1 header.b=KtTwRUdb; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=runbox.eu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722538247; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=px9TsuZTBgqB22lOXRrDXolixBtOfuGvBzPue5Ie+0o=; b=S1pvUwgXWjlbPDoi4WDwB8vOa7KTlKI0cSV8AgM3HVlFnyd9nM9xm/Pi9yRBfjcMlUWnjH hnD2HPF89X9yHlHErLrRzFDnXbEtj/B4EGbKfWVL+/gC6W9XWxgA5gXalMBH4044egUGxP agf3OuUwUL6mZOQ/gfbXQH2XAZxTbAf6NP0eUFCuSer+AXyrntDYA4pmE02VH3FfYwJrou nHxwTZZlMAMN9SY2lwAqZB1VBBxGtShFi8JoKsLywLpmUeOVAKQUnuLRT8qM0mZndJu64Y qgmyyaCSOxPJiFYBtLwvwPymSBEG3/ZYiqIey8tbTcXEhPzYebEZ4JU5vd5J8Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=runbox.eu header.s=selector1 header.b=KtTwRUdb; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=runbox.eu ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722538247; a=rsa-sha256; cv=none; b=ulXb4fRxLGQtnWAP6yFNcORwc2tEPlkWABzz8CUf1alkhtUAK3a9EMMmcSZkxM1O7nRGVL SJxxin4Mveb2QKWmRLWlJtFzRJVrbsB1xrv1OUzCcZG3tYdcbz9WWWTyFJjdmIU7TPLOQ6 In9If6Y4v4KzqI1siJE+tn8WyQGUaLSqNVbfI2IZK7IxPgYOoqQNEUKwL1oPkXDCOm7SdH IsUyiAndcZnLyg+aT6CvxakapLhAu2sK7VAna6fCfltoOOWS+1qpn27ecAMjAewKzf/UoU T3BRqmWCxqsSdCMTN/wMQYafRJ3Zrf3PwemxYka5mucS8MzfpYQG4Bd/ovtPkQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4B2A326B21 for ; Thu, 1 Aug 2024 20:50:46 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZas3-0007U7-7a; Thu, 01 Aug 2024 14:49:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZary-0007Ts-Ft for emacs-orgmode@gnu.org; Thu, 01 Aug 2024 14:49:46 -0400 Received: from mailtransmit05.runbox.com ([185.226.149.38]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZart-000345-Aa for emacs-orgmode@gnu.org; Thu, 01 Aug 2024 14:49:44 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1sZape-0019zl-O0 for emacs-orgmode@gnu.org; Thu, 01 Aug 2024 20:47:22 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.eu; s=selector1; h=Message-Id:In-Reply-To:References:Date:Subject:CC:To:From: MIME-Version:Content-Transfer-Encoding:Content-Type; bh=px9TsuZTBgqB22lOXRrDXolixBtOfuGvBzPue5Ie+0o=; b=KtTwRUdbhqMiVAU3qpgpYV3Eo8 wPf6jhYaeVxYzEh7BtqmbvD2Ln9NhCNxHNe5F9ak1pNtHt2OP25LwgilFARNWyXTdWxDBf6tsvy8Y D3UkpEcEu+iL3u0J7raGp/HOB8nRI1XqfO9WWV8DLuACvg/d4xw9RAgRR2B81Uv3tu3yOZOOzE9MG Rw7vcHSyRGpPTehgWXIEFyTPtZ5HLFJ3nNjG2DwX3hrZHvOISbdjh1D4yyV1sAaFu+UGHzSGO+X0F ymZTZvYaWTtAObvFkPoah6Eg5oaT0UYGa6miW9yoS8maUZVT9uPJ3KrvYxPR0Q3iQEfhJQ/ta8Fzw naBkswPg==; Received: from [10.9.9.127] (helo=rmmprod05.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1sZape-00066x-9S; Thu, 01 Aug 2024 20:47:22 +0200 Received: from mail by rmmprod05.runbox with local (Exim 4.86_2) (envelope-from ) id 1sZape-0006hD-7w; Thu, 01 Aug 2024 20:47:22 +0200 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [Authenticated alias (1196375)] by runbox.com with http (RMM6); Thu, 01 Aug 2024 18:47:22 GMT From: "=?UTF-8?Q?Martin=20Edstr=C3=B6m?=" To: "Sean Devlin" CC: "emacs-orgmode" Subject: Re: [BUG] Org-image-max-width doesn't account for org-indent-mode [9.7.8 (9.7.8-7f2ce8 @ /tmp/bug/elpa/org-9.7.8/)] Date: Thu, 01 Aug 2024 20:47:22 +0200 (CEST) X-RMM-Aliasid: 1196375 X-Mailer: RMM6 References: <6A2182FA-E074-4EC7-8950-DB4708F8D2AF@toadstyle.org> In-Reply-To: <6A2182FA-E074-4EC7-8950-DB4708F8D2AF@toadstyle.org> Message-Id: Received-SPF: pass client-ip=185.226.149.38; envelope-from=meedstrom@runbox.eu; helo=mailtransmit05.runbox.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.97 X-Migadu-Queue-Id: 4B2A326B21 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.97 X-TUID: HOGsS05eN20B To my untrained eye, this bug seems like it must have the same cause as thi= s other bug: https://lists.gnu.org/archive/html/emacs-orgmode/2024-07/msg00= 365.html What I find surprising is how it hasn't been dealt with in 16 years. Perha= ps it used to work correctly and only recently broke? I'm reading the org-indent source code, and it seems to use the Emacs built= -in text properties "line-prefix" and "wrap-prefix". So these could be con= sidered Emacs bugs rather than Org bugs, possibly. Martin Edstrom On Fri, 26 Jul 2024 13:52:50 -0400, Sean Devlin wrote: > Hi folks, >=20 > I've found a case where an inline image's maximum width is computed > incorrectly in Org 9.7.8. Here's a recipe: >=20 > 1. Find an image wider than a default Emacs frame > 2. Create an Org file with these contents (between the lines): >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > [[file:/path/to/wide/image.png]] >=20 > * heading 1 >=20 > [[file:/path/to/wide/image.png]] >=20 > ** heading 2 >=20 > [[file:/path/to/wide/image.png]] >=20 > *** heading 3 >=20 > [[file:/path/to/wide/image.png]] > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >=20 > 3. emacs -Q > 4. Evaluate these forms: >=20 > (add-to-list 'load-path "/path/to/org-9.7.8/") > (require 'org) > (setq org-image-max-width 'window) > (setq org-startup-indented t) >=20 > 5. Open the file from step 2 > 6. C-c C-x C-v to toggle inline image display >=20 > Observe that the images are cropped on the right in the amount of the > leading indentation added by org-indent-mode. If you scroll down, you > should see each successive image has a bit more cut off. (The first > image is displayed correctly, since it is not under a heading and has no > indentation.) >=20 > Thanks! >=20 > Emacs : GNU Emacs 29.4 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2= 113.60 Version 12.6.6 (Build 21G646)) > of 2024-07-24 > Package: Org mode version 9.7.8 (9.7.8-7f2ce8 @ /path/to/org-9.7.8/)