xuqi <haoy...@expoundite.net> writes: Hello, thank you and Eric very much for help. I can't help, because i do not fully understand, what goes wrong.
here is the list: (["nnmaildir+Lokal:Privat" 349 0] ["nnmaildir+Lokal:Privat" 446 0] ["nnmaildir+Lokal:Privat" 506 0] ["nnmaildir+Lokal:Privat" 333 0] ["nnmaildir+Lokal:ZuErledigen" 399 0] ["nnmaildir+Lokal:ZuErledigen" 131 0] ["nnmaildir+Lokal:ZuErledigen" 226 0] ["nnmaildir+Lokal:Linzessin" 34 0] ["nnmaildir+Lokal:ZuErledigen" 318 0] ["nnmaildir+Lokal:ZuErledigen" 266 0] ["nnmaildir+Lokal:ZuErledigen" 42 0] ["nnmaildir+Lokal:logins" 156 0] ["nnmaildir+Lokal:logins" 59 0] ["nnmaildir+Lokal:Privat" 242 0] ["nnmaildir+Lokal:Privat" 231 0] ["nnmaildir+Lokal:Privat" 125 0] ["nnmaildir+Lokal:Privat" 314 0] ["nnmaildir+Lokal:Privat" 291 0] ["nnmaildir+Lokal:ZuErledigen" 411 0] ["nnmaildir+Lokal:Privat" 385 0] ["nnmaildir+Lokal:ZuErledigen" 319 0] ["nnmaildir+Lokal:ZuErledigen" 155 0] ["nnmaildir+Lokal:Privat" 157 0] ["nnmaildir+Lokal:Privat" 310 0] ["nnmaildir+Lokal:ZuErledigen" 492 0] ["nnmaildir+Lokal:Privat" 109 0] ["nnmaildir+Lokal:Privat" 409 0] ["nnmaildir+Lokal:Privat" 500 0] ["nnmaildir+Lokal:Privat" 209 0] ["nnmaildir+Lokal:Privat" 295 0] ["nnmaildir+Lokal:Privat" 255 0] ["nnmaildir+Lokal:Privat" 398 0] ["nnmaildir+Lokal:Privat" 367 0] ["nnmaildir+Lokal:Privat" 36 0] ["nnmaildir+Lokal:Privat" 484 0] ["nnmaildir+Lokal:Privat" 303 0] ["nnmaildir+Lokal:Privat" 189 0] ["nnmaildir+Lokal:Privat" 187 0] ["nnmaildir+Lokal:ZuErledigen" 346 0] ["nnmaildir+Lokal:Privat" 542 0] ["nnmaildir+Lokal:Privat" 144 0] ["nnmaildir+Lokal:Privat" 16 0] ["nnmaildir+Lokal:Privat" 509 0] ["nnmaildir+Lokal:Privat" 182 0] ["nnmaildir+Lokal:Privat" 72 0] ["nnmaildir+Lokal:Privat" 108 0] ["nnmaildir+Lokal:Privat" 471 0] ["nnmaildir+Lokal:Privat" 22 0] ["nnmaildir+Lokal:Privat" 181 0] ["nnmaildir+Lokal:Orgmode" 8316 0] ["nnmaildir+Lokal:Orgmode" 6221 0] ["nnmaildir+Lokal:karlderletzte.Sent" nil 0] ["nnmaildir+Lokal:karlderletzte.INBOX" nil 0] ["nnmaildir+Lokal:karlderletzte.Sent" nil 0] ["nnmaildir+Lokal:karlderletzte.INBOX" nil 0] ["nnmaildir+Lokal:Privat" 670 0] ["nnmaildir+Lokal:Privat" 669 0] ["nnmaildir+Lokal:Privat" 668 0]) > physiculus <physicu...@gmail.com> writes: > > > It would help if we can see the complete list here. Unfortunately, > unless notmuch encounters a problem and value of `gnus-verbose' is > 6, > `nnir-tmp-buffer' would be erased. In your case notmuch runs perfectly > well. > > However, after looking at the code of `nnir-retrieve-headers` more > closely, I think I narrowed down the range of possible courses a bit. > > The offending line of code `(sort (mapcar 'cdr articleids) '<)` for one > of your searchs would translate into something like this: > > (sort (mapcar 'cdr (cadr > '("nnmaildir+Lokal:Privat" > ((1 . 349) > (2 . 446) > (3 . 506) > (4 . 333))))) '<) > > In this case it would run and give you the result: > > '(333 349 446 506) > > But down the line, one or more of the articles would have ID(s) that are > nil. Maybe it's a file that's not properly synced. In the search result > it probably looks like this: > > ["nnmaildir+Lokal:SomeFolder" nil 0] > >>> >>> That looks correct, but it would be important to see the whole list. Can >>> you still do the (switch-to-buffer nnir-tmp-buffer) and paste the >>> contents here? > > As Eric mentioned, it is important to see the whole list. To get the > whole list generated by `nnir-run-notmuch', you can wrap your search > like this: > > (progn > (setq xbuff (generate-new-buffer "*my output*")) > (print (nnir-run-notmuch '((query . "hock")) "nnmaildir:Lokal") xbuff) > (switch-to-buffer xbuff )) > > Then you can copy the content of *my output* and paste it here. If > indeed there were some nils in the result, we should be able to find the > corresponding file using `nnmaildir-article-number-to-file-name' and > more elisp. > >>> >>> >>> _______________________________________________ >>> info-gnus-english mailing list >>> info-gnus-english@gnu.org >>> https://lists.gnu.org/mailman/listinfo/info-gnus-english >> >> _______________________________________________ >> info-gnus-english mailing list >> info-gnus-english@gnu.org >> https://lists.gnu.org/mailman/listinfo/info-gnus-english > > > _______________________________________________ > info-gnus-english mailing list > info-gnus-english@gnu.org > https://lists.gnu.org/mailman/listinfo/info-gnus-english _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english