all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: czipperz@gmail.com, emacs-devel@gnu.org
Subject: Re: Change a while loop into do while
Date: Sat, 31 Dec 2016 10:51:29 -0800	[thread overview]
Message-ID: <5688eb2c-1d04-d5ad-2696-e01420e25e74@cs.ucla.edu> (raw)
In-Reply-To: <83inq0geqy.fsf@gnu.org>

Eli Zaretskii wrote:
>> The indenting for 'do-while' wasn't using the usual GNU style
> Yes, it is: you will see a lot of that elsewhere in Emacs.

It's not the usual GNU style.  The GNU coding standards say to format do-while 
statements like this:

   do
     {
       a = foo (a);
     }
   while (a > 0);

There is a common exception in macros where the do-while is simply a statement 
wrapper, but that exception didn't apply here.



  reply	other threads:[~2016-12-31 18:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-27  4:55 Change a while loop into do while Chris Gregory
2016-12-31 11:20 ` Eli Zaretskii
2016-12-31 17:20   ` Paul Eggert
2016-12-31 18:00     ` Eli Zaretskii
2016-12-31 18:51       ` Paul Eggert [this message]
2016-12-31 19:18         ` Eli Zaretskii
2016-12-31 20:56           ` Paul Eggert
2016-12-31 20:59             ` Eli Zaretskii
2016-12-31 18:12     ` Eli Zaretskii
2016-12-31 18:31       ` Eli Zaretskii
2016-12-31 18:47         ` Paul Eggert

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5688eb2c-1d04-d5ad-2696-e01420e25e74@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=czipperz@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.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 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.