bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47167: [External] : bug#47167: Multi-line comment-region with empty


From: Drew Adams
Subject: bug#47167: [External] : bug#47167: Multi-line comment-region with empty comment-continue
Date: Mon, 15 Mar 2021 17:35:24 +0000

> Tried to customize 'comment-region' to use multi-line comments,
> so when commenting out such region in html-mode:
> 
> line 1
> line 2
> line 3
> 
> instead of adding comments to each line:
> 
> <!-- line 1 -->
> <!-- line 2 -->
> <!-- line 3 -->
> 
> to add comments only at the beginning/end:
> 
> <!--
> line 1
> line 2
> line 3
>   -->

(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)?

My guess is that what's needed is a separate command.

I'm guessing completely different prefix-arg behavior
would be appropriate for multi-line comments.  Maybe
you can find a way to merge the two without confusing
users (and the doc).  Or maybe it's not worth trying
to do that, and a separate command makes more sense.
Dunno.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]