From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Why should interactive search results raise errors? Date: Thu, 04 May 2006 10:17:11 -0400 Message-ID: References: <4458D9D1.5000907@student.lu.se> <87vesn83ul.fsf@mit.edu> <4458DF5F.6010309@student.lu.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1146752308 21244 80.91.229.2 (4 May 2006 14:18:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 May 2006 14:18:28 +0000 (UTC) Cc: emacs-devel@gnu.org, cyd@mit.edu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 04 16:18:23 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 1FbeeP-0006z8-3S for ged-emacs-devel@m.gmane.org; Thu, 04 May 2006 16:17:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbeeO-00082B-IK for ged-emacs-devel@m.gmane.org; Thu, 04 May 2006 10:17:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fbedl-0007l8-IV for emacs-devel@gnu.org; Thu, 04 May 2006 10:17:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fbedl-0007kY-1S for emacs-devel@gnu.org; Thu, 04 May 2006 10:17:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fbedk-0007kT-Qf for emacs-devel@gnu.org; Thu, 04 May 2006 10:17:12 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FbeeN-0007eM-F7 for emacs-devel@gnu.org; Thu, 04 May 2006 10:17:51 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Fbedj-0002Au-U9; Thu, 04 May 2006 10:17:12 -0400 Original-To: Lennart Borgman In-reply-to: <4458DF5F.6010309@student.lu.se> (message from Lennart Borgman on Wed, 03 May 2006 18:50:39 +0200) 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:53903 Archived-At: I still believe that interactive search commands should not raise errors. However I think adding these commands now to debug-ingnored-errors is the better solution now. Could we please do that now? I see no reason to change this. Lots of commands signal errors when they can't do what they are asked to do; why shouldn't these? 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'. `debug-ignored-errors' does make an attempt to distinguish which errors are _probably_ user errors, but it cannot really know, and sometimes this criterion gets the wrong answer.