From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id SGNIJUwvqmb7HwAA62LTzQ:P1 (envelope-from ) for ; Wed, 31 Jul 2024 12:34:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id SGNIJUwvqmb7HwAA62LTzQ (envelope-from ) for ; Wed, 31 Jul 2024 14:34:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=toadstyle-org.20230601.gappssmtp.com header.s=20230601 header.b=RV8Uz9d5; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722429260; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SC77YMwEe7e9MqYwqQkaFVLm9sL2Qx9nk0yo5ofqS94=; b=rU2QkPyrmlmdpUQywygp5W2M7AjAjVBvNpKe2dxW0jePeRpAnarSNZEpMEWg/aj/drxKeo svHQfs6uXk2cDyi75YdsBNn8P9k2tlnfbkNe/bh3KDg8A2SagBIxQ+unTVIwjmdTCXofnw 0XtBl3rHfjk24IT54jv4uZdransJSonIMS5czWFNJZR70/HSEeQgk6T6aepaSMIaGgQ7hM i+gh+meLy1qEHcwefOhzcemm6bhvzz6b3EGOuAbkBXRvr0pfodDKy+90pfRyuCIWsV+WCN lVDXSKhiHVOdFLvEvRY7YISphY77IaprwZj3zQxD5PANns7B+eQI6rdeO9uzaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=toadstyle-org.20230601.gappssmtp.com header.s=20230601 header.b=RV8Uz9d5; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722429260; a=rsa-sha256; cv=none; b=mq0IlUKyZdAqTBuwqaPFyrXTKlxWgP52zMNjOGII91gV3hPicTrArh8cPI4x7AYyvpLpfE ub0lVxwFNMsaN2vaK7eV6G/ShBbYjLyM0eRVDRBSVcnE7pxbM+UzW4vv3h5FF1vuIUVT/M f8n4gvaD8vRa1fropmGTsN1VslSzxdsWC2YfGukmbgJG35LR9uboI3VHIsN91UDWb9Oi2B Ikc6SL8rCaP8I6hMmmK5aiDN3vee1qIaZFOj71Wxy0lCNejqw7yg+a2izbPHYwDZpz6Iet oxP+TF5hLPYixKkgSFWAs0POzX8jMQ6hvg7B8jMgsoE7eUK+Tyg+ekt+0GAjbw== 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 4ED933A9DA for ; Wed, 31 Jul 2024 14:34:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZ8Vp-00047n-L9; Wed, 31 Jul 2024 08:33:01 -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 1sXP7p-0006Wk-Ex for emacs-orgmode@gnu.org; Fri, 26 Jul 2024 13:53:05 -0400 Received: from mail-qv1-xf36.google.com ([2607:f8b0:4864:20::f36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sXP7l-0008FH-Nh for emacs-orgmode@gnu.org; Fri, 26 Jul 2024 13:53:04 -0400 Received: by mail-qv1-xf36.google.com with SMTP id 6a1803df08f44-6b7b349a98aso7187166d6.3 for ; Fri, 26 Jul 2024 10:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1722016380; x=1722621180; darn=gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=SC77YMwEe7e9MqYwqQkaFVLm9sL2Qx9nk0yo5ofqS94=; b=RV8Uz9d5V0U6D1Ua2oAHaDoW5ABbaOgQaJvblhnZZAjozrvnbIqise9PtfZJOJH8M8 dBwui6vCe9tB2Bs0T5nOBRPx0uzJeC2vF6KKaP/QEu1VQk/yxHcpDIPnOofmRfDfcdHi M7rItd7xiMiHHKQb/N+AJRSnbUZfYA2WmurBuD/IxDO/U3tu3yNybGtVgODBrwjmJBFp D5NxfyfrtjD0u0iHLs8+VceIONL2M+xSQlGPUGCNim0Mh4TERDBH9DsQkwGmFyQ5OH8k qI2mOFV/GUGI5DEc3vY+4Vkl6v8lWiCyyr70zAA59SF0VPhwAMysLj9p4IcUHzDwtXKs LFag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722016380; x=1722621180; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SC77YMwEe7e9MqYwqQkaFVLm9sL2Qx9nk0yo5ofqS94=; b=qDpyAFXSCZEdabg8vBKNW5QFGG54aP8DjQMEUQXNe/Sqd5ar1D4sdGKMTw+IH8g6xG bRyz83yM7ljw34SBTxhQvz8TzKylvr/tHzWOXIHypd0zb/yi/hGL+ZChBWMaoWOnnNcz SlafRmQ8Fj8vPlL7iy4StAHv8QkXL8u1j+Uy2t8dPBnBA/2CXnaGAP8mOFH+EUhYS/KS ESyQ+xvnR4a+BoNWAbq6Aqly7WKA/yWRKIFFJ5u+zDt7uJDTiqDXVwRrLS6zOMkflGoq U2f5LLKePtH66U0NbHxnnoMcJa97z2bLncPvoZ8G/a66XPUahVkKK1s+rsXmeKiEM2md VnGQ== X-Gm-Message-State: AOJu0YztC66UvK7EvGKQDQrTCgnRTJcEvb8jWY3GbTIPIOCRKGydOROP PYfE4/u0Q78Tvz54N1HtaBfIr2fM7jtpMrj0/qzhx7QgXIx1i7k3E3yS90RbzqNrJORsWNkeII9 MYb4= X-Google-Smtp-Source: AGHT+IHsyjKLC0AX3jJYx6ZDr8XQkwt1HI2+JI6Xa+wREQj4KsPMvGX5t1cwtvjwWE8sGOg6+Hb+UQ== X-Received: by 2002:a05:6214:b61:b0:6b0:7ea7:4189 with SMTP id 6a1803df08f44-6bb55aa5611mr5958766d6.42.1722016379701; Fri, 26 Jul 2024 10:52:59 -0700 (PDT) Received: from smtpclient.apple ([70.107.172.48]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6bb3fab9bb8sm18800006d6.110.2024.07.26.10.52.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jul 2024 10:52:59 -0700 (PDT) From: Sean Devlin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3813.100.4\)) Subject: [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/)] Message-Id: <6A2182FA-E074-4EC7-8950-DB4708F8D2AF@toadstyle.org> Date: Fri, 26 Jul 2024 13:52:50 -0400 To: emacs-orgmode@gnu.org X-Mailer: Apple Mail (2.3813.100.4) Received-SPF: pass client-ip=2607:f8b0:4864:20::f36; envelope-from=spd@toadstyle.org; helo=mail-qv1-xf36.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 31 Jul 2024 08:32:55 -0400 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-Migadu-Queue-Id: 4ED933A9DA X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.07 X-Spam-Score: -8.07 X-TUID: MOkYmyNTe/DM Hi folks, I've found a case where an inline image's maximum width is computed incorrectly in Org 9.7.8. Here's a recipe: 1. Find an image wider than a default Emacs frame 2. Create an Org file with these contents (between the lines): =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]] * heading 1 [[file:/path/to/wide/image.png]] ** heading 2 [[file:/path/to/wide/image.png]] *** heading 3 [[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= 3. emacs -Q 4. Evaluate these forms: (add-to-list 'load-path "/path/to/org-9.7.8/") (require 'org) (setq org-image-max-width 'window) (setq org-startup-indented t) 5. Open the file from step 2 6. C-c C-x C-v to toggle inline image display 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.) Thanks! Emacs : GNU Emacs 29.4 (build 1, aarch64-apple-darwin21.6.0, NS = appkit-2113.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/)