From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 31699 invoked from network); 1 Apr 2020 22:45:10 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with UTF8ESMTPZ; 1 Apr 2020 22:45:10 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1jJm6A-0000j7-Gi; Wed, 01 Apr 2020 17:44:38 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jJm66-0000gR-A0 for ding@lists.math.uh.edu; Wed, 01 Apr 2020 17:44:34 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jJm64-0003LK-RM for ding@lists.math.uh.edu; Wed, 01 Apr 2020 17:44:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=7bvsut0pos142KUJpgysPtTvhJsDbCx705+Oyi1BI18=; b=N5lKExuTfLswy4p8I8Ei/dRkSB Giwbgh9Jaj7Qs+EN3nsqAseXofthdqsiJ2KvIlsL4EVOlF+IW7uUbVQpTPMio2QAy41Yzh5gs8cat B/3UDpoR9xqMF8NUKVuSJa7II4rC0Yptv0LET9szJk3fm+p0HynyjWBUuQKJ8Mjh4N8k=; Received: from ericabrahamsen.net ([52.70.2.18] helo=mail.ericabrahamsen.net) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJm5w-00061l-Eg for ding@gnus.org; Thu, 02 Apr 2020 00:44:28 +0200 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 61D1CFA094; Wed, 1 Apr 2020 22:44:21 +0000 (UTC) From: Eric Abrahamsen To: hobbes@poukram.net (=?utf-8?Q?R=C3=A9mi?= Letot) Cc: ding@gnus.org Subject: Re: saving registry is fixed, but gnorb still can't gnorb-org-view References: <87d08rs5ei.fsf@sphax> <87y2rec48a.fsf@sphax> Date: Wed, 01 Apr 2020 15:44:15 -0700 In-Reply-To: <87y2rec48a.fsf@sphax> (=?utf-8?Q?=22R=C3=A9mi?= Letot"'s message of "Wed, 01 Apr 2020 22:59:01 +0200") Message-ID: <87bloahlmo.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk hobbes@poukram.net (R=C3=A9mi Letot) writes: > hobbes@poukram.net writes: > >> Hello, >> >> this is what happens when I push s while in the group buffer: > > I quit gnus without saving newsrc, then restarted, and that problem is > gone. I probably lost some registry entries, some recent links between > org headings and gnus messages, but that's not a big problem. > > However this one is still there: > >> Also, might be related, gnorb-org-view (C-c v) on most (if not all) org >> entries linked to mails produces the following: >> >> Debugger entered--Lisp error: (wrong-type-argument arrayp nil) >> replace-regexp-in-string("\\(\\\\+\\)\\(?:\\'\\|[][]\\)" (closure >> ((link) org-ts-regexp org-time-stamp-formats org-src-source-file-name >> org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id >> org-highlight-links org-comment-string org-agenda-buffer-name >> clean-buffer-list-kill-buffer-names t) (_) (concat (make-string (/ (- >> (match-end 1) (match-beginning 1)) 2) 92))) nil nil t 1) >> org-link-unescape(nil) >> nnir-run-gnorb(((query . >> "id+6d3a4ef0-2748-409f-8607-a26112ea4353")) "nngnorb:Org tracking" What should be happening in this situation is that the code visits whatever subtree has ID "6d3a4ef0-2748-409f-8607-a26112ea4353", then collects all links of type "gnus:". Those links should look like: gnus:gmane.emacs.gnus.general#87y2rec48a.fsf@sphax Then each link is split on "#", and the second section (a message ID) is run through `org-link-unescape'. In your case, there's a link that has no message ID part. You could take a look at the Org tree in question and see which it is, and if you know how that link might have been created (or mangled). I can put a filter in to make sure that links with no message-id part are dropped -- they are bogus, anyway. I also wonder why I'm running them through `org-link-unescape' at all: do message-ids ever have square brackets in them? But even if I took that out, a null message-id would just cause an error further down the line. Eric