]> git.notmuchmail.org Git - notmuch/commit
notmuch-show.el: handle the case where icalendar-import-buffer returns nil
authorTomi Ollila <tomi.ollila@iki.fi>
Thu, 8 Nov 2012 12:08:00 +0000 (14:08 +0200)
committerDavid Bremner <bremner@debian.org>
Sun, 25 Nov 2012 15:06:23 +0000 (11:06 -0400)
commit0a21fb98b2a7b80958e19711d904eb91e2234250
tree7e4317e23b7bcb419498815e646d68a369e803cc
parent60b5bff53d16a6e78bd989179076f7450d63c2e3
notmuch-show.el: handle the case where icalendar-import-buffer returns nil

icalendar-import-buffer can fail by an error signal (which have been
witnessed) but according to its docstring it can also return nil
when failing (it returns t when succeeding).

Now that the error is caught by the caller of notmuch-show-inset-part-*
functions in case icalendar-import-buffer returns nil an explicit
error is signaled and unwind-protect takes care of deleting the
temporary file (just in case, it is usually not written to the fs yet).
emacs/notmuch-show.el