]> rtime.felk.cvut.cz Git - notmuch.git/commit
emacs: Handle all face forms when combining faces
authorAustin Clements <amdragon@MIT.EDU>
Mon, 4 Feb 2013 21:37:01 +0000 (16:37 -0500)
committerDavid Bremner <bremner@unb.ca>
Mon, 25 Mar 2013 15:35:22 +0000 (11:35 -0400)
commit3ddb4dc8065a86a1fbcd17c6a6e6f3721b4b6522
treef99b88bdfa904da209002a6546c098f5b0116e42
parent6a38b5db37da9d5ea618d194a1c0e9dce8f0de8a
emacs: Handle all face forms when combining faces

Previously, notmuch-combine-face-text-property assumed that any
existing face properties of the modified text were already in face
list form.  This was true as long as it was the only function
manipulating faces (since it always produced a list form face), but if
anything else has manipulated the face, it was more likely to be
either a face name or a face plist.  It also didn't correctly handle
face lists as arguments, even though the doc string claimed it did.

This patch fixes notmuch-combine-face-text-property to handle all face
forms correctly by canonicalizing both the argument face and the
existing faces into list form.  This also means we can set the face to
a simpler non-list form if there's no existing face.
emacs/notmuch-lib.el