* Re: [elpa] master aeaabd3 42/45: hydra.el (defhydra): Re-throw a caught error when debug-on-error [not found] ` <E1YijB7-0003dD-4X@vcs.savannah.gnu.org> @ 2015-04-16 17:45 ` Stefan Monnier 2015-04-16 18:36 ` Oleh Krehel 0 siblings, 1 reply; 2+ messages in thread From: Stefan Monnier @ 2015-04-16 17:45 UTC (permalink / raw) To: emacs-devel; +Cc: Oleh Krehel > (error > - (message "Error in defhydra %S: %s" name (cdr err)) > + (if debug-on-error > + (signal (car err) (cdr err)) > + (message "Error in defhydra %S: %s" name (cdr err))) That's exactly what condition-case-unless-debug. Stefan ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [elpa] master aeaabd3 42/45: hydra.el (defhydra): Re-throw a caught error when debug-on-error 2015-04-16 17:45 ` [elpa] master aeaabd3 42/45: hydra.el (defhydra): Re-throw a caught error when debug-on-error Stefan Monnier @ 2015-04-16 18:36 ` Oleh Krehel 0 siblings, 0 replies; 2+ messages in thread From: Oleh Krehel @ 2015-04-16 18:36 UTC (permalink / raw) To: Stefan Monnier; +Cc: emacs-devel Stefan Monnier <monnier@iro.umontreal.ca> writes: >> (error >> - (message "Error in defhydra %S: %s" name (cdr err)) >> + (if debug-on-error >> + (signal (car err) (cdr err)) >> + (message "Error in defhydra %S: %s" name (cdr err))) > > That's exactly what condition-case-unless-debug. Thanks, updated. Oleh ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-16 18:36 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20150416124537.13475.46120@vcs.savannah.gnu.org> [not found] ` <E1YijB7-0003dD-4X@vcs.savannah.gnu.org> 2015-04-16 17:45 ` [elpa] master aeaabd3 42/45: hydra.el (defhydra): Re-throw a caught error when debug-on-error Stefan Monnier 2015-04-16 18:36 ` Oleh Krehel
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.