[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#48914: 2021-06-07; C-cC-e environment insertion with first line of c
From: |
Arash Esbati |
Subject: |
bug#48914: 2021-06-07; C-cC-e environment insertion with first line of contents commented out |
Date: |
Tue, 05 Mar 2024 10:43:37 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
jfbu <jfbu@free.fr> writes:
> Hi Keita,
>
> Le 10/06/2021 à 08:05, Ikumi Keita a écrit :
>> Hi Jean,
>>
>>>>>>> jfbu <jfbu@free.fr> writes:
>>> The result is
>>
>>> % \begin{foo}
>>> % deliberately missing closing $ after \simeq
>>> Reduces the background count rate by a factor of $R$ ($R\simeq 1/(1-.89) =
>>> 9.1
>>> for the shielding I used).
>>> % \end{foo}
>>
>>> Perhaps environment insertion should by default, except
>>> if in doctex-mode, not use % ?
>>
>>> or use it only if **all** lines are commented out ?
>> How about customizing `LaTeX-insert-into-comments' to nil? This
>> option
>> has an effect of adding comment prefixes at the beginning of line for
>> some commands, and defaults to t.
>
>
> Thank you. I have set it to nil and will see what happens.
>
>> AUCTeX sets this option to t unconditionally in doctex mode, so the
>> current default makes the standard latex mode to behave like doctex mode
>> in some aspects. (I'm not sure why it defaults to t.)
>
> It would be better to be able to set it to nil only in non-doctex mode.
>
> But, although I do currently work often with doctex-mode, I rarely
> insert an environment in comments, because
> 1. in my way of using dtx, the documentation for user is not commented
> out in the file
> 2. only code comments are commented out (sic)
> and I rarely (almost never) use environments as I use there most of
> the time a custom tex macro for multi-paragraph \verb-like behaviour
>
>> Some other commands are affected when you set this to nil, so please
>> report if it brings any undesired experience for you.
>>
>
> I will try to be alert to changes I may detect.
>
> Thanks for the tip.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
No further comments, therefore I'm closing this report.
Best, Arash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#48914: 2021-06-07; C-cC-e environment insertion with first line of contents commented out,
Arash Esbati <=