From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Why should interactive search results raise errors? Date: Wed, 03 May 2006 12:34:10 -0400 Message-ID: <87vesn83ul.fsf@mit.edu> References: <4458D9D1.5000907@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 1146674046 6109 80.91.229.2 (3 May 2006 16:34:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 May 2006 16:34:06 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 03 18:34:05 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 1FbKIc-0002d6-DP for ged-emacs-devel@m.gmane.org; Wed, 03 May 2006 18:34:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbKIb-0006ge-Vf for ged-emacs-devel@m.gmane.org; Wed, 03 May 2006 12:34:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FbKIQ-0006dv-QV for emacs-devel@gnu.org; Wed, 03 May 2006 12:33:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FbKIP-0006db-G5 for emacs-devel@gnu.org; Wed, 03 May 2006 12:33:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbKIP-0006dW-AS for emacs-devel@gnu.org; Wed, 03 May 2006 12:33:49 -0400 Original-Received: from [18.19.6.82] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FbKIp-0006fI-6a for emacs-devel@gnu.org; Wed, 03 May 2006 12:34:15 -0400 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id 6F326120075; Wed, 3 May 2006 12:34:10 -0400 (EDT) Original-To: Lennart Borgman In-Reply-To: <4458D9D1.5000907@student.lu.se> (Lennart Borgman's message of "Wed, 03 May 2006 18:26:57 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:53857 Archived-At: 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.