unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Mohammed Sadiq <sadiq@sadiqpk.org>
To: Yuan Fu <casouri@gmail.com>
Cc: Alan Mackenzie <acm@muc.de>, 60270@debbugs.gnu.org
Subject: bug#60270: 29.0.60; c-ts-mode: Comments are not indented right on auto indentation
Date: Sun, 25 Dec 2022 15:16:53 +0530	[thread overview]
Message-ID: <fd21268f7b97f33527952f2a742edea3@sadiqpk.org> (raw)
In-Reply-To: <1DBC1FDA-4757-4473-98EE-0030C26B26D7@gmail.com>

On 2022-12-25 14:06, Yuan Fu wrote:
>> On buffer select-all TAB, for the following comment:
>> 
>> /*
>>   hello
>> */
>> 
>> I get the following in c-mode (no space before */):
>> 
>> /*
>>   hello
>> */
>> 
>> and the following in c-ts-mode (a space before */):
>> 
>> /*
>>   hello
>>  */
> 
> I have to say I’m not a C veteran, but I feel like the c-ts-mode result
> makes more sense. Why do we want
> 
> /*
>   * hello
>   */
> 
> but not
> 
> /*
>   hello
>   */
> 
> ?
> 
> Is it like a convention?

I don't know, I was suggesting to have c-ts-mode behave like c-mode.
So, as to avoid unnecessary changes (as it adds unnecessary noise in
version control history, for those who are using one) on buffer
select-all TAB indent and for the people who migrated to c-ts-mode.

> 
> CC’ed Alan because he must know this.
> 
> Yuan





  parent reply	other threads:[~2022-12-25  9:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-23  9:30 bug#60270: 29.0.60; c-ts-mode: Comments are not indented right on auto indentation Mohammed Sadiq
2022-12-24  8:33 ` Yuan Fu
2022-12-24  9:49   ` Mohammed Sadiq
2022-12-24 22:32 ` Yuan Fu
2022-12-25  4:34   ` Mohammed Sadiq
2022-12-25  8:36 ` Yuan Fu
2022-12-25  9:25   ` Eli Zaretskii
2023-01-03 14:30     ` Mohammed Sadiq
2022-12-25  9:46   ` Mohammed Sadiq [this message]
2023-01-07 23:28 ` Yuan Fu
2023-01-08 10:02   ` Mohammed Sadiq
2023-01-10  5:28 ` Yuan Fu
2023-01-10 10:13   ` Mohammed Sadiq
2023-01-10 12:17     ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-11  9:27       ` Yuan Fu
2023-01-11  9:30     ` Yuan Fu
2023-01-13  8:58       ` Yuan Fu
2023-01-14  7:53 ` Yuan Fu
2023-01-15  5:28   ` Mohammed Sadiq
2023-01-16  8:24 ` Yuan Fu

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fd21268f7b97f33527952f2a742edea3@sadiqpk.org \
    --to=sadiq@sadiqpk.org \
    --cc=60270@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=casouri@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).