unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: Mohammed Sadiq <sadiq@sadiqpk.org>
Cc: 60463@debbugs.gnu.org
Subject: bug#60463: 29.0.60; c-ts-mode: M-x align doesn't work
Date: Mon, 2 Jan 2023 14:44:45 -0800	[thread overview]
Message-ID: <9ECF22EB-D2FB-4697-A1DB-15F0AF3BF3B2@gmail.com> (raw)
In-Reply-To: <21fcfd1a6555e9bcbb03707b9bc7fba2@sadiqpk.org>


Mohammed Sadiq <sadiq@sadiqpk.org> writes:

> M-x align doesn't align function arguments or struct members, which
> works fine in c-mode.
>
> Say for example, if I mark the region around '(' and ')' and do M-x
> align for the following code:
>
> int
> main (int argc,
>       char *argv[])
> {
> }
>
>
> I should get the following (see the change of spacing between 'int'
> and 'argc'):
>
> int
> main (int   argc,
>       char *argv[])
> {
> }
>
>
> Modifying align-c++-modes to include c-ts-mode should be enough to fix
> this.

Could you go me a favor and look up where is align-c++-modes defined? Or
just paste the value of it, if it is programmatically defined. Thanks
:-)

Yuan





  reply	other threads:[~2023-01-02 22:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-01 10:20 bug#60463: 29.0.60; c-ts-mode: M-x align doesn't work Mohammed Sadiq
2023-01-02 22:44 ` Yuan Fu [this message]
2023-01-03  9:05   ` Mohammed Sadiq
2023-01-03 11:19     ` Stefan Kangas
2023-01-03 12:53       ` Eli Zaretskii
2023-01-03 15:53         ` Stefan Kangas
2023-01-19  9:22   ` Mohammed Sadiq
2023-01-22  8:46     ` Mohammed Sadiq
2023-01-08  0:55 ` 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=9ECF22EB-D2FB-4697-A1DB-15F0AF3BF3B2@gmail.com \
    --to=casouri@gmail.com \
    --cc=60463@debbugs.gnu.org \
    --cc=sadiq@sadiqpk.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 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).