[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Re: the comment environment does not work for checkboxes
From: |
Ihor Radchenko |
Subject: |
Re: [PATCH] Re: the comment environment does not work for checkboxes |
Date: |
Sat, 30 Jul 2022 14:15:13 +0800 |
Uwe Brauer <oub@mat.ucm.es> writes:
>> Uwe Brauer <oub@mat.ucm.es> writes:
>
>> I am sorry, but I am not familiar with the feature you are referring to.
>
> I applied your patch and did a bit of testing: works flawlessly.
Thanks!
>> Either way, both src and comment blocks are supposed to contain
>> arbitrary non-parseable text, which should not contribute to the
>> statistics? calculations.
>
> With your patch, I can confirm this, before it did not since *** was not
> «escaped»
To clarify, when you have
* Heading
#+begin_comment
* Lorem ipsum
#+end_comment
it is not seen by Org as comment block.
Instead, what Org "sees" is
<begin heading 1>
* Heading
<begin paragraph>
#+begin_comment
<end paragraph>
<end heading 1>
<begin heading 2>
* Lorem ipsum
<begin paragraph>
#+end_comment
<end paragraph>
<end heading 2>
Headline markup has the top priority all the times.
>> AFAIK, you cannot. At least, not using an existing command. What you can
>> instead do is open C-c ' window, copy the unescaped text, exit the
>> window, remove the block, and yank the unescaped text.
>
> I see, (patches are welcome I presume 😉)
Yup. Probably, we can make org-insert-structure-template more smart and
remove the block when user selects the same block as the existing one.
It should be controlled by defcustom though (t nil 'ask). Wrapping a
comment block inside comment block can be a valid use case.
Best,
Ihor
- the comment environment does not work for checkboxes, Uwe Brauer, 2022/07/29
- Re: the comment environment does not work for checkboxes, Dr. Arne Babenhauserheide, 2022/07/29
- Re: the comment environment does not work for checkboxes, Uwe Brauer, 2022/07/29
- [PATCH] Re: the comment environment does not work for checkboxes, Ihor Radchenko, 2022/07/30
- Re: [PATCH] Re: the comment environment does not work for checkboxes, Uwe Brauer, 2022/07/30
- Re: [PATCH] Re: the comment environment does not work for checkboxes, Ihor Radchenko, 2022/07/30
- Re: [PATCH] Re: the comment environment does not work for checkboxes, Uwe Brauer, 2022/07/30
- Re: [PATCH] Re: the comment environment does not work for checkboxes,
Ihor Radchenko <=
- Re: [PATCH] Re: the comment environment does not work for checkboxes, Uwe Brauer, 2022/07/30
- Re: [PATCH] Re: the comment environment does not work for checkboxes, Ihor Radchenko, 2022/07/30
[SOLVED: src not comment] (was: the comment environment does not work for checkboxes), Uwe Brauer, 2022/07/30