unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Christoph <cschol2112@googlemail.com>
Cc: 7327@debbugs.gnu.org, Alan Mackenzie <acm@muc.de>
Subject: bug#7327: 24.0.50; cc-mode: default indentation inconsistent with typedefs
Date: Wed, 02 Jun 2021 10:48:11 +0200	[thread overview]
Message-ID: <87wnrcd54k.fsf@gnus.org> (raw)
In-Reply-To: <86y69a9ei4.fsf@gmail.com> (Christoph's message of "Wed, 03 Nov 2010 17:25:07 -0600")

Christoph <cschol2112@googlemail.com> writes:

> Start with `emacs -Q'. Start new .c file.
>
> Type `typedef enum' then hit `C-j', then `{'.
>
> The code is indented like this:
>
> typedef enum
>   {
>     blabla
>
> Then try `typedef struct', `C-j', '{'.
>
> The code is indented like this:
>
> typedef struct
> {
>   blabla

This behaviour is still present in Emacs 28.

Alan, is this behaving as designed, or is it a bug?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  parent reply	other threads:[~2021-06-02  8:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-03 23:25 bug#7327: 24.0.50; cc-mode: default indentation inconsistent with typedefs Christoph
2016-09-08  4:57 ` Alex
2021-06-02  8:48 ` Lars Ingebrigtsen [this message]
2021-06-03 11:38   ` Alan Mackenzie
2021-06-04  8:32     ` Lars Ingebrigtsen

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=87wnrcd54k.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=7327@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=cschol2112@googlemail.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).