From: Mark Walters Date: Tue, 7 Aug 2012 16:32:18 +0000 (+0100) Subject: emacs: notmuch search bugfix X-Git-Tag: 0.14~10 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;ds=sidebyside;h=5811550cdd51485ec7ea0f960139eb9ea1741451;hp=5811550cdd51485ec7ea0f960139eb9ea1741451;p=notmuch 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). ---