unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrea Corallo <acorallo@gnu.org>
To: Vincenzo Pupillo <v.pupillo@gmail.com>
Cc: 71225@debbugs.gnu.org, Theodor Thornhill <theo@thornhill.no>
Subject: bug#71225: 30.0.50; [PATCH] c-ts-common-comment-indent-new-line does not behave like c/c++-mode in comments
Date: Tue, 28 May 2024 14:15:20 -0400	[thread overview]
Message-ID: <yp1y17tu7k7.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <2561105.XAFRqVoOGU@3-191.divsi.unimi.it> (Vincenzo Pupillo's message of "Mon, 27 May 2024 16:09:18 +0200")

Vincenzo Pupillo <v.pupillo@gmail.com> writes:

> Hi, 
> the c-ts-common-comment-indent-new-line does not behave like c/c++-mode in comments. 
> M-j also behaves differently in different places.
>
> // M-j wrong behavior.
> int test(int a)
> {
>   /** (1)
>   */
>   int a;
>
>   /* (1)
>   */
>   int b;
>   // test (1)
>
>   int c; // blah blah
>          // (3)
> }
>
> /* (2)
>  */
>
> /** (2)
> */
>
> // (2)
>
> If you place the cursor at the positions indicated by (1) and (2), press M-j the result is different and is different from what happens with c/c++-mode. 
>
> As a bonus, the attached patch also allows single-line comments placed at the end of a line to be indented as in c-mode (as in "(3)")
>
> Thank you.
> V.

Adding Theodor in.

Thanks

  Andrea





  reply	other threads:[~2024-05-28 18:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-27 14:09 bug#71225: 30.0.50; [PATCH] c-ts-common-comment-indent-new-line does not behave like c/c++-mode in comments Vincenzo Pupillo
2024-05-28 18:15 ` Andrea Corallo [this message]
2024-05-28 18:30   ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-02  8:11     ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-02  8:30       ` 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

  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=yp1y17tu7k7.fsf@fencepost.gnu.org \
    --to=acorallo@gnu.org \
    --cc=71225@debbugs.gnu.org \
    --cc=theo@thornhill.no \
    --cc=v.pupillo@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).