"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
Michael Sperber writes:
>
> Michael Sperber <sperber(a)deinprogramm.de> writes:
>
> > 2013-12-08 Michael Sperber <mike(a)xemacs.org>
> >
> > * subr-more.el (condition-case-unless-debug): Added, from GNU Emacs.
> > (with-demoted-errors): Added, from GNU Emacs.
Does it make sense (since we have a sane warning system) to repromote
these to warnings, perhaps at a level that doesn't pop the *Warnings*
buffer, but only logs the warning for future reference?
Like this?
diff --git a/subr-more.el b/subr-more.el
--- a/subr-more.el
+++ b/subr-more.el
@@ -169,6 +169,6 @@
(let ((err (make-symbol "err")))
`(condition-case-unless-debug ,err
(progn ,@body)
- (error (message "Error: %S" ,err) nil))))
+ (error (display-warning 'general (format "Error: %S" ,err)
'notice) nil))))
;;; subr-more.el ends here
(I'd be happy to make it into a patch if you like it.)
--
Regards,
Mike
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta