Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: physiculus <physiculus@gmail.com>
To: xuqi <haoyang@expoundite.net>
Cc: info-gnus-english@gnu.org
Subject: Re: nnir with notmuch gives error; sort: Wrong type argument: number-or-marker-p, nil
Date: Mon, 16 Mar 2020 19:42:39 +0100	[thread overview]
Message-ID: <87y2s0xhsw.fsf@googlemail.com> (raw)
In-Reply-To: <m18sk1ihb6.fsf@expoundite.net> (xuqi's message of "Mon, 16 Mar 2020 02:50:05 +0800")

xuqi <haoyang@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 <physiculus@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

  reply	other threads:[~2020-03-16 18:43 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-12 18:27 physiculus
2020-03-12 19:09 ` Eric Abrahamsen
2020-03-13  9:46   ` physiculus
2020-03-13 17:04     ` xuqi
2020-03-14  7:52       ` physiculus
2020-03-14 11:30         ` xuqi
2020-03-14 15:31           ` physiculus
2020-03-14 16:11             ` Eric Abrahamsen
2020-03-14 16:23               ` physiculus
2020-03-14 16:47                 ` Eric Abrahamsen
2020-03-15 11:45                   ` physiculus
2020-03-15 18:50                     ` xuqi
2020-03-16 18:42                       ` physiculus [this message]
2020-03-16 19:42                         ` Eric Abrahamsen
2020-03-17  8:50                           ` physiculus
2020-03-17 14:22                             ` physiculus
2020-03-18  1:27                               ` xuqi
2020-03-18 18:02                                 ` physiculus
2020-03-19 22:56                                   ` Eric Abrahamsen
2020-03-25 19:05                           ` nnir with notmuch gives error; Possible solution! physiculus
2020-03-25 19:19                             ` Eric Abrahamsen
2020-03-26 19:16                               ` Helmut Waitzmann
2020-03-15 22:09                     ` nnir with notmuch gives error; sort: Wrong type argument: number-or-marker-p, nil Eric Abrahamsen
2020-03-13 18:51     ` Eric Abrahamsen
2020-03-14  7:54       ` physiculus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y2s0xhsw.fsf@googlemail.com \
    --to=physiculus@gmail.com \
    --cc=haoyang@expoundite.net \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).