all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master b7fa6b1 1/4: Simplify use of FOR_EACH_TAIL
Date: Tue, 07 Feb 2017 17:32:29 +0200	[thread overview]
Message-ID: <8337fq6mpe.fsf@gnu.org> (raw)
In-Reply-To: <3c4ae804-8188-b767-c65a-d4e71d876502@cs.ucla.edu> (message from Paul Eggert on Mon, 6 Feb 2017 17:35:51 -0800)

> Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org
> From: Paul Eggert <eggert@cs.ucla.edu>
> Date: Mon, 6 Feb 2017 17:35:51 -0800
> 
> > We have similar macros elsewhere, e.g. FOR_EACH_FRAME,
> > FOR_EACH_BUFFER, etc.  It's IMO a pity to have this one different.
> 
> Good point, I had forgotten about that. I installed the attached patch, 
> which changes FOR_EACH_TAIL to act more like these other macros. That 
> is. FOR_EACH_TAIL (tail) now updates 'tail' each time through the loop, 
> and the caller needs to declare the 'tail' variable outside the loop; 
> this is as it was before.

Thanks.



  reply	other threads:[~2017-02-07 15:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20170205213033.19755.8264@vcs.savannah.gnu.org>
     [not found] ` <20170205213034.20306220171@vcs.savannah.gnu.org>
2017-02-06  1:19   ` [Emacs-diffs] master b7fa6b1 1/4: Simplify use of FOR_EACH_TAIL Stefan Monnier
2017-02-06  5:23     ` Paul Eggert
2017-02-06 15:37       ` Eli Zaretskii
2017-02-07  1:35         ` Paul Eggert
2017-02-07 15:32           ` Eli Zaretskii [this message]
2017-02-06 17:38       ` Davis Herring
2017-02-07  1:04         ` Paul Eggert
2017-02-07 20:45           ` Johan Bockgård
2017-02-07 21:50           ` Richard Stallman
2017-02-07 22:18             ` 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=8337fq6mpe.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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.