unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Why should interactive search results raise errors?
Date: Wed, 03 May 2006 18:50:39 +0200	[thread overview]
Message-ID: <4458DF5F.6010309@student.lu.se> (raw)
In-Reply-To: <87vesn83ul.fsf@mit.edu>

Chong Yidong wrote:
> Lennart Borgman <lennart.borgman.073@student.lu.se> 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?

  reply	other threads:[~2006-05-03 16:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-03 16:26 Why should interactive search results raise errors? Lennart Borgman
2006-05-03 16:34 ` Chong Yidong
2006-05-03 16:50   ` Lennart Borgman [this message]
2006-05-04 14:17     ` Richard Stallman
2006-05-04 14:20       ` Lennart Borgman
2006-05-04 15:34         ` Stuart D. Herring
2006-05-04 16:15       ` Stefan Monnier
2006-05-03 17:29 ` Stefan Monnier
2006-05-03 19:58   ` Lennart Borgman
2006-05-04  8:34 ` Kim F. Storm
  -- strict thread matches above, loose matches on Subject: below --
2006-05-04  9:21 LENNART BORGMAN
2006-05-04  9:58 ` Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4458DF5F.6010309@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).