GNU bug report logs -
#14912
24.3.50; replace.el: Replace error with user-error?
Previous Next
Reported by: Jambunathan K <kjambunathan <at> gmail.com>
Date: Fri, 19 Jul 2013 16:28:02 UTC
Severity: minor
Found in version 24.3.50
Done: Jambunathan K <kjambunathan <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 14912 <at> debbugs.gnu.org (full text, mbox):
> Under these conditions, these "spurious" errors get very annoying. I am
> wondering these qualify as `user-error' s.
>
> Debugger entered--Lisp error: (error "No more matches")
My vote says yes - user error rather than system error.
But in fact I wonder whether we should even raise an error here,
instead of just showing an informative message. It is neither a
system error nor a user error that there are no search hits,
a priori.
Yes, no match might in some circumstance indicate an error of
some kind. But for regular interactive use it does not. It is
a normal result to be expected from a normal search interaction.
Treating it as an error seems misguided, IMO.
Perhaps such behavior is a (misguided) throwback to a Unix command
such as `grep' which uses an error return value to indicate no
matches. That is not the context here.
This bug report was last modified 11 years and 191 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.