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 ms8.migadu.com with LMTPS id sDLcEzdR3GVxXAEA62LTzQ:P1 (envelope-from ) for ; Mon, 26 Feb 2024 09:52:07 +0100 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 sDLcEzdR3GVxXAEA62LTzQ (envelope-from ) for ; Mon, 26 Feb 2024 09:52:07 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BZdkYthA; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708937527; 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=3Q9DdKwIDWHt5arMTfWE5aI778DfggQqdv43q2rfLDM=; b=nSoLOsubnHECHdU26JxNvB3prYYp8KC8WSLvAupurSvZrIS4b5QDu1qdtZEhhg6mca8paE I+3Hb9icqgwckBk2J0XOzugn4Njb5YTLlWXUTG5Eli0f5nkSnr2Va1ALDyAvA7qEQZDgvz kOoWNefAaOFcCkwPp55n1tkhWY+45IiJiXX35SzJxPcVRxoGL0ojxLaZFQRq3pYiopmDAs W64DkBD/iJ2XnoL0rfzbPYNO6VDT/d5HIZMQKg2BOml2c4MRNZMy5klZbRkAHgbAWDXTgc tI82nC/OyJ008GKaQm0aDCZq4hds3tgNb/f+5w8JMHz40pb7VWGUNP09sNZAwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BZdkYthA; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708937527; a=rsa-sha256; cv=none; b=HugCMSi5bUXtlzNxNxe+WeYEufx0zS/A9iBXLRRCCKmOjZscMSq9ioAC0iD7x06GR2xa0Y W6TyRMlwyNYmnIgFxFhlpFChCPbu10gGakX9EbFofxJiL6v1fiNzY+j9eMhuAIMf2wmYRj agISEHd7hPANtNrBMfAyg7z1QBj+PainvLjXOrd30wvPeBB/FVZ2WU5QT03+nUoRqDVd4A ZCCxA2C5YRJY+ejZYFJQbUnFDrimXSu6QCEIOvEgy/26LqFrVOAWHJ61sPUNdxAg7m4yxf f3ZhGW9xTj0TAYugkvQLjGSTy1V8SRKF7WwTN5GN3OhUbvHCW01AOiQHM6UBZA== 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 9F8A67596D for ; Mon, 26 Feb 2024 09:52:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reWht-0006dq-Qu; Mon, 26 Feb 2024 03:51:29 -0500 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 1reWhs-0006c3-Jk for emacs-orgmode@gnu.org; Mon, 26 Feb 2024 03:51:28 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1reWhp-0001F4-OT for emacs-orgmode@gnu.org; Mon, 26 Feb 2024 03:51:28 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 18B9A240027 for ; Mon, 26 Feb 2024 09:51:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708937483; bh=vdyXouVz9zFlWxb3fXYBVCyKnK3NCuUxsaa9yfoNECU=; h=MIME-Version:Content-Type:Date:From:To:Cc:Subject:Message-ID: From; b=BZdkYthA8X1iYLZPXHcH5fzjBFaj7nxRZgqxOPk9kwTW4JhBS1H7ZFYwODvE8AvHU o60sThyAMrY0guCNC9p5Iog5f7zlrnqbdnmYpJWGipmtscN3P2cNmNlFy3/Q9yVanN TsXz3LWQpFTL4WUPRRsxrWinGPRsQkUhBt2e2Kfn4C3cXlQEq0kYqbJBf58VGWiS7/ y4WYOlUQVpKlHp2j7NTuy1p23ILTqO92mC+aSr8z1jsdMXvU+7LuPz09F+Q7fliVzP 2vQrmPx0ox2Oa9tqKSWlLTdYdAl6LvXZBYp3/jB275HPIZPx6qp8bBcGD+hXFDmDIn bqY9UKTEuZlIg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TjvVL2x1vz6txQ; Mon, 26 Feb 2024 09:51:22 +0100 (CET) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_f294274210640c1d0c1d71eed1228afc" Date: Mon, 26 Feb 2024 08:51:22 +0000 From: gerard.vermeulen@posteo.net To: Ihor Radchenko Cc: Emacs orgmode , emacs-orgmode-bounces+gerard.vermeulen=posteo.net@gnu.org Subject: Re: [PATCH] org-babel-demarcate-block: split using element API In-Reply-To: <87y1b8loop.fsf@localhost> References: <7e41f9b6e9026a404e256f33371e974c@posteo.net> <878r50yqmo.fsf@localhost> <442006329cfba666710c989aece5191a@posteo.net> <261356c53e857e0bc4b04f884366edfa@posteo.net> <87bk9uy31w.fsf@localhost> <680e4a4fccf4f3c5c8f51d8215257eff@posteo.net> <87a5p9uute.fsf@localhost> <87wmscrty4.fsf@localhost> <2c82fa1399ddaa52ebe5bb21e241fb5f@posteo.net> <87o7dll7vn.fsf@localhost> <874je4hjmr.fsf@localhost> <87frxmtasr.fsf@localhost> <87h6hzi9cy.fsf@localhost> <067f694028817e59ee3d0c49dc80dd3b@posteo.net> <87y1b8loop.fsf@localhost> Message-ID: <529eafb5a5274fb4e15917ce3b97d785@posteo.net> Received-SPF: pass client-ip=185.67.36.65; envelope-from=gerard.vermeulen@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.12 X-Spam-Score: -8.12 X-Migadu-Queue-Id: 9F8A67596D X-TUID: AdIVvut2k0IX --=_f294274210640c1d0c1d71eed1228afc Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=flowed On 25.02.2024 13:21, Ihor Radchenko wrote: > gerard.vermeulen@posteo.net writes: >=20 >> I added the caveat: >> This patch is incompatible with `org-babel-edit-prep:' functions >> that signal `user-error's. >> to the commit message and cleaned it up a bit. >=20 > You may wrap `org-indent-block' into `condition-case' to catch > user-errors. The caveat is not a real constraint, since Org has limited support for source block editing in an Org mode buffer when an `org-babel-edit-prep:' function signals an user-error. I show that in the attached no-user-errors-in-edit-prep.org. I also attach condition-case.diff that I use to try to argue that condition-case never gets into its error-handler (I am running the code with the condition-case now), because I never see the signal of ~(user-error "Error in `org-babel-edit-prep:'?")~ (I needed to read the condition-case documentation, because this is the first time I am trying to use it). #+begin_src emacs-lisp -n :results silent ;; Fails with org-babel-demarcate-block in patch. (defun edit-prep-user-error (_info) (user-error "Signaling user-errors is harmfull")) (defun org-babel-edit-prep:python (info) (edit-prep-user-error info)) (message "Harm-FULL edit-prep:python") #+end_src #+begin_src emacs-lisp -n :results silent ;; Works with org-babel-demarcate-block in patch. (defun edit-prep-message (_info) (message "Displaying messages is harmless")) (defun org-babel-edit-prep:python (info) (edit-prep-message info)) (message "Harm-LESS edit-prep:python") #+end_src ~org-babel-demarcate-blocks~ works with "Harm-LESS edit-prep:python" but fails with "Harm-FULL edit-prep:python" and it leaves the Org mode buffer in a state similar to shown in no-user-errors-in-edit-prep.org (I have to pass through org-edit-src-code to be able to edit the block in the Org mode buffer). But I only can do that after interrupting (C-g C-g) an infinite stream of warnings "Warning (org-element): =E2=80=98org-element-at-point=E2=80=99 = cannot be used in non-Org buffer # (python-mode)" which should come from the `org-element-at-point' call indicated by ;; <=3D HERE? in condition-case.diff. Test block below: #+begin_src python -i -n :results silent 11 22 #+end_src Regards -- Gerard --=_f294274210640c1d0c1d71eed1228afc Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; name=no-user-errors-in-edit-prep.org Content-Disposition: attachment; filename=no-user-errors-in-edit-prep.org; size=2281 VGhlIGNhdmVhdCBpcyBub3QgYSByZWFsIGNvbnN0cmFpb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W5lIHRoYXQgY2hhbmdlcwogICB0aGUgc3RhdGUgb2YgdGhlIGVkaXQg YnVmZmVyIGJhY2sgdG8gMSkuCldoZW4gb3JnLWJhYmVsLWVkaXQtcHJlcDpweXRob24gZGlzcGxh eXMgYSBtZXNzYWdlLCBJIG5ldmVyIHNlZQp0dXJuaW5nIHRoZSBzdGF0ZSBvZiBhbiBPcmcgc291 cmNlIGJ1ZmZlciB0byAiZGVkaWNhdGVkIiB3aGVuIGVkaXRpbmcKdGhlIGJsb2NrIGluIGFuIE9y ZyBtb2RlIGJ1ZmZlci4KCgoKCgoKSSBhbSBzdXJlIHRoYXQgdGhlICJkZWRpY2F0ZWQiIHN0YXRl IG9mIHRoZSBPcmcgc291cmNlIGJ1ZmZlciBpcwpyZWxhdGVkIHRvIHRoZSB3YXJuaW5nczogIldh cm5pbmcgKG9yZy1lbGVtZW50KToK4oCYb3JnLWVsZW1lbnQtYXQtcG9pbnTigJkgY2Fubm90IGJl IHVzZWQgaW4gbm9uLU9yZyBidWZmZXIgIzxidWZmZXIgKk9yZwpTcmMgbm8tdXNlci1lcnJvcnMt aW4tZWRpdC1wcmVwLm9yZ1sgcHl0aG9uIF0qPiAocHl0aG9uLW1vZGUpIiB3aGVuIEkKdHJ5IHRv IHNwbGl0IHRoZSBibG9ja3MgYnkgZGVtYXJjYXRpb24gd2l0aCB0aGUgcGF0Y2guCgojK2JlZ2lu X3NyYyBlbWFjcy1saXNwIC1uIDpyZXN1bHRzIHNpbGVudAooY29uZGl0aW9uLWNhc2UgbmlsCiAg ICAodXNlci1lcnJvciAiSGlkZGVuIikKICAodXNlci1lcnJvciAiU2hvd24iKSkKIytlbmRfc3Jj Cg== --=_f294274210640c1d0c1d71eed1228afc Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; name=condition-case.diff Content-Disposition: attachment; filename=condition-case.diff; size=7440 ZGlmZiAtLWdpdCBhL2xpc3Avb2ItY29yZS5lbCBiL2xpc3Avb2ItY29yZS5lbAppbmRleCBlM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LWVuZCkpCi0gICAgICAgICAgICAgICAgICAo bGlzdCAocG9pbnQpKSkpCi0gICAgICAgICAgICAgICAobiAoLSAobGVuZ3RoIHBhcnRzKSAyKSkg OzsgMSBvciAyIHBhcnRzIGluIGBkb2xpc3QnIGJlbG93LgotICAgICAgICAgICAgICAgOzsgYHBv c3QtYmxhbmsnIGNhY2hlcyB0aGUgcHJvcGVydHkgYmVmb3JlIHNldHRpbmcgaXQgdG8gMC4KLSAg ICAgICAgICAgICAgIChwb3N0LWJsYW5rIChvcmctZWxlbWVudC1wcm9wZXJ0eSA6cG9zdC1ibGFu ayBjb3B5KSkpCi0gICAgICAgICAgOzsgUG9pbnQgb3IgcmVnaW9uIGFyZSB3aXRoaW4gYm9keSB3 aGVuIHBhcnRzIGlzIGluIGluY3JlYXNpbmcgb3JkZXIuCi0gICAgICAgICAgKHVubGVzcyAoYXBw bHkgIyc8PSBwYXJ0cykKLSAgICAgICAgICAgICh1c2VyLWVycm9yICJTZWxlY3Qgd2l0aGluIHRo ZSBzb3VyY2UgYmxvY2sgYm9keSB0byBzcGxpdCBpdCIpKQotICAgICAgICAgIChzZXRxIHBhcnRz IChtYXBjYXIgKGxhbWJkYSAocCkgKGJ1ZmZlci1zdWJzdHJpbmcgKGNhciBwKSAoY2RyIHApKSkK LSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChzZXEtbWFwbiAjJ2NvbnMgcGFydHMgKGNk ciBwYXJ0cykpKSkKLSAgICAgICAgICA7OyBNYXAgcG9zaXRpb25zIHRvIGNvbHVtbnMgZm9yIHdo aXRlLXNwYWNlIHBhZGRpbmcuCi0gICAgICAgICAgKHNldHEgcGFkcyAobWFwY2FyIChsYW1iZGEg KHApIChzYXZlLWV4Y3Vyc2lvbgotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIChnb3RvLWNoYXIgcCkKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAoY3VycmVudC1jb2x1bW4pKSkKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAg cGFkcykpCi0gICAgICAgICAgKHB1c2ggMCBwYWRzKSA7OyBUaGUgMXN0IHBhcnQgbmV2ZXIgcmVx dWlyZXMgd2hpdGUtc3BhY2UgcGFkZGluZy4KLSAgICAgICAgICAoc2V0cSBwYXJ0cyAobWFwY2Fy IChsYW1iZGEgKHApIChzdHJpbmctam9pbgotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIChsaXN0IChtYWtlLXN0cmluZyAoY2FyIHApID9ccykKLSAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY2RyIHApKSkpCi0gICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAoc2VxLW1hcG4gIydjb25zIHBhZHMgcGFydHMpKSkKLSAg ICAgICAgICAoZGVsZXRlLXJlZ2lvbiBiZWZvcmUgYmV5b25kKQotICAgICAgICAgIDs7IFNldCBg OnBvc3QtYmxhbmsnIHRvIDAuICBXZSB0YWtlIGNhcmUgb2Ygc3BhY2luZyBiZXR3ZWVuIGJsb2Nr cy4KLSAgICAgICAgICAob3JnLWVsZW1lbnQtcHV0LXByb3BlcnR5IGNvcHkgOnBvc3QtYmxhbmsg MCkKLSAgICAgICAgICAob3JnLWVsZW1lbnQtcHV0LXByb3BlcnR5IGNvcHkgOnZhbHVlIChjYXIg cGFydHMpKQotICAgICAgICAgIChpbnNlcnQgKG9yZy1lbGVtZW50LWludGVycHJldC1kYXRhIGNv cHkpKQotICAgICAgICAgIDs7IGBvcmctaW5kZW50LWJsb2NrJyBtYXkgc2VlIGFub3RoZXIgYG9y Zy1lbGVtZW50JyAoZS5nLiBwYXJhZ3JhcGgpCi0gICAgICAgICAgOzsgaW1tZWRpYXRlbHkgYWZ0 ZXIgdGhlIGJsb2NrLiAgRW5zdXJlIHRvIGluZGVudCB0aGUgaW5zZXJ0ZWQgYmxvY2sKLSAgICAg ICAgICA7OyBhbmQg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0gICAgICAgICAg ICAob3JnLWJhYmVsLXByZXZpb3VzLXNyYy1ibG9jayAxKQotICAgICAgICAgICAgKG9yZy1pbmRl bnQtYmxvY2spCi0gICAgICAgICAgICAoZ290by1jaGFyIChvcmctZWxlbWVudC1lbmQgKG9yZy1l bGVtZW50LWF0LXBvaW50KSkpKQotICAgICAgICAgIDs7IExlYXZlIHBvaW50IGF0IHRoZSBsYXN0 IGluc2VydGVkIGJsb2NrLgotICAgICAgICAgIChnb3RvLWNoYXIgKG9yZy1iYWJlbC1wcmV2aW91 cy1zcmMtYmxvY2sgMSkpKQorICAgICAgICAoY29uZGl0aW9uLWNhc2UgbmlsCisgICAgICAgICAg ICAobGV0KiAoKGNvcHkgKG9yZy1lbGVtZW50LWNvcHkgKG9yZy1lbGVtZW50LWF0LXBvaW50KSkp IDs7IDw9IEhFUkU/CisgICAgICAgICAgICAgICAgICAgKGJlZm9yZSAob3JnLWVsZW1lbnQtYmVn aW4gY29weSkpCisgICAgICAgICAgICAgICAgICAgKGJleW9uZCAob3JnLWVsZW1lbnQtZW5kIGNv cHkpKQorICAgICAgICAgICAgICAgICAgIChwYXJ0cworICAgICAgICAgICAgICAgICAgICAoaWYg KG9yZy1yZWdpb24tYWN0aXZlLXApCisgICAgICAgICAgICAgICAgICAgICAgICAobGlzdCBib2R5 LWJlZyAocmVnaW9uLWJlZ2lubmluZykgKHJlZ2lvbi1lbmQpIGJvZHktZW5kKQorICAgICAgICAg ICAgICAgICAgICAgIChsaXN0IGJvZHktYmVnIChwb2ludCkgYm9keS1lbmQpKSkKKyAgICAgICAg ICAgICAgICAgICAocGFkcyA7OyBUbyBjYWxjdWxhdGUgbGVmdC1zaWRlIHdoaXRlLXNwYWNlIHBh ZGRpbmcuCisgICAgICAgICAgICAgICAgICAgIChpZiAob3JnLXJlZ2lvbi1hY3RpdmUtcCkKKyAg ICAgICAgICAgICAgICAgICAgICAgIChsaXN0IChyZWdpb24tYmVnaW5uaW5nKSAocmVnaW9uLWVu ZCkpCisgICAgICAgICAgICAgICAgICAgICAgKGxpc3QgKHBvaW50KSkpKQorICAgICAgICAgICAg ICAgICAgIChuICgtIChsZW5ndGggcGFydHMpIDIpKSA7OyAxIG9yIDIgcGFydHMgaW4gYGRvbGlz dCcgYmVsb3cuCisgICAgICAgICAgICAgICAgICAgOzsgYHBvc3QtYmxhbmsnIGNhY2hlcyB0aGUg cHJvcGVydHkgYmVmb3JlIHNldHRpbmcgaXQgdG8gMC4KKyAgICAgICAgICAgICAgICAgICAocG9z dC1ibGFuayAob3JnLWVsZW1lbnQtcHJvcGVydHkgOnBvc3QtYmxhbmsgY29weSkpKQorICAgICAg ICAgICAgICA7OyBQb2ludCBvciByZWdpb24gYXJlIHdpdGhpbiBib2R5IHdoZW4gcGFydHMgaXMg aW4gaW5jcmVhc2luZyBvcmRlci4KKyAgICAgICAgICAgICAgKHVubGVzcyAoYXBwbHkgIyc8PSBw YXJ0cykKKyAgICAgICAgICAgICAgICAodXNlci1lcnJvciAiU2VsZWN0IHdpdGhpbiB0aGUgc291 cmNlIGJsb2NrIGJvZHkgdG8gc3BsaXQgaXQiKSkKKyAgICAgICAgICAgICAgKHNldHEgcGFydHMg KG1hcGNhciAobGFtYmRhIChwKSAoYnVmZmVyLXN1YnN0cmluZyAoY2FyIHApIChjZHIgcCkpKQor ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChzZXEtbWFwbiAjJ2NvbnMgcGFydHMg KGNkciBwYXJ0cykpKSkKKyAgICAgICAgICAgICAgOzsgTWFwIHBvc2l0aW9ucyB0byBjb2x1bW5z IGZvciB3aGl0ZS1zcGFjZSBwYWRkaW5nLgorICAgICAgICAgICAgICAoc2V0cSBwYWRzIChtYXBj YXIgKGxhbWJkYSAocCkgKHNhdmUtZXhjdXJzaW9uCisgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIChnb3RvLWNoYXIgcCkKKyAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgKGN1cnJlbnQtY29sdW1uKSkpCisgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICBwYWRzKSkKKyAgICAgICAgICAgICAgKHB1c2ggMCBwYWRz KSA7OyBUaGUgMXN0IHBhcnQgbmV2ZXIgcmVxdWlyZXMgd2hpdGUtc3BhY2UgcGFkZGluZy4KKyAg ICAgICAgICAgICAgKHNldHEgcGFydHMgKG1hcGNhciAobGFtYmRhIChwKSAoc3RyaW5nLWpvaW4K KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGxpc3QgKG1h a2Utc3RyaW5nIChjYXIgcCkgP1xzKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAoY2RyIHApKSkpCisgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgKHNlcS1tYXBuICMnY29ucyBwYWRzIHBhcnRzKSkpCisgICAgICAgICAgICAgIChk ZWxldGUtcmVnaW9uIGJlZm9yZSBiZXlvbmQpCisgICAgICAgICAgICAgIDs7IFNldCBgOnBvc3Qt YmxhbmsnIHRvIDAuICBXZSB0YWtlIGNhcmUgb2Ygc3BhY2luZyBiZXR3ZWVuIGJsb2Nrcy4KKyAg ICAgICAgICAgICAgKG9yZy1lbGVtZW50LXB1dC1wcm9wZXJ0eSBjb3B5IDpwb3N0LWJsYW5rIDAp CisgICAgICAgICAgICAgIChvcmctZWxlbWVudC1wdXQtcHJvcGVydHkgY29weSA6dmFsdWUgKGNh ciBwYXJ0cykpCisgICAgICAgICAgICAgIChpbnNlcnQgKG9yZy1lbGVtZW50LWludGVycHJldC1k YXRhIGNvcHkpKQorICAgICAgICAgICAgICA7OyBgb3JnLWluZGVudC1ibG9jaycgbWF5IHNlZSBh bm90aGVyIGBvcmctZWxlbWVudCcgKGUuZy4gcGFyYWdyYXBoKQorICAgICAgICAgICAgICA7OyBp bW1lZGlhdGVseSBhZnRlciB0aGUgYmxvY2suICBFbnN1cmUgdG8gaW5kZW50IHRoZSBpbnNlcnRl ZCBibG9jaworICAgICAgICAgICAgICA7OyBhbmQgbW92ZSBwb2ludCB0byBpdHMgZW5kLgorICAg ICAgICAgICAgICAob3JnLWJhYmVsLXByZXZpb3VzLXNyYy1ibG9jayAxKQorICAgICAgICAgICAg ICAob3JnLWluZGVudC1ibG9jaykKKyAgICAgICAgICAgICAgKGdvdG8tY2hhciAob3JnLWVsZW1l bnQtZW5kIChvcmctZWxlbWVudC1hdC1wb2ludCkpKQorICAgICAgICAgICAgICAob3JnLWVsZW1l bnQtcHV0LXByb3BlcnR5IGNvcHkgOmNhcHRpb24gbmlsKQorICAgICAgICAgICAgICAob3JnLWVs ZW1lbnQtcHV0LXByb3BlcnR5IGNvcHkgOm5hbWUgbmlsKQorICAgICAgICAgICAgICA7OyBJbnNl cnQgdGhlIDJuZCBibG9jaywgYW5kIHRoZSAzcmQgYmxvY2sgd2hlbiByZWdpb24gaXMgYWN0aXZl LgorICAgICAgICAgICAgICAoZG9saXN0IChwYXJ0IChjZHIgcGFydHMpKQorICAgICAgICAgICAg ICAgIChvcmctZWxlbWVudC1wdXQtcHJvcGVydHkgY29weSA6dmFsdWUgcGFydCkKKyAgICAgICAg ICAgICAgICAoaW5zZXJ0IChpZiBhcmcgKGNvbmNhdCBzdGFycyAiXG4iKSAiXG4iKSkKKyAgICAg ICAgICAgICAgICAoY2wtZGVjZiBuKQorICAgICAgICAgICAgICAgICh3aGVuICg9IG4gMCkKKyAg ICAgICAgICAgICAgICAgIDs7IFVzZSBgcG9zdC1ibGFuaycgdG8gcmVzZXQgdGhlIHByb3BlcnR5 IG9mIHRoZSBsYXN0IGJsb2NrLgorICAgICAgICAgICAgICAgICAgKG9yZy1lbGVtZW50LXB1dC1w cm9wZXJ0eSBjb3B5IDpwb3N0LWJsYW5rIHBvc3QtYmxhbmspKQorICAgICAgICAgICAgICAgIChp bnNlcnQgKG9yZy1lbGVtZW50LWludGVycHJldC1kYXRhIGNvcHkpKQorICAgICAgICAgICAgICAg IDs7IEVuc3VyZSB0byBpbmRlbnQgdGhlIGluc2VydGVkIGJsb2NrIGFuZCBtb3ZlIHBvaW50IHRv IGl0cyBlbmQuCisgICAgICAgICAgICAgICAgKG9yZy1iYWJlbC1wcmV2aW91cy1zcmMtYmxvY2sg MSkKKyAgICAgICAgICAgICAgICAob3JnLWluZGVudC1ibG9jaykKKyAgICAgICAgICAgICAgICAo Z290by1jaGFyIChvcmctZWxlbWVudC1lbmQgKG9yZy1lbGVtZW50LWF0LXBvaW50KSkpKQorICAg ICAgICAgICAgICA7OyBMZWF2ZSBwb2ludCBhdCB0aGUgbGFzdCBpbnNlcnRlZCBibG9jay4KKyAg ICAgICAgICAgICAgKGdvdG8tY2hhciAob3JnLWJhYmVsLXByZXZpb3VzLXNyYy1ibG9jayAxKSkp CisgICAgICAgICAgKHVzZXItZXJyb3IgIkVycm9yIGluIGBvcmctYmFiZWwtZWRpdC1wcmVwOjxM QU5HPic/IikpCiAgICAgICAobGV0ICgoc3RhcnQgKHBvaW50KSkKIAkgICAgKGxhbmcgKG9yIChj YXIgaW5mbykgOyBSZXVzZSBsYW5ndWFnZSBmcm9tIHByZXZpb3VzIGJsb2NrLgogICAgICAgICAg ICAgICAgICAgICAgIChjb21wbGV0aW5nLXJlYWQK --=_f294274210640c1d0c1d71eed1228afc--