From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25606: [DRAFT PATCH 2/2] Signal list cycles in =?UTF-8?Q?=E2=80=98length=E2=80=99?= etc. Date: Thu, 02 Feb 2017 19:28:19 +0200 Message-ID: <83wpd8v6x8.fsf@gnu.org> References: <20170201235622.30836-1-eggert@cs.ucla.edu> <20170201235622.30836-2-eggert@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1486056554 21538 195.159.176.226 (2 Feb 2017 17:29:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2017 17:29:14 +0000 (UTC) Cc: eggert@cs.ucla.edu, 25606@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 02 18:29:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1cZLC1-0005Lp-PJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Feb 2017 18:29:09 +0100 Original-Received: from localhost ([::1]:58116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZLC5-0006WZ-Ph for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Feb 2017 12:29:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZLBx-0006VO-6k for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 12:29:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZLBu-0007YQ-24 for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 12:29:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56031) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cZLBt-0007YK-VE for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 12:29:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cZLBt-0001ZR-Qb for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 12:29:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Feb 2017 17:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25606 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 25606-submit@debbugs.gnu.org id=B25606.14860565276017 (code B ref 25606); Thu, 02 Feb 2017 17:29:01 +0000 Original-Received: (at 25606) by debbugs.gnu.org; 2 Feb 2017 17:28:47 +0000 Original-Received: from localhost ([127.0.0.1]:54230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZLBf-0001Yz-4B for submit@debbugs.gnu.org; Thu, 02 Feb 2017 12:28:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZLBd-0001Yl-LV for 25606@debbugs.gnu.org; Thu, 02 Feb 2017 12:28:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZLBX-0007Qg-QC for 25606@debbugs.gnu.org; Thu, 02 Feb 2017 12:28:40 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZLBS-0007Oq-4Y; Thu, 02 Feb 2017 12:28:34 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2394 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cZLBR-0006VG-BQ; Thu, 02 Feb 2017 12:28:33 -0500 In-reply-to: <20170201235622.30836-2-eggert@cs.ucla.edu> (message from Paul Eggert on Wed, 1 Feb 2017 15:56:22 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:128886 Archived-At: > From: Paul Eggert > Date: Wed, 1 Feb 2017 15:56:22 -0800 > Cc: Paul Eggert > > Use macros like FOR_EACH_TAIL instead of maybe_quit to > catch list cycles automatically instead of relying on the > user becoming impatient and typing C-g. I don't think this is a good idea. We don't know when the user will become impatient, and on busy systems the counter could be very low by that time. I think we shouldn't second-guess users this way, and should always leave them the possibility of interrupting a possibly prolonged calculation. Also, could we please have tests for these functions? Thanks.