[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47167: [External] : bug#47167: Multi-line comment-region with empty
From: |
Juri Linkov |
Subject: |
bug#47167: [External] : bug#47167: Multi-line comment-region with empty comment-continue |
Date: |
Tue, 16 Mar 2021 19:47:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
> (Haven't looked at your patch.)
>
> Sounds like a reasonable, and useful thing to do.
>
> However, `comment-region' also has optional behaviors
> that involve its use of a prefix arg. How with those
> interact with what you propose? Do they even make
> sense (e.g. nesting comment levels and unnesting them)?
With (setq-local comment-style 'extra-line comment-continue ""),
`comment-region' currently breaks HTML syntax
because HTML doesn't support nested comments:
<!--
<!-- line 1 -->
<!-- line 2 -->
<!-- line 3 -->
-->
With the proposed patch, HTML syntax stays valid:
<!--
line 1
line 2
line 3
-->