Am I misrembering comment-region == C-c #?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Am I misrembering comment-region == C-c #?

Skip Montanaro
For programming modes where '#' is the comment character (shell scripts,
Python, etc), I'm used to having comment-region bound to C-c #. That seems
to no longer be the case (GNU Emacs 25.2.2). When I first thought about
griping about the change, I investigated a bit and found that M-; would
comment a region (a key sequence I generally only ever used in Emacs Lisp
mode to add a comment to the current line), so I'm good to go.

Still, did I miss a memo somewhere? I'm not terribly well plugged into the
Emacs dev community, so probably. Oddly enough, in C mode C-c C-c is bound
to comment-region (though M-; works there as well). I assume the change was
made in the interests of consistency.

Thx,

Skip Montanaro
Reply | Threaded
Open this post in threaded view
|

Re: Am I misrembering comment-region == C-c #?

Noam Postavsky
On Wed, 8 Jan 2020 at 09:55, Skip Montanaro <[hidden email]> wrote:
>
> For programming modes where '#' is the comment character (shell scripts,
> Python, etc), I'm used to having comment-region bound to C-c #. That seems
> to no longer be the case (GNU Emacs 25.2.2).

I can't find any Emacs versions where that was the case (I tested
24.5, 24.3, 24.1, 23.1). Maybe it's from some package you installed?

comment-region is bound to C-c C-c in cc-mode based modes (including
awk-mode, but not sh-mode). This is true in Emacs 25 as well.

Reply | Threaded
Open this post in threaded view
|

Re: Am I misrembering comment-region == C-c #?

Skip Montanaro
>
> I can't find any Emacs versions where that was the case (I tested
> 24.5, 24.3, 24.1, 23.1). Maybe it's from some package you installed?
>
> comment-region is bound to C-c C-c in cc-mode based modes (including
> awk-mode, but not sh-mode). This is true in Emacs 25 as well.
>

Thanks. Must have had something set up once upon a time in my work versions
of ~/.emacs. (I'm now retired and no longer have such a sophisticated
.emacs file.)

Skip