From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: C-g while exiting the minibuffer Date: Thu, 28 Nov 2013 20:38:16 -0500 Message-ID: References: <52977725.50800@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385689106 15329 80.91.229.3 (29 Nov 2013 01:38:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Nov 2013 01:38:26 +0000 (UTC) Cc: martin rudalics , emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 29 02:38:30 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VmD2M-0007B1-Np for ged-emacs-devel@m.gmane.org; Fri, 29 Nov 2013 02:38:30 +0100 Original-Received: from localhost ([::1]:44785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmD2M-0008EB-Ck for ged-emacs-devel@m.gmane.org; Thu, 28 Nov 2013 20:38:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmD2E-0008D1-BU for emacs-devel@gnu.org; Thu, 28 Nov 2013 20:38:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmD29-0001jK-2Y for emacs-devel@gnu.org; Thu, 28 Nov 2013 20:38:22 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:40638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmD28-0001jD-Vu for emacs-devel@gnu.org; Thu, 28 Nov 2013 20:38:17 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+KEh/2dsb2JhbABEvw4Xc4IfAQVWIxALNBIUGA0kE4gRwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFHO+KEh/2dsb2JhbABEvw4Xc4IfAQVWIxALNBIUGA0kE4gRwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="40651377" Original-Received: from 206-248-161-33.dsl.teksavvy.com (HELO pastel.home) ([206.248.161.33]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 28 Nov 2013 20:38:16 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 29C46604BC; Thu, 28 Nov 2013 20:38:16 -0500 (EST) In-Reply-To: (Andreas Schwab's message of "Fri, 29 Nov 2013 00:17:59 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165849 Archived-At: Found it: revno: 39564 committer: Gerd Moellmann timestamp: Fri 2001-10-05 09:48:47 +0000 message: (LIST_END_P, FOREACH): New macros. /* Loop over Lisp list LIST. Signal an error if LIST is not a proper list, or if it contains circles. HARE and TORTOISE should be the names of Lisp_Object variables, and N should be the name of an EMACS_INT variable declared in the function where the macro is used. Each nested loop should use its own variables. In the loop body, HARE is set to each cons of LIST, and N is the length of the list processed so far. */ #define LIST_END_P(list, obj) \ (NILP (obj) \ ? 1 \ : (CONSP (obj) \ ? 0 \ : (wrong_type_argument (Qlistp, (list), 0)), 1)) #define FOREACH(hare, list, tortoise, n) \ for (tortoise = hare = (list), n = 0; \ !LIST_END_P (list, hare); \ (hare = XCDR (hare), ++n, \ ((n & 1) != 0 \ ? (tortoise = XCDR (tortoise), \ (EQ (hare, tortoise) \ && (circular_list_error ((list)), 1))) \ : 0))) Died in 2011: revno: 103880.1.17 committer: Paul Eggert branch nick: atest timestamp: Mon 2011-04-11 22:17:33 -0700 message: * lisp.h (circular_list_error, FOREACH): Remove; unused. -- Stefan