[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master b7fa6b1 1/4: Simplify use of FOR_EACH_TAIL
From: |
Eli Zaretskii |
Subject: |
Re: [Emacs-diffs] master b7fa6b1 1/4: Simplify use of FOR_EACH_TAIL |
Date: |
Tue, 07 Feb 2017 17:32:29 +0200 |
> Cc: address@hidden, address@hidden
> From: Paul Eggert <address@hidden>
> 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.