all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Am I misrembering comment-region == C-c #?
@ 2020-01-08 14:55 Skip Montanaro
  2020-01-08 15:20 ` Noam Postavsky
  0 siblings, 1 reply; 3+ messages in thread
From: Skip Montanaro @ 2020-01-08 14:55 UTC (permalink / raw)
  To: Help GNU Emacs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Am I misrembering comment-region == C-c #?
  2020-01-08 14:55 Am I misrembering comment-region == C-c #? Skip Montanaro
@ 2020-01-08 15:20 ` Noam Postavsky
  2020-01-08 15:58   ` Skip Montanaro
  0 siblings, 1 reply; 3+ messages in thread
From: Noam Postavsky @ 2020-01-08 15:20 UTC (permalink / raw)
  To: Skip Montanaro; +Cc: Help GNU Emacs

On Wed, 8 Jan 2020 at 09:55, Skip Montanaro <skip.montanaro@gmail.com> 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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Am I misrembering comment-region == C-c #?
  2020-01-08 15:20 ` Noam Postavsky
@ 2020-01-08 15:58   ` Skip Montanaro
  0 siblings, 0 replies; 3+ messages in thread
From: Skip Montanaro @ 2020-01-08 15:58 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: Help GNU Emacs

>
> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-08 15:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-08 14:55 Am I misrembering comment-region == C-c #? Skip Montanaro
2020-01-08 15:20 ` Noam Postavsky
2020-01-08 15:58   ` Skip Montanaro

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.