Without this little patch notmuch fails if asked to display a saved
search that has zero results
Edited-by: David Edmondson <dme@dme.org>: With code that is a little
more "emacsy".
(while (> n 0)
(push (% n 1000) result)
(setq n (/ n 1000)))
(while (> n 0)
(push (% n 1000) result)
(setq n (/ n 1000)))
+ (setq result (or result '(0)))
(apply #'concat
(number-to-string (car result))
(mapcar (lambda (elem)
(apply #'concat
(number-to-string (car result))
(mapcar (lambda (elem)