From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4FZKOHIvqmZYVgAA62LTzQ:P1 (envelope-from ) for ; Wed, 31 Jul 2024 12:34:59 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 4FZKOHIvqmZYVgAA62LTzQ (envelope-from ) for ; Wed, 31 Jul 2024 14:34:59 +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=CMSBzMPp; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722429298; 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: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=SC77YMwEe7e9MqYwqQkaFVLm9sL2Qx9nk0yo5ofqS94=; b=sjwpchbzKjJliWJ7T90mFHnv7XhJiTac6Kh7Uk3Ag2e7gCa6qyh4ySIlWkgzibQKV/uGiW iuAAMa0ub1uZlf4BIf5AmXWc944FzrBxTKF2xpHWMaur5O3Z8lg+TJFSXmTj//Xk/uAs+J NuiPoKmHKFsP7puU4ZBZRYvLUDmi9XzFD7LKTkPbNtIbNyeJautVNR0tqgJwuS4FuWGCD/ 6p14C3Abap/BKSRbXujEoIYT55vUXLVnMK16FQgvNe7ZVN5uLMxfHLunjXSXOaLAiYWPHb nlWWvpuCXCpNrjKyKmjisQWeUE6ySipI7sBDLtHwwGZnpYIol0pM8dz/FKX1BQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722429298; a=rsa-sha256; cv=none; b=S8cOI281yL0J942JNxFIqdXOzoH9HjE+49y5Nu31a/1dWFAjxsld0YcP21BosDD3V2DSOH k6C8RHRpXiVw+UWmfYHvzDV7oXPLokuFldPsWuw7pgCPtmm1EOTPXa6WiAZWdo9I7j7h7C mNcdd0QMn7Ioghj2taKSLzBRc077UfNiQkomIgTDS/bP8FHSJo1qPl9D7IjSSH+VWxc1R0 vBC6AifTusOaziXl82qSPmuYjJFxHTwX6W1Q9fmtjDKtCn+j9WKtZX0c+yX1rrM7VqoM1D tECBUozgyX1vbzIZHW6Sh/yShy0JeXNlLRaxkQyc+LfFHKUDc4idUJFxxdo74Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=toadstyle-org.20230601.gappssmtp.com header.s=20230601 header.b=CMSBzMPp; dmarc=none; 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" 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 A4F401C34E for ; Wed, 31 Jul 2024 14:34:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZ8Vr-0004Ty-IK; Wed, 31 Jul 2024 08:33:03 -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 1sYWFO-0001bd-HN for emacs-orgmode@gnu.org; Mon, 29 Jul 2024 15:41:30 -0400 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sYWFM-0003cX-Jd for emacs-orgmode@gnu.org; Mon, 29 Jul 2024 15:41:30 -0400 Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-44fded90c41so20525061cf.3 for ; Mon, 29 Jul 2024 12:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1722282086; x=1722886886; darn=gnu.org; h=date:to:references:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=SC77YMwEe7e9MqYwqQkaFVLm9sL2Qx9nk0yo5ofqS94=; b=CMSBzMPpEFxPdrfxdCT3+epSIVUZR5USlRhzYnLGV8lalyJg+a+j5WBYkwkRmtDmIa Hawp503mfRveSZ1RlK1nfQduRclo28l+8XWl/VmzeF5DbBUAMYF7G7BL/u2svTiOnv97 45tIlGg6RSiQWVou7GzbCaS/6D1aqKxLEzoAomVZkKwrj0Uru9uEqSN9+O+NHEQcV0nm i2AnBGs7Yrxqe8rMCFRfnBRMTBaAFowTTmqCnKvfd4dlCNTpKltZ2JeR2G6d0kG0aJFZ XTMEDxbHVYJtgaDZ2fxLYHic5YKDfPQTXpVeKAtZUfPVjh4ctvxaAbPRSCbsxTu+IbkF m26g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722282086; x=1722886886; h=date:to:references: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=rR6Hi+HitAhY4mdcUdihQp8QSPN7Y1KzGeeYhhFNbkoshl5pMekZg8CBTetfYHgmsu rKVEQi1kMmZ12rxyKtkv/LWOVuIEJlaW1dGMj872Q2c1eVUyG33mZew0ROhKRlYXa5PI RXKyq+XAFPGLSlYQ9pndLRCgbpb7REmkc83B4B24aixAN4r6UjyDmpZxSBQ8Q/IwTRoi q9B2nyBsIEELHUh0iCkWwmxGvRfZnli1YPa7Gg6YALlleE7fZKodz12nHnFKBAZFYdAz Kmm4OpaG4aq8vnWTnAE9pezRGQOunIqq5dssmp7ZUZ/qq7VDFugCWGy03GLGPgU+ew/A NfaQ== X-Gm-Message-State: AOJu0Yy8rv69qkhCBf4PT48CquOVcfIdpuMba/HLqUTQmpotF8Aap3ek WozwfziM83HycXhf1dyZ4IBAc9XCawfLE4Dmevxt8c5qzDnNYHR29oV+rQsVO1Vow77vBFUVwKW E X-Google-Smtp-Source: AGHT+IELqTyd+u+k3aWj3g6B/NNXRl1jUrtqNTmJhyK4K6NfE45Hx1vGQkmhQruBhWGyQLj9m3tVLA== X-Received: by 2002:ac8:5808:0:b0:44f:feef:efe1 with SMTP id d75a77b69052e-45004f5eb77mr82194211cf.54.1722282085853; Mon, 29 Jul 2024 12:41:25 -0700 (PDT) Received: from smtpclient.apple ([70.107.172.48]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-44fe8172770sm44431451cf.46.2024.07.29.12.41.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jul 2024 12:41:25 -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 \(3815.100.3\)) 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: References: <6A2182FA-E074-4EC7-8950-DB4708F8D2AF@toadstyle.org> To: emacs-orgmode@gnu.org Date: Mon, 29 Jul 2024 15:41:23 -0400 X-Mailer: Apple Mail (2.3815.100.3) Received-SPF: pass client-ip=2607:f8b0:4864:20::833; envelope-from=spd@toadstyle.org; helo=mail-qt1-x833.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:56 -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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: A4F401C34E X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.07 X-Spam-Score: -8.07 X-TUID: +ECYBv/lNFIP 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/)