From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master b7fa6b1 1/4: Simplify use of FOR_EACH_TAIL Date: Tue, 07 Feb 2017 17:32:29 +0200 Message-ID: <8337fq6mpe.fsf@gnu.org> References: <20170205213033.19755.8264@vcs.savannah.gnu.org> <20170205213034.20306220171@vcs.savannah.gnu.org> <83inon72kj.fsf@gnu.org> <3c4ae804-8188-b767-c65a-d4e71d876502@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1486482952 30409 195.159.176.226 (7 Feb 2017 15:55:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2017 15:55:52 +0000 (UTC) Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 07 16:55:46 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb87K-0007Sg-DR for ged-emacs-devel@m.gmane.org; Tue, 07 Feb 2017 16:55:42 +0100 Original-Received: from localhost ([::1]:54996 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb87Q-0007cV-0M for ged-emacs-devel@m.gmane.org; Tue, 07 Feb 2017 10:55:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb7kw-0007CZ-Fu for emacs-devel@gnu.org; Tue, 07 Feb 2017 10:32:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb7ks-0001ar-DT for emacs-devel@gnu.org; Tue, 07 Feb 2017 10:32:34 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb7ks-0001an-AO; Tue, 07 Feb 2017 10:32:30 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1717 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cb7kr-0000eU-KW; Tue, 07 Feb 2017 10:32:30 -0500 In-reply-to: <3c4ae804-8188-b767-c65a-d4e71d876502@cs.ucla.edu> (message from Paul Eggert on Mon, 6 Feb 2017 17:35:51 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212099 Archived-At: > Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org > From: Paul Eggert > 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.