From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qHw4KkvdH2PsfgEAbAwnHQ (envelope-from ) for ; Tue, 13 Sep 2022 03:30:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sHpGKkvdH2NO7AAA9RJhRA (envelope-from ) for ; Tue, 13 Sep 2022 03:30:51 +0200 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 656F925A5C for ; Tue, 13 Sep 2022 03:30:51 +0200 (CEST) Received: from localhost ([::1]:48990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXulG-0005iK-8L for larch@yhetil.org; Mon, 12 Sep 2022 21:30:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXuk0-0005fC-Fy for emacs-orgmode@gnu.org; Mon, 12 Sep 2022 21:29:34 -0400 Received: from [39.171.215.24] (port=6094 helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXujx-000881-2K for emacs-orgmode@gnu.org; Mon, 12 Sep 2022 21:29:32 -0400 Received: by Mac-mini.local (Postfix, from userid 501) id 30012631FCA5; Mon, 12 Sep 2022 14:06:22 +0800 (CST) References: <631d472b.c80a0220.2b4b2.bf86SMTPIN_ADDED_BROKEN@mx.google.com> <87h71ew0m0.fsf@localhost> User-agent: mu4e 1.8.9; emacs 29.0.50 From: "Christopher M. Miles" To: Ihor Radchenko Cc: "Christopher M. Miles" , emacs-orgmode@gnu.org Subject: [ISSUE] Re: [PATCH] New: auto display inline images under subtree when `org-cycle'. Date: Mon, 12 Sep 2022 14:03:07 +0800 In-reply-to: Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 39.171.215.24 (deferred) Received-SPF: softfail client-ip=39.171.215.24; envelope-from=numbchild@gmail.com; helo=Mac-mini.local X-Spam_score_int: 69 X-Spam_score: 6.9 X-Spam_bar: ++++++ X-Spam_report: (6.9 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MSGID_MULTIPLE_AT=1, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_PBL=3.335, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL_NO_RDNS=1.119, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: reject 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: , Reply-To: numbchild@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663032651; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=68SybdVW5oMG7PajXiq/x8Cnb+wdEfHBgqleqoz6ip8=; b=BzvFDvaWBC0T6rSXjNrEXMD0MqlXDZlNjmAyRLkjGVKHT+UpRr8np5rKRp29CZ4BU0pKPy Q8Y1HfWTeomtKJFtl5NQSy/N0NXIElq1tLgi2lwcSc7CNZBJQ7DzsmRmfVUgq0zegEM09V q5kOdEotSKN838sbje6tsIr5xiVwKdXB+dhqGdqBP2YHrtfx1Ra8e83zt9KWmxODHHpd8I ICNxnPW/6ZKFRVewiw2ChrCpHd7V4eZ9uu2S5ZEvzatDHrxYA2/+MaCOzXVOxihhNgwjcw kjXcy/C1N1azzMVaEx60nUuQWAuhjbo76lF4IlKvGwLy5/c1VJerMm9RKYxd1g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663032651; a=rsa-sha256; cv=none; b=bFw7kbU806mxX0urJ1CCfSMZUwqpy1iAHtdkD8yvvDh8eLVwXK0oGq1IfQdklFYicKTimK c7ofOn5zKoAFeDKlgyD9DrP6P+omlUHq/Vub+HgKBH1bgoifZfdQY2zTfS2QApn6q4EYOs p3WPzdSMR5EObEwDWOO24mSuWqPPsnTh859WiSNes0uctylGvGShto6yxFD+avMG7V9VMC oC/Zb1HeajZ7vnFjZ+FOEQmK5i2kgjbK6i62EYpgPZnvysHeE+laWVR/L9QpDw8Sqfl1WS gY5fzo7kPsHRzIjuKpJ5fSrND7XWe2tX3/pDe1a/MVqe72gFI2CyZsg8b/8uEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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" X-Migadu-Spam-Score: 3.30 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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" X-Migadu-Queue-Id: 656F925A5C X-Spam-Score: 3.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6qIfDGhVlzwJ --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable "Christopher M. Miles" writes: > [[PGP Signed Part:Undecided]] > > Ihor Radchenko writes: > >> "Christopher M. Miles" writes: >> >>>> When I put it on beginning of org document, then preview inline images= , but those global attributes >>>> not affected. The inline images still display in actual image size. I = want to specify image size >>>> under headline properties. Is it possible to do this? >>> >>> I implemented this feature by written a hook. Hope this can be helpful >>> for someone who also has this needs. Here is the code: >> >> This looks useful. >> Would you be interested to write a patch? > > The is the new patch which updated the defcustom variable docstring has c= orrect description. > > [2. text/x-patch; 0001-org.el-Add-hook-function-to-auto-display-inline-im= ag.patch]... I found an issue of this patch, this patch logic will ignore existing ~#+AT= TR_ORG:~ size. How to let this patch code also obey the ~#+ATTR_ORG:~ size too? For example: * heading 1 :PROPERTIES: :INLINE-IMAGE-WIDTH: 100 :END: #+ATTR_ORG: :width 300 #+ATTR_LATEX: :width 3.0in #+ATTR_HTML: :width 300px [[file:image-displayed-in-300-width.png]] [[file:image-displayed-in-100-width.png]] =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmMezFsACgkQG13xyVro msPo1gf/RxrYsf44hkOFoAJ7wpf3H/uB3qHx7B8LNn21qtZ9/kOjQo/BJBbJT00e DXgDL4Bzy+sUYlK502hSg+Zowq6HFtAlgLCvJrHBIiEQHLXYX2xhES92wmqjxOo1 vx5b+S1yic8VgoQOk1om0yP5hhKGplB/BYsWops/RVatlA7o7kDaPw62qT+uJnge Rwp44nTzrLj7Y3sQPcJLIuK5Wl8DR6SQgvDKT2cBuEN5QVOudy6xmNQFNHHQtPNL rwg62xVWrRCEQLigxfYuX233RJRZcpJj6msvDXPkebTEm0qNLdiV0NfuZsDY+nu8 1HARvzwXvoPENvoxX+1cnnKKD0CeTg== =1wWb -----END PGP SIGNATURE----- --=-=-=--