unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Why should interactive search results raise errors?
@ 2006-05-04  9:21 LENNART BORGMAN
  2006-05-04  9:58 ` Miles Bader
  0 siblings, 1 reply; 12+ messages in thread
From: LENNART BORGMAN @ 2006-05-04  9:21 UTC (permalink / raw)
  Cc: Emacs Devel

From: storm@cua.dk (Kim F. Storm)

> 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?
> 
> If you include the search in a keyboard macro, it will terminate the
> macro if you repeat it "forever".
> 
> Perhaps it should only signal an error if executed from a kbd macro?

A good idea in my opinion.

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Why should interactive search results raise errors?
@ 2006-05-03 16:26 Lennart Borgman
  2006-05-03 16:34 ` Chong Yidong
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Lennart Borgman @ 2006-05-03 16:26 UTC (permalink / raw)


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?

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-05-04 16:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-04  9:21 Why should interactive search results raise errors? LENNART BORGMAN
2006-05-04  9:58 ` Miles Bader
  -- strict thread matches above, loose matches on Subject: below --
2006-05-03 16:26 Lennart Borgman
2006-05-03 16:34 ` Chong Yidong
2006-05-03 16:50   ` Lennart Borgman
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

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).