]> git.notmuchmail.org Git - notmuch/commit
emacs: avoid type errors due to nil as content-type
authorJonas Bernoulli <jonas@bernoul.li>
Sun, 10 Jan 2021 18:47:22 +0000 (19:47 +0100)
committerDavid Bremner <david@tethera.net>
Fri, 15 Jan 2021 11:30:33 +0000 (07:30 -0400)
commit1f14dbfbd72d5c4aa04c4903155060f7c69c608f
tree3fb6c92047ad11c34151eb156d14e8f6415cd755
parentf1ae9addc6ca974393062c764518895af5f295c4
emacs: avoid type errors due to nil as content-type

The output of "notmuch show --format=sexp --format-version=4"
may contain `:content-type' entries with `nil' as the value,
when it fails to detect the correct value.  Account for that
in a few places where we would otherwise risk a type error.

Note that `string=' does not choke on `nil' because it uses
the `symbol-name' when encountering a symbol.
emacs/notmuch-lib.el
emacs/notmuch-show.el