]> code.delx.au - gnu-emacs/commit
Add x_catch_errors_with_handler.
authorKen Raeburn <raeburn@raeburn.org>
Fri, 2 Oct 2015 09:00:23 +0000 (05:00 -0400)
committerKen Raeburn <raeburn@raeburn.org>
Sun, 11 Oct 2015 05:15:12 +0000 (01:15 -0400)
commitfcb5d3e8b158f7ea8492aa14f79804fae18e76f9
tree0e0429c3a6242ca93628c5b7490ef28a94db99f1
parent5504ede9518053e619b2cc4bb01ce6eff254d3c8
Add x_catch_errors_with_handler.

* src/xterm.c (struct x_error_message_stack): Add new fields for a
callback function and associated data pointer.
(x_error_catcher): If the callback function is set, call it after
saving the error message string.
(x_catch_errors_with_handler): Renamed from x_catch_errors but now
accepts a callback function and data pointer.
(x_catch_errors): Now a wrapper function.
* src/xterm.h (x_special_error_handler): New typedef.
(x_catch_errors_with_handler): Declare.
src/xterm.c
src/xterm.h