]> git.cworth.org Git - obsolete/notmuch-old/commit
emacs: notmuch search bugfix
authorMark Walters <markwalters1009@gmail.com>
Tue, 7 Aug 2012 16:32:18 +0000 (17:32 +0100)
committerDavid Bremner <bremner@debian.org>
Sun, 12 Aug 2012 19:27:45 +0000 (21:27 +0200)
commit5811550cdd51485ec7ea0f960139eb9ea1741451
tree7cefa06ff81b076949c20e4c09507f02923fd821
parent94c3b40d41f1ad98719d411ef28b69075fda0579
emacs: notmuch search bugfix

The recent change to use json for notmuch-search.el introduced a bug
in the code for keeping position on refresh. The problem is a
comparison between (plist-get result :thread) and a thread-id returned
by notmuch-search-find-thread-id: the latter is prefixed with
"thread:"

We fix this by adding an option to notmuch-search-find-thread-id to
return the bare thread-id. It appears that notmuch-search-refresh-view
is the only caller of notmuch-search that supplies a thread-id so this
change should be safe (but could theoretically break users .emacs
functions).
NEWS
emacs/notmuch.el