From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: emacs-29 b18754bb179: Minor improvements in c-ts-mode and docs Date: Wed, 15 Feb 2023 18:31:36 +0000 Message-ID: References: <167648414913.7595.16030168421819097011@vcs2.savannah.gnu.org> <20230215180229.75FF5C00613@vcs2.savannah.gnu.org> <6bd367b5-f4fc-0727-a1fc-08dfadc15c1a@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10026"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Eli Zaretskii To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 15 19:32:15 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pSMZi-0002QD-NP for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Feb 2023 19:32:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSMZD-0004CG-Dr; Wed, 15 Feb 2023 13:31:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSMZA-0004Bi-SX for emacs-devel@gnu.org; Wed, 15 Feb 2023 13:31:41 -0500 Original-Received: from mx3.muc.de ([193.149.48.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSMZ8-0002Gf-S1 for emacs-devel@gnu.org; Wed, 15 Feb 2023 13:31:40 -0500 Original-Received: (qmail 78387 invoked by uid 3782); 15 Feb 2023 19:31:36 +0100 Original-Received: from acm.muc.de (pd953abf4.dip0.t-ipconnect.de [217.83.171.244]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 15 Feb 2023 19:31:36 +0100 Original-Received: (qmail 25724 invoked by uid 1000); 15 Feb 2023 18:31:36 -0000 Content-Disposition: inline In-Reply-To: <6bd367b5-f4fc-0727-a1fc-08dfadc15c1a@yandex.ru> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.5; envelope-from=acm@muc.de; helo=mx3.muc.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303319 Archived-At: Hello, Dmitry. On Wed, Feb 15, 2023 at 20:14:29 +0200, Dmitry Gutov wrote: > On 15/02/2023 20:02, Eli Zaretskii wrote: > > + "C-c C-c" #'comment-region) > Should we maybe take this opportunity to introduce c-ts-mode's users to > the common bindings we use in other modes? > 'M-;' seems to work just fine for commenting code already. And it has > more capabilities than 'comment-region'. M-; can only comment the region when transient-mark-mode is enabled. The flip-side of "has more capabilities" is "doesn't do one thing and do it well". In practice, in C Mode, I use both C-c C-c and M-;, depending on whether I'm (un)commenting the region or a single line. I think the C-c C-c binding should remain. -- Alan Mackenzie (Nuremberg, Germany).