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 0OuMDH4TrGYuHwAA62LTzQ:P1 (envelope-from ) for ; Thu, 01 Aug 2024 23:00:14 +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 0OuMDH4TrGYuHwAA62LTzQ (envelope-from ) for ; Fri, 02 Aug 2024 01:00:14 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=JTjQpU9D; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722553214; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=OyC8WR0RudkQ5dUiKlSjF+hyBvgDPm9hx5uTVp8P2/I=; b=YKIOYhmWCpBASoAHhaa91KdvAMCiUbBe5LKAzVdK7Z+uYQz1x4/LQy9ZkMFpSa0guBIS5L kCdaMAFr2Au2K9VtI/rkCdCRL9gT8nDFuvr3/w7l7CHB1pw9N7sxUPSdJRHJVOaWQTGPBx SZbarFBX7glCctLVWlaPfFbfRNgYFsNQMoQJKM6Ju32jHpGD2on0SHFSLILGwsGNchlbe7 KvmC3uhaBCHzw4xcB+fiYWJlEMJ6SoZDMoN0Q9bHxi2AKa39hfUFLFjMdGNCV2RJwwh1lN pQhr6c2VlUfTo+iFawbwQS9yhGbVNbvAfRA7iEngpxdhuKCYk0EeSh/MgDNvhQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=JTjQpU9D; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722553214; a=rsa-sha256; cv=none; b=YYFFDHeVnVr45H+A5F/TZl1dhF/aiku8pKedPR/Qe2yJcJ89aa/CF3rpIvPALurMrqUJA+ INpvsVeMGk83F0baMFATzYOJ1ad86Y4wx3sdEbfTBwj/rQlotkaisv9NiDR+251RQzYaSF 88ICtmyu2uyqEhG32LlAcNgJHO4sxrbnyxWompFhos3ylKlR5PUXHOzJXliRZ/3wemtcVN MawKIe5LZEWtodg8BebHvuHSGdBIPnhrucL93qNTCyCAuVSfQgDJhHcUKrlwkIEdvgCprv OgCGLz27ckRydZgU9t3NSqnpV+mXxWExa8DsAyrcFEAg6Y3wOOHkhxhx0AoNcg== 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 B818263856 for ; Fri, 2 Aug 2024 01:00:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZelU-0002K1-FK; Thu, 01 Aug 2024 18:59:20 -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 1sZelT-0002Jo-Dx for emacs-orgmode@gnu.org; Thu, 01 Aug 2024 18:59:19 -0400 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sZelQ-0008RS-KR for emacs-orgmode@gnu.org; Thu, 01 Aug 2024 18:59:19 -0400 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-52efd8807aaso11111490e87.3 for ; Thu, 01 Aug 2024 15:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722553154; x=1723157954; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=E6+G41rYzxTfj7i93bNelt4DRwy7Lm7A5bvq0C8HV98=; b=JTjQpU9DJlnWnNtkPMnqdA0hlw70A7wxXVCqmNC7GxhzoAW9slU0GFY5nPEXvAxXQf RX669Widd3bAzUpZPcZx54r0W8hJo8hQ959fJ/y209Pj4U4kVdFo6YyxI0Lg2BB2s7Vk UuejJ/2NfsGNSMhewt+L0inYYA6Al4GSRFZkVZsgZ3/5+cmtzV/ZBjajQ1RxVz7lFN/r s6bWjDabMexBB9GTUHsIc5b6f3hXKJILeN3SrPNXoEiC4hr3KBoVFc46FsFDYlnBblSH XhehVe2GDSdP6fP6N8xvcO+3P8Lg3p+3s23YaeZpdr4f2LFQQo07gE/hAzN5u2DaZSsl Oxgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722553154; x=1723157954; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=E6+G41rYzxTfj7i93bNelt4DRwy7Lm7A5bvq0C8HV98=; b=b8gFIguUURioNWjS6ToIGZ8s3gHJ2IeKf3JBx14HAhcOKfTAMKNt51/2a4GSK4YU4t dBrQozCGR01g4He7wIB8TE2T0J9TVAn/tuoJkY6bANKb7/hkufKmvtzEbm0yC2amTf9t yi3YoULTDKhhXRcVsxHo4ud6a2CxoqsPsmXK4Dz8/3e/VxQYNbsMnljIhwTTQYiuqSxR 0imSTTOOTf1PTzT+J5bGwF4JoRMbut7Ez66mQG7A31uSKN/EC8voCYOWZ0vRvWL9uLe4 XFj6XiGTZABmKSzoNc2GUn2/TdmOL546YhCbPW8rQ1IkRGKTVKjtPJfEOS8F3/WnARbZ fgWg== X-Gm-Message-State: AOJu0YyLetajQsArQp+C63PYwTIOtMYxNpvvxs7H+d0ezRFYpO3VwXNE Zydf9oSgy1WZM8ZVSzdOVQG6ImsFn1M4QJPKKFdaLM3QogLoQYALnSAwtUtwcULBIahiO/FrIz5 asNpj5h8x+xoVj1LnuYTdDt3DWcO48/LKow== X-Google-Smtp-Source: AGHT+IGz08eZ+NmJX6yl+enuPPacYAwopwJ34k7P8uUTaAuxkw1e6xd5K64qAZXMoAXaiJl3E6Hif9y7kyY+XeIZ7WA= X-Received: by 2002:a05:6512:108b:b0:52c:8a12:3d3b with SMTP id 2adb3069b0e04-530bb3c8259mr759351e87.56.1722553153635; Thu, 01 Aug 2024 15:59:13 -0700 (PDT) MIME-Version: 1.0 References: <6461a84b.a70a0220.b6d36.5d00@mx.google.com> <87sfbxhmxe.fsf@localhost> <64623c09.170a0220.52bf9.9437@mx.google.com> <87y1lo4ou1.fsf@localhost> <646379fc.620a0220.c0ae4.9fb2@mx.google.com> <87zg3l1rgb.fsf@localhost> <64c8a313.a70a0220.93ee0.14fb@mx.google.com> <87il9zgpdp.fsf@localhost> <64c905d7.170a0220.f434a.fddb@mx.google.com> <87o7jpoqfl.fsf@localhost> <64cc9b8a.170a0220.dfa99.2e18@mx.google.com> <87msz7kym0.fsf@localhost> <669882e5.050a0220.8ff6d.33c6@mx.google.com> <871q3logb9.fsf@localhost> In-Reply-To: <871q3logb9.fsf@localhost> From: stardiviner Date: Fri, 2 Aug 2024 06:58:46 +0800 Message-ID: Subject: Re: [PATCH v4.0] Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer To: Ihor Radchenko Cc: Org mode Content-Type: multipart/mixed; boundary="000000000000d46bf8061ea7289f" Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=numbchild@gmail.com; helo=mail-lf1-x133.google.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, HTML_MESSAGE=0.001, 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-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: B818263856 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.33 X-Spam-Score: -5.33 X-TUID: iBggXUEsJPQy --000000000000d46bf8061ea7289f Content-Type: multipart/alternative; boundary="000000000000d46bf6061ea7289d" --000000000000d46bf6061ea7289d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I followed you upper 8 conditions to re-write my patch. Except the 8. condition I'm not sure I understand correctly. And I extend 1. condition to support the inline image link at point toggle displaying. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Mon, Jul 22, 2024 at 6:44=E2=80=AFPM Ihor Radchenko wrote: > "Christopher M. Miles" writes: > > >> Then, for backward compatibility, we may treat any non-nil, non-list > >> (like '(4), '(16), '(64)), non-number (like 1, 11) value as > >> INCLUDE-LINKED. This way, the existing calls like > >> (org-toggle-inline-images t) will not be broken. > > ... > > I prefer this compromise result. > > I updated the patch, Please review it whether it's correct. > > I think that C-u C-u unconditionally including linked images is > confusing. > > What about using my idea with M-1/M-11 to be interpreted as > INCLUDE-LINKED=3Dt? > > Also, you did not document in the docstring what happens if ARG is > something like t. > > > I did a source code statistics researching of using the function > org-toggle-inline-images at two places: > > > > - GitHub: > https://github.com/search?q=3Dorg-toggle-inline-images&ref=3Dopensearch&t= ype=3Dcode&p=3D3 > > (Only package scimax incoke this function with INCLUDE-LINKED argument = t) > > - My installed Emacs packages, NO package invoke this function with > argument INCLUDE-LINKED. > > > > So lucky this change will not affect lot. > > I have found user configs using the argument: > > > https://github.com/search?q=3D%22%28org-toggle-inline-images+t%29%22&type= =3Dcode > https://github.com/search?q=3D%22%28org-toggle-inline-images+%27%22&type= =3Dcode > > So, please do as I advised - treat non-special ARG values as > INCLUDE-LINKED. > > Also, looking at the proposed prefix arguments, I feel that it might not > necessarily be the best idea to copy over what org-latex-preview does > exactly. org-latex-preview is not a "toggle", unlike > org-toggle-inline-images > > What about the following treatment of ARG: > > 1. No argument, no region selected :: toggle (display or hide dwim) image= s > in current section > 2. No argument, region selected: toggle images in region > 3. C-u argument :: toggle images in the whole buffer > 4. C-u C-u argument, no region selected :: unconditionally hide images in > the buffer > 5. M-1 argument, no region selected :: display images in current section > with INCLUDE-LINKED > 6. M-1 argument, region selected :: ... in region ... > 7. M-11 argument :: ... in the whole buffer ... > 8. Any other argument :: treat as INCLUDE-LINKED =3D t > > And please document all the new arguments in the manual and etc/ORG-NEWS > file. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --000000000000d46bf6061ea7289d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I followed you upper 8 condit= ions to re-write my patch.
Except the 8. condition I'm not sure I un= derstand correctly.
And I extend 1. condition to support the inline imag= e link at point toggle displaying.

= [stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &= lt;Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433<= br>IRC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Tw= itter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2= =A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/


On Mon, Jul 22, 2024 at 6:44=E2=80=AFPM Ihor Radchenko &= lt;yantar92@posteo.net> wrote= :
"Christop= her M. Miles" <numbchild@gmail.com> writes:

>> Then, for backward compatibility, we may treat any non-nil, non-li= st
>> (like '(4), '(16), '(64)), non-number (like 1, 11) val= ue as
>> INCLUDE-LINKED. This way, the existing calls like
>> (org-toggle-inline-images t) will not be broken.
> ...
> I prefer this compromise result.
> I updated the patch, Please review it whether it's correct.

I think that C-u C-u unconditionally including linked images is
confusing.

What about using my idea with M-1/M-11 to be interpreted as INCLUDE-LINKED= =3Dt?

Also, you did not document in the docstring what happens if ARG is
something like t.

> I did a source code statistics researching of using the function org-t= oggle-inline-images at two places:
>
> - GitHub: https://github.com/search?q=3Dorg-toggle-inline-images&= ref=3Dopensearch&type=3Dcode&p=3D3
> (Only package scimax incoke this function with INCLUDE-LINKED argument= t)
> - My installed Emacs packages, NO package invoke this function with ar= gument INCLUDE-LINKED.
>
> So lucky this change will not affect lot.

I have found user configs using the argument:

https://github.c= om/search?q=3D%22%28org-toggle-inline-images+t%29%22&type=3Dcode https://github.co= m/search?q=3D%22%28org-toggle-inline-images+%27%22&type=3Dcode

So, please do as I advised - treat non-special ARG values as INCLUDE-LINKED= .

Also, looking at the proposed prefix arguments, I feel that it might not necessarily be the best idea to copy over what org-latex-preview does
exactly. org-latex-preview is not a "toggle", unlike org-toggle-i= nline-images

What about the following treatment of ARG:

1. No argument, no region selected :: toggle (display or hide dwim) images = in current section
2. No argument, region selected: toggle images in region
3. C-u argument :: toggle images in the whole buffer
4. C-u C-u argument, no region selected :: unconditionally hide images in t= he buffer
5. M-1 argument, no region selected :: display images in current section wi= th INCLUDE-LINKED
6. M-1 argument, region selected :: ... in region ...
7. M-11 argument :: ... in the whole buffer ...
8. Any other argument :: treat as INCLUDE-LINKED =3D t

And please document all the new arguments in the manual and etc/ORG-NEWS fi= le.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>
--000000000000d46bf6061ea7289d-- --000000000000d46bf8061ea7289f Content-Type: application/octet-stream; name="0001-org-Implement-conditionally-inline-images-displaying.patch" Content-Disposition: attachment; filename="0001-org-Implement-conditionally-inline-images-displaying.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lzbvneoz0 RnJvbSA2M2M0ODJkMGMzNzgyZGNiMzI4NTgxZjFkNTYyNzVhMTMxZTc4NjEwIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBzdGFyZGl2aW5lciA8bnVtYmNoaWxkQGdtYWlsLmNvbT4KRGF0 ZTogTW9uLCAyMiBNYXkgMjAyMyAxNjoyNTozMyArMDgwMApTdWJqZWN0OiBbUEFUQ0hdIG9yZzog SW1wbGVtZW50IGNvbmRpdGlvbmFsbHkgaW5saW5lIGltYWdlcyBkaXNwbGF5aW5nIGxvZ2ljCgoq IGxpc3Avb3JnLmVsIChvcmctdG9nZ2xlLWlubGluZS1pbWFnZXMpOiBJbXBsZW1lbn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kaXNwbGF5ZWQgaW5saW5lIgotCQkJICAgICAobGVuZ3RoIG5ldykpCi0J CSAgICJObyBpbWFnZXMgdG8gZGlzcGxheSBpbmxpbmUiKSkpKSkpCisgIChjb25kCisgICAoKG5v dCAoZGlzcGxheS1ncmFwaGljLXApKSAobWVzc2FnZSAiWW91ciBFbWFjcyBkb2VzIG5vdCBzdXBw b3J0IGRpc3BsYXlpbmcgaW1hZ2VzISIpKQorICAgOzsgMS4gTm8gYXJndW1lbnQsIG5vIHJlZ2lv biBzZWxlY3RlZCA6OiB0b2dnbGUgKGRpc3BsYXkgb3IgaGlkZSBkd2ltKSBpbWFnZXMgaW4gY3Vy cmVudCBzZWN0aW9uIG9yIGltYWdlIGxpbmsgYXQgcG9pbnQuCisgICAoKGFuZCAobnVsbCBhcmcp IChub3QgKHVzZS1yZWdpb24tcCkpKQorICAgIChsZXQgKChjb250ZXh0IChvcmctZWxlbWVudC1j b250ZXh0KSkKKyAgICAgICAgICAoYmVnIChpZiAob3JnLWJlZm9yZS1maXJzdC1oZWFkaW5nLXAp IChwb2ludC1taW4pCisJICAgICAgICAgKHNhdmUtZXhjdXJzaW9uCisJICAgICAgICAgICAob3Jn LXdpdGgtbGltaXRlZC1sZXZlbHMgKG9yZy1iYWNrLXRvLWhlYWRpbmcgdCkgKHBvaW50KSkpKSkK KyAgICAgICAgICAoZW5kIChvcmctd2l0aC1saW1pdGVkLWxldmVscyAob3JnLWVudHJ5LWVuZC1w b3NpdGlvbikpKQorICAgICAgICAgIChpbmNsdWRlLWxpbmtlZCBuaWwpKQorICAgICAgOzsgdG9n Z2xlIGRpc3BsYXkgb2YgaW5saW5lIGltYWdlIGxpbmsgYXQgcG9pbnQuCisgICAgICAoaWYgKG1l bXEgKG9yZy1lbGVtZW50LXR5cGUgY29udGV4dCkgJyhsaW5rKSkKKyAgICAgICAgICAobGV0ICgo YmVnIChvcmctZWxlbWVudC1wcm9wZXJ0eSA6YmVnaW4gY29udGV4dCkpCisJCShlbmQgKG9yZy1l bGVtZW50LXByb3BlcnR5IDplbmQgY29udGV4dCkpKQorCSAgICAoaWYgKG9yZy0taW5saW5lLWlt YWdlLW92ZXJsYXlzIGJlZyBlbmQpCisgICAgICAgICAgICAgICAgKHByb2duCisgICAgICAgICAg ICAgICAgICAob3JnLXJlbW92ZS1pbmxpbmUtaW1hZ2VzIGJlZyBlbmQpCisJICAgICAgICAgICht ZXNzYWdlICJSZW1vdmUgaW5saW5lIGltYWdlIGF0IHBvaW50LiIpKQorCSAgICAgIChvcmctZGlz cGxheS1pbmxpbmUtaW1hZ2VzIGluY2x1ZGUtbGlua2VkIHQgYmVnIGVuZCkKKwkgICAgICAobWVz c2FnZSAiRGlzcGxheSBpbmxpbmUgaW1hZ2UgYXQgcG9pbnQgLi4uIGRvbmUuIikpKQorICAgICAg ICAoaWYgKG9yZy0taW5saW5lLWltYWdlLW92ZXJsYXlzIGJlZyBlbmQpCisgICAgICAgICAgICAo b3JnLXJlbW92ZS1pbmxpbmUtaW1hZ2VzIGJlZyBlbmQpCisgICAgICAgICAgKG1lc3NhZ2UgIkRp c3BsYXkgaW5saW5lIGltYWdlcyBpbiBzZWN0aW9uLi4uIikKKyAgICAgICAgICAob3JnLWRpc3Bs YXktaW5saW5lLWltYWdlcyBpbmNsdWRlLWxpbmtlZCB0IGJlZyBlbmQpCisgICAgICAgICAgKG1l c3NhZ2UgIkRpc3BsYXkgaW5saW5lIGltYWdlcyBpbiBzZWN0aW9uLi4uIGRvbmUuIikpKSkpCisg ICA7OyAyLiBObyBhcmd1bWVudCwgcmVnaW9uIHNlbGVjdGVkIDo6IHRvZ2dsZSBpbWFnZXMgaW4g cmVnaW9uLgorICAgKChhbmQgKG51bGwgYXJnKSAodXNlLXJlZ2lvbi1wKSkKKyAgICAobGV0KiAo KGJlZyAocmVnaW9uLWJlZ2lubmluZykpCisgICAgICAgICAgIChlbmQgKHJlZ2lvbi1lbmQpKQor ICAgICAgICAgICAoaW5jbHVkZS1saW5rZWQgbmlsKQorICAgICAgICAgICAoaW5saW5lLWltYWdl cyAob3JnLS1pbmxpbmUtaW1hZ2Utb3ZlcmxheXMgYmVnIGVuZCkpKQorICAgICAgKGlmIChvcmct LWlubGluZS1pbWFnZS1vdmVybGF5cyBiZWcgZW5kKQorICAgICAgICAgIChwcm9nbgorICAgICAg ICAgICAgKG9yZy1yZW1vdmUtaW5saW5lLWltYWdlcyBiZWcgZW5kKQorICAgICAgICAgICAgKG1l c3NhZ2UgIiVkIGlubGluZSBpbWFnZXMgZGlzcGxheSByZW1vdmVkLiIgKGxlbmd0aCBpbmxpbmUt aW1hZ2VzKSkpCisgICAgICAgIChtZXNzYWdlICJEaXNwbGF5IGlubGluZSBpbWFnZXMgZGlzcGxh eWVkIGluIHJlZ2lvbi4uLiIpCisgICAgICAgIChvcmctZGlzcGxheS1pbmxpbmUtaW1hZ2VzIGlu Y2x1ZGUtbGlua2VkIHQgYmVnIGVuZCkKKyAgICAgICAgKG1lc3NhZ2UgIkRpc3BsYXkgaW5saW5l IGltYWdlcyBkaXNwbGF5ZWQgaW4gcmVnaW9uLi4uIGRvbmUuIikpKSkKKyAgIDs7IDMuIEMtdSBh cmd1bWVudCA6OiB0b2dnbGUgaW1hZ2VzIGluIHRoZSB3aG9sZSBidWZmZXIuCisgICAoKGVxdWFs IGFyZyAnKDQpKQorICAgIChsZXQgKChpbmNsdWRlLWxpbmtlZCBuaWwpKQorICAgICAgKGlmIChv cmctLWlubGluZS1pbWFnZS1vdmVybGF5cyAocG9pbnQtbWluKSAocG9pbnQtbWF4KSkKKyAgICAg ICAgICAob3JnLXJlbW92ZS1pbmxpbmUtaW1hZ2VzIChwb2ludC1taW4pIChwb2ludC1tYXgpKQor ICAgICAgICAobWVzc2FnZSAiRGlzcGxheSBhbGwgaW5saW5lIGltYWdlcyBpbiBidWZmZXIuLi4i KQorICAgICAgICAob3JnLWRpc3BsYXktaW5saW5lLWltYWdlcyBpbmNsdWRlLWxpbmtlZCBuaWwg KHBvaW50LW1pbikgKH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uZCByZWZyZXNoIHRoZW0uIgotLSAKMi4zOS4z IChBcHBsZSBHaXQtMTQ2KQoK --000000000000d46bf8061ea7289f--