From: Dmitry Gutov <dgutov@yandex.ru>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: emacs-29 b18754bb179: Minor improvements in c-ts-mode and docs
Date: Thu, 16 Feb 2023 14:51:09 +0200 [thread overview]
Message-ID: <d9abc757-3510-7c0f-d2cd-13c13d75e821@yandex.ru> (raw)
In-Reply-To: <83wn4h7r7c.fsf@gnu.org>
On 16/02/2023 14:03, Eli Zaretskii wrote:
>> Date: Thu, 16 Feb 2023 13:17:41 +0200
>> Cc: emacs-devel@gnu.org
>> From: Dmitry Gutov <dgutov@yandex.ru>
>>
>> On 16/02/2023 09:32, Eli Zaretskii wrote:
>>> I consider it confusing and sub-optimal
>>> to have some C-related feature described in the Emacs user manual that
>>> works only in CC Mode. We have a couple of other keybindings in
>>> c-ts-mode.el, for the same reasons.
>>
>> I'm not going to chime in about every such keybinding, but this could be
>> our chance to reduce inconsistency between C mode and other language modes.
>
> We could at least discuss that, sure. Is there a list of
> inconsistencies between those modes available anywhere?
From past discussions and looking at 'C-h m':
- "electric" behaviors: CC Mode's commands vs. electric-indent-mode and
electric-pair-mode.
- c-subword-mode vs subword-mode
- c-display-defun-name vs which-function-mode
- c-indent-exp vs prog-indent-sexp
- c-indent-defun/c-fill-paragraph vs prog-fill-reindent-defun
- c-indent-line-or-region vs indent-for-tab-command and indent-region.
Curious how c-indent-line-or-region doesn't mind depending on
transient-mark-mode being on.
> The next question, of course, is how to go about reducing the
> inconsistencies. What you proposed here is simply drop the
> keybinding,
I also suggested, alternatively, that transient-mark-mode, when turned
off, creates a global binding for comment-region (also with 'C-c C-c').
I'm guessing (almost?) all of the users who turn it off simply started
with Emacs when that was the default behavior. If they haven't reported
the lack of this binding in various modes, they aren't going to mind the
shadowing of it as well.
> but that might not be a good idea for other
> inconsistencies, even if we finally decide that for this one it is
> okay.
The general plan could be:
- Wait for a complaint or a bug report.
- See if there is a generic feature which could be used instead. Or
whether it could be tweaked.
- Or whether a new feature would benefit most/all programming modes and
can be added to prog-mode instead, and it's easy enough to do.
- Add stuff to c-ts-mode otherwise.
next prev parent reply other threads:[~2023-02-16 12:51 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <167648414913.7595.16030168421819097011@vcs2.savannah.gnu.org>
[not found] ` <20230215180229.75FF5C00613@vcs2.savannah.gnu.org>
2023-02-15 18:14 ` emacs-29 b18754bb179: Minor improvements in c-ts-mode and docs Dmitry Gutov
2023-02-15 18:31 ` Alan Mackenzie
2023-02-15 18:50 ` Dmitry Gutov
2023-02-15 19:37 ` Eli Zaretskii
2023-02-15 20:25 ` Dmitry Gutov
2023-02-16 7:09 ` Eli Zaretskii
2023-02-16 11:15 ` Dmitry Gutov
2023-02-16 12:01 ` Eli Zaretskii
2023-02-15 19:44 ` Alan Mackenzie
2023-02-15 20:29 ` Dmitry Gutov
2023-02-16 7:11 ` Eli Zaretskii
2023-02-15 18:35 ` Eli Zaretskii
2023-02-15 18:53 ` Dmitry Gutov
2023-02-15 19:39 ` Eli Zaretskii
2023-02-15 20:32 ` Dmitry Gutov
2023-02-16 7:32 ` Eli Zaretskii
2023-02-16 11:17 ` Dmitry Gutov
2023-02-16 12:03 ` Eli Zaretskii
2023-02-16 12:51 ` Dmitry Gutov [this message]
2023-02-16 15:19 ` Eli Zaretskii
2023-02-16 15:38 ` Dmitry Gutov
2023-02-16 15:53 ` Theodor Thornhill
2023-02-16 15:58 ` Eli Zaretskii
2023-02-16 20:09 ` Dmitry Gutov
2023-02-16 20:22 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d9abc757-3510-7c0f-d2cd-13c13d75e821@yandex.ru \
--to=dgutov@yandex.ru \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.