From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Why should interactive search results raise errors? Date: Wed, 03 May 2006 18:50:39 +0200 Message-ID: <4458DF5F.6010309@student.lu.se> References: <4458D9D1.5000907@student.lu.se> <87vesn83ul.fsf@mit.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1146675078 10583 80.91.229.2 (3 May 2006 16:51:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 May 2006 16:51:18 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 03 18:51:15 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 1FbKZ1-0005jy-Nm for ged-emacs-devel@m.gmane.org; Wed, 03 May 2006 18:51:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbKZ1-0007vQ-3d for ged-emacs-devel@m.gmane.org; Wed, 03 May 2006 12:50:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FbKYq-0007vI-Jf for emacs-devel@gnu.org; Wed, 03 May 2006 12:50:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FbKYp-0007v6-Oe for emacs-devel@gnu.org; Wed, 03 May 2006 12:50:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbKYp-0007v3-Lb for emacs-devel@gnu.org; Wed, 03 May 2006 12:50:47 -0400 Original-Received: from [81.228.8.83] (helo=pne-smtpout1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FbKZF-0008Ix-Gv for emacs-devel@gnu.org; Wed, 03 May 2006 12:51:13 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn2.hy.skanova.net (7.2.072.1) id 4457C64200042DDE; Wed, 3 May 2006 18:50:42 +0200 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) Original-To: Chong Yidong In-Reply-To: <87vesn83ul.fsf@mit.edu> 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:53859 Archived-At: Chong Yidong wrote: > Lennart Borgman writes: > > >> Some interactive search functions raise errors when no hit is >> found. It is quite annoyning if you have set debug-on-error to t. Is >> there any reason why this functions raises errors in this cases? Can >> that be used for anything? >> >> An example is the function in the menu bar: Edit - Search - String >> Forward. As far as I can see this in only meant to be run >> interactively. The same goes for viper-search-next. >> >> It would in my opinion be more convenient if these functions just >> return nil and showed a message when a search fails. Would it not be a >> good convention for interactive search functions in Emacs? >> > > Probably the better thing to do is to add the error to > debug-ignored-errors. > Oh! Thanks. I was just going to invent that one. How nice it is there already ;-) 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?