all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: master f3891da4972 1/2: ; * src/w32image.c (thumb_type_data): Revert parts of recent change.
       [not found] ` <20240531063650.CB52AC5400C@vcs2.savannah.gnu.org>
@ 2024-05-31  7:55   ` Po Lu
  2024-05-31 10:36     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Po Lu @ 2024-05-31  7:55 UTC (permalink / raw)
  To: emacs-devel; +Cc: Eli Zaretskii

Eli Zaretskii <eliz@gnu.org> writes:

> branch: master
> commit f3891da49722a5e8a9f68435c8af13d24e03a6be
> Author: Eli Zaretskii <eliz@gnu.org>
> Commit: Eli Zaretskii <eliz@gnu.org>
>
>     ; * src/w32image.c (thumb_type_data): Revert parts of recent change.

Why?  (standards)Formatting states:

   For ‘struct’ and ‘enum’ types, likewise put the braces in column one,
unless the whole contents fits on one line:

     struct foo
     {
       int a, b;
     }
or
     struct foo { int a, b; }



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: master f3891da4972 1/2: ; * src/w32image.c (thumb_type_data): Revert parts of recent change.
  2024-05-31  7:55   ` master f3891da4972 1/2: ; * src/w32image.c (thumb_type_data): Revert parts of recent change Po Lu
@ 2024-05-31 10:36     ` Eli Zaretskii
  2024-05-31 11:21       ` Po Lu
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2024-05-31 10:36 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

> From: Po Lu <luangruo@yahoo.com>
> Cc: Eli Zaretskii <eliz@gnu.org>
> Date: Fri, 31 May 2024 15:55:49 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > branch: master
> > commit f3891da49722a5e8a9f68435c8af13d24e03a6be
> > Author: Eli Zaretskii <eliz@gnu.org>
> > Commit: Eli Zaretskii <eliz@gnu.org>
> >
> >     ; * src/w32image.c (thumb_type_data): Revert parts of recent change.
> 
> Why?  (standards)Formatting states:

We don't adhere to that part of the coding standards, and I see no
reason why we should start now.

(The original reason, now lost to history, was that CC Mode produced
better indentation that way.)



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: master f3891da4972 1/2: ; * src/w32image.c (thumb_type_data): Revert parts of recent change.
  2024-05-31 10:36     ` Eli Zaretskii
@ 2024-05-31 11:21       ` Po Lu
  2024-05-31 13:12         ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Po Lu @ 2024-05-31 11:21 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> We don't adhere to that part of the coding standards, and I see no
> reason why we should start now.

When was this decision made?

> (The original reason, now lost to history, was that CC Mode produced
> better indentation that way.)

Wasn't that the indentation that is nowadays only applied to `enum's,
i.e.,

struct foo
  {
    int x, y;
  };



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: master f3891da4972 1/2: ; * src/w32image.c (thumb_type_data): Revert parts of recent change.
  2024-05-31 11:21       ` Po Lu
@ 2024-05-31 13:12         ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2024-05-31 13:12 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Fri, 31 May 2024 19:21:50 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > We don't adhere to that part of the coding standards, and I see no
> > reason why we should start now.
> 
> When was this decision made?

Long ago.  Just look at the sources.

> > (The original reason, now lost to history, was that CC Mode produced
> > better indentation that way.)
> 
> Wasn't that the indentation that is nowadays only applied to `enum's,
> i.e.,
> 
> struct foo
>   {
>     int x, y;
>   };

I'm not sure I understand what you are saying, but standards.texi says
to use the same format for struct's and enum's.

Also, neither CC Mode nor c-ts-mode produce a 2-space offset before
braces in a struct that is declared at top level.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-31 13:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <171713741024.17516.6154639966246811985@vcs2.savannah.gnu.org>
     [not found] ` <20240531063650.CB52AC5400C@vcs2.savannah.gnu.org>
2024-05-31  7:55   ` master f3891da4972 1/2: ; * src/w32image.c (thumb_type_data): Revert parts of recent change Po Lu
2024-05-31 10:36     ` Eli Zaretskii
2024-05-31 11:21       ` Po Lu
2024-05-31 13:12         ` Eli Zaretskii

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.