unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Ota, Takaaki" <Takaaki.Ota@sony.com>
Cc: 33197@debbugs.gnu.org
Subject: bug#33197: 26.1; cc-mode enum indentation
Date: Thu, 26 Nov 2020 14:00:14 +0100	[thread overview]
Message-ID: <87k0u8s275.fsf@gnus.org> (raw)
In-Reply-To: <20181029.140358.335851305.Takaaki.Ota@sony.com> (Takaaki Ota's message of "Mon, 29 Oct 2018 14:03:58 -0700")

"Ota, Takaaki" <Takaaki.Ota@sony.com> writes:

> The enum indentation in cc-mode used to look like this.
>
> 	  enum {
> 	    pDlen = sizeof pD - 1,
> 	    pIlen = sizeof pI - 1,
> 	    pMlen = sizeof pMd - 2
> 	  };
> 	  enum {
> 	    no_modifier, long_modifier, pD_modifier, pI_modifier, pM_modifier
> 	  } length_modifier = no_modifier;
>
> This is a portion of doprnt.c in the current 26.1 source code.  But
> now the 26.1 cc-mode indents like this
>
> 	  enum {
>                 pDlen = sizeof pD - 1,
>                 pIlen = sizeof pI - 1,
>                 pMlen = sizeof pMd - 2
> 	  };

I tested this in Emacs 27.1 and Emacs 28, and they both indent this code
like in the first example.

Are you still seeing this issue in Emacs 27?

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





  reply	other threads:[~2020-11-26 13:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-29 21:03 bug#33197: 26.1; cc-mode enum indentation Ota, Takaaki
2020-11-26 13:00 ` Lars Ingebrigtsen [this message]
2020-11-26 13:14   ` 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=87k0u8s275.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=33197@debbugs.gnu.org \
    --cc=Takaaki.Ota@sony.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).