From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ADBLB/1es18NEAAA0tVLHw (envelope-from ) for ; Tue, 17 Nov 2020 05:26:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gH0iA/1es1+aRgAAB5/wlQ (envelope-from ) for ; Tue, 17 Nov 2020 05:26:21 +0000 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 3DF129407E5 for ; Tue, 17 Nov 2020 05:26:20 +0000 (UTC) Received: from localhost ([::1]:50114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ketVR-00020g-9I for larch@yhetil.org; Tue, 17 Nov 2020 00:26:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ketUi-00020Y-UH for emacs-orgmode@gnu.org; Tue, 17 Nov 2020 00:25:32 -0500 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]:39259) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ketUg-0006i4-BA for emacs-orgmode@gnu.org; Tue, 17 Nov 2020 00:25:32 -0500 Received: by mail-oi1-x236.google.com with SMTP id f11so7698036oij.6 for ; Mon, 16 Nov 2020 21:25:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qNDD9yEw4JqU5zN5qy1gqinnt+OLeMbZi3rI7VnVMhQ=; b=EhUSZUuPvy6HE4fRUr9VyzDB1oBUhc6lvRHYIvvtfSlt3aQN/uH23wAhE3lBJMbgSV YeofTnjuS4J/2bnwqTXt4eXCqsVwZMv1N0Hi9cMPMOntlgvZ3DmUaliLKuM7OcGGXSWM pidx74EKfoHMcJDQ4XjmnyNKuA6+zB+geTsXfe5wIJjRSTLgybwWs7ObkXqqO3GdbaZW 6raQJTTQma9fz/PhxUYVvDxF5QVRXLxPtViqy+W6qZs7T5eAhajyIFssa17fB4vNwhfb bp7fuQWufgSFLIHRcLLsB4G6GJX/08IrCb3g3ijE1bbeYS/aUi1to/9K2775zu+sEgCY bQEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qNDD9yEw4JqU5zN5qy1gqinnt+OLeMbZi3rI7VnVMhQ=; b=uJnpBd0QF0Vm4Ct12yD923XalLxmg77PsErSJwvcvJsSgELQD8JCEwQrX3N3Sw5fSm waFOjIxaWFifRCeaAV5XhhiyfPS6w5j862RLzWlJM5w09s1WitlBp1Knt/2dTiot+4CD Jyu/D/d04Gb9E2YFYTVWxhhoQlNk3nOypNBqesNz8TwD21MwfIk/D/cOg4F2Mee9T64j khS8S5XGmZonPIDmGfduR+SPYTW5RRkaTfDlrH/OFaXxlph+XBKtdIdgsl6m9BRx7po2 B+FfnUNiZoahcjEbMK4u6cqHqeOs9/DlqE4ggtUkrA3dcTsGs64NJuaexrEo25mjrhUT 9IKw== X-Gm-Message-State: AOAM532kmTzUeykGMBoYNLOdTlyREMNJIEHalsXH3oFOjm+YXGx2ovDU a/U4SV+ePb7lcmgq00NEEPv5STuhoQR4rM0TPPM= X-Google-Smtp-Source: ABdhPJzBOqJmS2pSXsJIEW/8mqy/lLZCTx1mn4xILYTVwL1T92aHog24Sqk3Gg/1RyUYqW2OpNxKBUu4LRnTDurGk6I= X-Received: by 2002:aca:cd17:: with SMTP id d23mr1299813oig.171.1605590729038; Mon, 16 Nov 2020 21:25:29 -0800 (PST) MIME-Version: 1.0 References: <874klpbwrg.fsf@gmail.com> <816918.1605585811@apollo2.minshall.org> In-Reply-To: <816918.1605585811@apollo2.minshall.org> From: Tim Cross Date: Tue, 17 Nov 2020 16:25:17 +1100 Message-ID: Subject: Re: Changed list indentation behavior: how to revert? To: Greg Minshall Content-Type: multipart/alternative; boundary="0000000000000f1f4e05b446b998" Received-SPF: pass client-ip=2607:f8b0:4864:20::236; envelope-from=theophilusx@gmail.com; helo=mail-oi1-x236.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org-mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=EhUSZUuP; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.71 X-TUID: XhQLKFoZzaLa --0000000000000f1f4e05b446b998 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Good work Greg. My only comment is about the tests in src blocks. I'm not sure about these as I always use the special editing mode for source blocks and I would expect that when you do this, the editing buffer would adopt the semantics of the native mode for the source language being edited. (I have org-src-tab-acts-natively t in my init). Were your tests just inside a src block in an org buffer or inside the special editing buffer? >From that table and what others have posted, I suspect many would be best off with org-adapt-indentation set to nil or possible 'heading-data. Personally, I've not found the change an issue, but I rarely go more than 3 or 4 levels deep in my headlines and am use to C-j to add a non-indented line. However, I'm thinking about giving heading-data a spin as I like the indentation for planning lines and have less of a preference for the entry content. Tim On Tue, 17 Nov 2020 at 15:03, Greg Minshall wrote: > hi, Tim, et al. > > i started feeling guilty yesterday, partly for being party to prolonging > this discussion (though i do think it may be important?). but also for > realizing i had *not* explored the alternatives Tim, Gustavo, and others > have suggested. > > the following is *clearly* the department of irreproducible results. > but, i've tried to document the effects of 'electric-indent-mode' and > 'org-adapt-indentation' on a number of scenarios. i present the results > with some explanation, but without much analysis. > > the irreproducibility is just (afaict) a function of my not being able > to type the same thing over and over again, and/or transcribe the > results correctly. the results here are, for the most part, the result > of several runs, trying to eliminate disparities, and add new forms of > results (such as, "two , then third returns to column one"). but, > if anyone wants to try on their own, or automate further (the > possibilities are endless! :), please, l=C3=BCtfen! > > there's an e-lisp function, and the shell double for loop towards the > end of this e-mail. > > first, here's the *transposed* table, as i think it is more readable. > (the word "transpose" should show up in the info pages!). at the end of > the e-mail, though, i'll put the non-transposed -- maybe one sees > some things there easier. > > | | t,t | t,headline-data | t,nil | nil,t | > nil,headline-data | nil,nil | > > |-----------+---------+-----------------+---------+-----------+----------= ---------+-----------| > | head | n | n,nbl,1 | 1 | 1 | > 1 | 1 | > | head | 1 | 1 | 1 | n | > n,nbl,1 | 1 | > | src{ | n | n+2 | n+2 | 1 | > 1 | 1 | > | src{ | 1 | 1 | 1 | n+2 [t-2] | > n+2 [t-2] | n+2 [t-2] | > | src; | n-4 | n-2 | n-2 | 1 | > 1 | 1 | > | src; | 1 | 1 | 1 | n-2 [t+2] | > n-2 [t+2] | n-2 [t+2] | > | list | n+2*2,1 | 1 | n+2*2,1 | 1 | > 1 | 1 | > | list | 1 | 1 | 1 | n+2*2,1 | > 1 | n+2*2,1 | > | line | n | 1 | n | 1 | > 1 | 1 | > | line | 1 | 1 | 1 | n | > 1 | n | > > the columns are (electric-indent,org-adapt-indentation) pairs. > > here are the cases (rows) and results (contents of cells). the > ""-suffixed cases use C-j rather than . > > - head :: from a headline > - n :: stays indented for "infinite" blank > - n,nbl,1 :: n, then after first non-blank line, goes > to 1 > - 1 :: goes > - src{ :: from, e.g., 'if (x) {' > - n-2 :: undents by 2 > - n+2 :: indents > - n+2 [t-2] :: goes to n+2 (but, of non-blank line goes to > n+4) > - n-2 [t+2] :: goes to n-2 (but, that 2 past the previous > indentation level) > - src; :: from a regular program statement > - list :: from item in list > - n+2 :: indents once > - n+2*2,1 :: indents once, stays on next , then 1 on next > (three total) > - 1 :: column 1 > - line :: from an indented line > - n :: never goes to 1 > - 1 :: goes to 1 > > > brute force lisp code > #+begin_src elisp > (defun feorge (el oai fname) > (progn > (add-hook 'org-mode-hook (electric-indent-mode (if el 1 0))) > (find-file fname) > (setq org-adapt-indentation oai) > (let > ((header "| |head | head | src{ | src{ | src; | > src; | list | list | line | line|") > (hline "|-+-+-+-+-+-+-+-+-+-+-|") > (results (format "| %s,%s | ||||||||||" electric-indent-mode > org-adapt-indentation))) > (goto-char (point-max)) > (insert (format "el %s; oai %s" el oai)) > (goto-char (point-max)) > (newline) > (insert (version)) > (goto-char (point-max)) > (newline) > (insert (org-version)) > (goto-char (point-max)) > (newline) > (insert header) > (goto-char (point-max)) > (newline) > (insert hline) > (goto-char (point-max)) > (newline) > (insert results) > (goto-char (point-max)) > (newline) > (goto-char (point-max)) > (newline)))) > #+end_src > > and, the shell loop-de-loop > #+begin_src sh > for el in t nil; do > for oai in t \'headline-data nil; do > rm -f *x.org*; > emacs -l ~/tmp/feorge.el --eval "(feorge ${el} ${oai} \"x.org\"= )"; > > done; > done > #+end_src > > untransposed table: > > | | head | head | src{ | src{ | src; | > src; | list | list | line | line | > > |-------------------+---------+-----------+------+-----------+------+----= -------+-----------+-----------+------+-----------| > | t,t | n | 1 | n | 1 | n-4 | 1 > | n+2*2,1 | 1 | n | 1 | > | t,headline-data | n,nbl,1 | 1 | n+2 | 1 | n-2 | 1 > | 1 | 1 | 1 | 1 | > | t,nil | 1 | 1 | n+2 | 1 | n-2 | 1 > | n+2*2,1 | 1 | n | 1 | > | nil,t | 1 | n | 1 | n+2 [t-2] | 1 | n-2 > [t+2] | 1 | n+2*2,1 | 1 | n | > | nil,headline-data | 1 | n,nbl,1 | 1 | n+2 [t-2] | 1 | n-2 > [t+2] | 1 | 1 | 1 | 1 | > | nil,nil | 1 | 1 | 1 | n+2 [t-2] | 1 | n-2 > [t+2] | 1 | n+2*2,1 | 1 | n | > --=20 regards, Tim -- Tim Cross --0000000000000f1f4e05b446b998 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Good work Greg.=C2=A0

My only comment i= s about the tests in src blocks. I'm not sure about these as I always u= se the special editing mode for source blocks and I would expect that when = you do this, the editing buffer would adopt the semantics of the native mod= e for the source language being edited. (I have org-src-tab-acts-natively t= in my init). Were your tests just inside a src block in an org buffer or i= nside the special editing buffer?=C2=A0

From that = table and what others have posted, I suspect many would be best off with or= g-adapt-indentation set to nil or possible 'heading-data. Personally, I= 've not found the change an issue, but I rarely go more than 3 or 4 lev= els deep in my headlines and am use to C-j to add a non-indented line. Howe= ver, I'm thinking about giving heading-data a spin as I like the indent= ation for planning lines and have less of a preference for the entry conten= t.=C2=A0

Tim

On Tue, 17 Nov 2020 at 15:03, Gr= eg Minshall <minshall@umich.edu> wrote:
hi,= Tim, et al.

i started feeling guilty yesterday, partly for being party to prolonging this discussion (though i do think it may be important?).=C2=A0 but also fo= r
realizing i had *not* explored the alternatives Tim, Gustavo, and others have suggested.

the following is *clearly* the department of irreproducible results.
but, i've tried to document the effects of 'electric-indent-mode= 9; and
'org-adapt-indentation' on a number of scenarios.=C2=A0 i present t= he results
with some explanation, but without much analysis.

the irreproducibility is just (afaict) a function of my not being able
to type the same thing over and over again, and/or transcribe the
results correctly.=C2=A0 the results here are, for the most part, the resul= t
of several runs, trying to eliminate disparities, and add new forms of
results (such as, "two <RET>, then third returns to column one&q= uot;).=C2=A0 but,
if anyone wants to try on their own, or automate further (the
possibilities are endless! :), please, l=C3=BCtfen!

there's an e-lisp function, and the shell double for loop towards the end of this e-mail.

first, here's the *transposed* table, as i think it is more readable. (the word "transpose" should show up in the info pages!).=C2=A0 a= t the end of
the e-mail, though, i'll put the non-transposed -- maybe one sees
some things there easier.

|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| t,t=C2=A0 =C2=A0 =C2=A0| t,head= line-data |=C2=A0 =C2=A0t,nil | nil,t=C2=A0 =C2=A0 =C2=A0| nil,headline-dat= a |=C2=A0 =C2=A0nil,nil |
|-----------+---------+-----------------+---------+-----------+------------= -------+-----------|
| head=C2=A0 =C2=A0 =C2=A0 | n=C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0n,nbl,1 |=C2=A0 =C2=A0 =C2=A0 =C2=A01 | 1=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=A01 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 |
| head<C-j> | 1=C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 |=C2=A0 =C2=A0 =C2=A0 =C2=A01 | n=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0n,n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=A0 =C2= =A0 =C2=A01 | n+2*2,1 | 1=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=A01 |=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A01 |
| list<C-j> | 1=C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 |=C2=A0 =C2=A0 =C2=A0 =C2=A01 | n+2*2,1=C2= =A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 = |=C2=A0 =C2=A0n+2*2,1 |
| line=C2=A0 =C2=A0 =C2=A0 | n=C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 |=C2=A0 =C2=A0 =C2=A0 =C2=A0n | 1= =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=A01 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 |
| line<C-j> | 1=C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 |=C2=A0 =C2=A0 =C2=A0 =C2=A01 | n=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=A01 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0n |

the columns are (electric-indent,org-adapt-indentation) pairs.

here are the cases (rows) and results (contents of cells).=C2=A0 the
"<C-j>"-suffixed cases use C-j rather than <RET>.

- head :: <RET> from a headline
=C2=A0 - n :: stays indented for "infinite" blank <RET>
=C2=A0 - n,nbl,1 :: n, then after first non-blank line, <RET> goes =C2=A0 =C2=A0 to 1
=C2=A0 - 1 :: goes
- src{ :: <RET> from, e.g., 'if (x) {'
=C2=A0 - n-2 :: undents by 2
=C2=A0 - n+2 :: indents
=C2=A0 - n+2 [t-2] :: goes to n+2 (but, <TAB> of non-blank line goes = to
=C2=A0 =C2=A0 n+4)
=C2=A0 - n-2 [t+2] :: goes to n-2 (but, that 2 past the previous <TAB>= ;
=C2=A0 =C2=A0 indentation level)
- src; :: <RET> from a regular program statement
- list<RET> :: <RET> from item in list
=C2=A0 - n+2 :: indents once
=C2=A0 - n+2*2,1 :: indents once, stays on next <RET>, then 1 on next= <RET>
=C2=A0 =C2=A0 (three <RET> total)
=C2=A0 - 1 :: column 1
- line :: <RET> from an indented line
=C2=A0 - n :: never goes to 1
=C2=A0 - 1 :: goes to 1


brute force lisp code
#+begin_src elisp
(defun feorge (el oai fname)
=C2=A0 (progn
=C2=A0 =C2=A0 (add-hook 'org-mode-hook (electric-indent-mode (if el 1 0= )))
=C2=A0 =C2=A0 (find-file fname)
=C2=A0 =C2=A0 (setq org-adapt-indentation oai)
=C2=A0 =C2=A0 (let
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ((header "| |head | head<C-j> | src{= | src{<C-j> | src; | src;<C-j> | list<RET> | list<C-j= > | line | line<C-j>|")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(hline "|-+-+-+-+-+-+-+-+-+-+-|"= ;)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(results (format "| %s,%s | ||||||||= ||" electric-indent-mode org-adapt-indentation)))
=C2=A0 =C2=A0 =C2=A0 (goto-char (point-max))
=C2=A0 =C2=A0 =C2=A0 (insert (format "el %s; oai %s" el oai))
=C2=A0 =C2=A0 =C2=A0 (goto-char (point-max))
=C2=A0 =C2=A0 =C2=A0 (newline)
=C2=A0 =C2=A0 =C2=A0 (insert (version))
=C2=A0 =C2=A0 =C2=A0 (goto-char (point-max))
=C2=A0 =C2=A0 =C2=A0 (newline)
=C2=A0 =C2=A0 =C2=A0 (insert (org-version))
=C2=A0 =C2=A0 =C2=A0 (goto-char (point-max))
=C2=A0 =C2=A0 =C2=A0 (newline)
=C2=A0 =C2=A0 =C2=A0 (insert header)
=C2=A0 =C2=A0 =C2=A0 (goto-char (point-max))
=C2=A0 =C2=A0 =C2=A0 (newline)
=C2=A0 =C2=A0 =C2=A0 (insert hline)
=C2=A0 =C2=A0 =C2=A0 (goto-char (point-max))
=C2=A0 =C2=A0 =C2=A0 (newline)
=C2=A0 =C2=A0 =C2=A0 (insert results)
=C2=A0 =C2=A0 =C2=A0 (goto-char (point-max))
=C2=A0 =C2=A0 =C2=A0 (newline)
=C2=A0 =C2=A0 =C2=A0 (goto-char (point-max))
=C2=A0 =C2=A0 =C2=A0 (newline))))
#+end_src

and, the shell loop-de-loop
#+begin_src sh
=C2=A0 for el in t nil; do
=C2=A0 =C2=A0 =C2=A0 for oai in t \'headline-data nil; do
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 rm -f *
x.org*;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 emacs -l ~/tmp/feorge.el --eval "(f= eorge ${el} ${oai} \"x.org\")";=C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0 done;=C2=A0 =C2=A0
=C2=A0 done
#+end_src

untransposed table:

|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2= =A0 =C2=A0 head | head<C-j> | src{ | src{<C-j> | src; | src;<= ;C-j> | list<RET> | list<C-j> | line | line<C-j> |
|-------------------+---------+-----------+------+-----------+------+------= -----+-----------+-----------+------+-----------|
| t,t=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=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