]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Use whitelist instead of blacklist for term escaping
authorAustin Clements <amdragon@MIT.EDU>
Tue, 11 Mar 2014 22:19:54 +0000 (18:19 -0400)
committerDavid Bremner <david@tethera.net>
Tue, 25 Mar 2014 22:57:06 +0000 (19:57 -0300)
Previously, the term escaper used a blacklist of characters that
needed escaping.  This blacklist turned out to be somewhat incomplete;
for example, it did not contain non-whitespace ASCII control
characters or Unicode "fancy quotes", both of which do require the
term to be escaped.

Switch to a whitelist of characters that are definitely safe to leave
unquoted.  This fixes the broken test introduced by the previous
patch.


No differences found