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: Why should interactive search results raise errors? Date: Thu, 04 May 2006 12:15:41 -0400 Message-ID: References: <4458D9D1.5000907@student.lu.se> <87vesn83ul.fsf@mit.edu> <4458DF5F.6010309@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146759492 16813 80.91.229.2 (4 May 2006 16:18:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 May 2006 16:18:12 +0000 (UTC) Cc: Lennart Borgman , cyd@mit.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 04 18:18:09 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FbgW2-0007pg-Qm for ged-emacs-devel@m.gmane.org; Thu, 04 May 2006 18:17:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbgW2-00028t-9J for ged-emacs-devel@m.gmane.org; Thu, 04 May 2006 12:17:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FbgUo-0001eG-0Z for emacs-devel@gnu.org; Thu, 04 May 2006 12:16:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FbgUm-0001dW-A5 for emacs-devel@gnu.org; Thu, 04 May 2006 12:16:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbgUl-0001dO-PS for emacs-devel@gnu.org; Thu, 04 May 2006 12:16:03 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FbgVI-0001kJ-JD; Thu, 04 May 2006 12:16:36 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 10E8B2CF5DF; Thu, 4 May 2006 12:15:56 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 4CBF8445C; Thu, 4 May 2006 12:15:42 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 08762716B9; Thu, 4 May 2006 12:15:41 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Thu, 04 May 2006 10:17:11 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53913 Archived-At: > I think the better answer is to create a new error class called > `user-error' which would be then added to debug-ignored-errors. > Then we can replace most elements of debug-ignored-errors by changing > the signalling code so as to signal a `user-error' rather than an > `error'. > That is not necessarily a bad idea, but I am not sure whether it is > really possible to distinguish "user errors" from other errors at the > level of calls to `signal'. Clearly, the distinction between the two is only based on an expectation of the context in which the function will be used. So it's a heuristic and can fail, but it on the flip side it also documents some of the intention behind the code. I think of it mostly as a way to clean up the debug-ignored-errors list. Stefan