[Top][All Lists]

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

Re: Commenting several lines

From: Benno Schulenberg
Subject: Re: Commenting several lines
Date: Fri, 21 Jan 2022 12:46:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

Op 21-01-2022 om 07:31 schreef Seb:
> I was probably influenced by Tab, which works both on lines and on selected
> blocks. I'm not sure this behaviour should be extended to commenting (ie 
> making #
> or % act like M-3 if a block is selected), but perhaps it's worth a thought.

Hmm, no.  Tab is an edge case: it is not a normal, printable character but a
control code, so it is kind of okay that it behaves differently when a block
of text is selected.  But to make normal characters behave specially...

Also, if # or % would behave specially, then why not // and -- and who knows
what other character combinations are used for commenting.  The beauty of M-3
is that (when using syntaxes) it will insert/remove the character or character
combination that is appropriate for the type of file you're editing.


Attachment: OpenPGP_signature
Description: OpenPGP digital signature

reply via email to

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