[DRAFT 1/1] lib: replace some uses of Query::MatchAll with a thread-safe alternative

2023-02-25 Thread Kevin Boulain
This replaces two instances of Xapian::Query::MatchAll with the equivalent but thread-safe alternative Xapian::Query(std::string()). Xapian::Query::MatchAll maintains an internal pointer to a refcounted Xapian::Internal::QueryTerm. None of this is thread-safe but that wouldn't be an issue if

[DRAFT 0/1] lib: replace some uses of Query::MatchAll with a thread-safe alternative

2023-02-25 Thread Kevin Boulain
Hey, Here's a draft patch previously discussed in https://nmbug.notmuchmail.org/nmweb/show/87ilfvq3bc.fsf%40boula.in See the commit's message for more information. Unfortunaly this only covers two third of the usages of Xapian::Query::MatchAll, in lib/query.cc and lib/regexp-fields.cc.

[PATCH 1/1] lib/notmuch: update example

2023-02-25 Thread Kevin Boulain
Likely missed in 86cbd215e, when notmuch_query_search_messages_st was renamed to notmuch_query_search_messages. --- lib/notmuch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/notmuch.h b/lib/notmuch.h index ce375c04..73e246e0 100644 --- a/lib/notmuch.h +++

Re: notmuch-emacs inline image display broken in emacs-29

2023-02-25 Thread David Bremner
David Bremner writes: > Alex Murray writes: > > I tried replacing indent-rigidly with a simplified version the and that > leaves the image inserted, but unfortunately doesn't indent it > properly. If you want to play with it, my half working patch is > attached. > Actually, the current

Re: notmuch-emacs inline image display broken in emacs-29

2023-02-25 Thread David Bremner
Alex Murray writes: > Hi folks, > > I have noticed that inline image display doesn't work anymore in > emacs-29 / git master and have tracked it down to a change to the way > mm-inline-image inserts an image into the buffer. > > In >