Subject: 24.3.50; replace.el: Replace error with user-error?

From: Jambunathan K <[email-masked]>
Date: Fri, 19 Jul 2013 21:58:32 +0530

Very frequently I enable debug-on-error.

This is invariably accompanied with M-x occur RET on some source file
with infinite typings of M-n and M-p s.

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")
  signal(error ("No more matches"))
  error("No more matches")
  (if r (goto-char r) (error message))
  (while (> n 0) (setq r (funcall search (point) (quote occur-match))) (and r (get-text-property r (quote occur-match)) (setq r (funcall search r (quote occur-match)))) (if r (goto-char r) (error message)) (setq n (1- n)))
  (let ((r)) (while (> n 0) (setq r (funcall search (point) (quote occur-match))) (and r (get-text-property r (quote occur-match)) (setq r (funcall search r (quote occur-match)))) (if r (goto-char r) (error message)) (setq n (1- n))))
  occur-find-match(1 previous-single-property-change "No more matches")
  occur-next-error(-1 nil)
  next-error(-1)
  previous-error(1)
  call-interactively(previous-error nil nil)
  command-execute(previous-error)

Debugger entered--Lisp error: (error "No more matches")
  signal(error ("No more matches"))
  error("No more matches")
  (if r (goto-char r) (error message))
  (while (> n 0) (setq r (funcall search (point) (quote occur-match))) (and r (get-text-property r (quote occur-match)) (setq r (funcall search r (quote occur-match)))) (if r (goto-char r) (error message)) (setq n (1- n)))
  (let ((r)) (while (> n 0) (setq r (funcall search (point) (quote occur-match))) (and r (get-text-property r (quote occur-match)) (setq r (funcall search r (quote occur-match)))) (if r (goto-char r) (error message)) (setq n (1- n))))
  occur-find-match(1 next-single-property-change "No more matches")
  occur-next-error(1 nil)
  next-error(nil)
  call-interactively(next-error nil nil)
  command-execute(next-error)

In GNU Emacs 24.3.50.17 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2013-07-19 on debian-6.05
Bzr revision: 113464 [email-masked]
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Important settings:
  value of $LANG: en_IN
  locale-coding-system: iso-latin-1-unix
  default enable-multibyte-characters: t