Gnus development mailing list
 help / color / mirror / Atom feed
From: hobbes@poukram.net
To: ding@gnus.org
Subject: Re: saving registry is fixed, but gnorb still can't gnorb-org-view
Date: Sun, 05 Apr 2020 21:18:02 +0200	[thread overview]
Message-ID: <87imidbv2t.fsf@sphax> (raw)
In-Reply-To: <87pncmc5o1.fsf@ericabrahamsen.net>

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

>> The problem seems to happen as soon as there is a gnus link in the org
>> entry, so I just created one:
>>
>> ** TODO debug gnorb
>> :PROPERTIES:
>> :ID:       8be1357a-1323-4950-93c2-019b0f04a904
>> :END:
>> [2020-04-02 jeu 16:58]
>> test entry to debug gnorb
>> [[gnus:nnimap+hobbes:INBOX#87369mym1d.fsf@ericabrahamsen.net][Email
>> from Eric Abrahamsen: Re: saving registry is fixed, but gnorb still
>> can't gnorb-org-view]]
>>
>> The link works if I visit it.
>
> Okay, would you try this version of the function? Thanks...
>
> (defun gnorb-scan-links (bound &rest types)
>   (unless (= (point) bound)
>     (let ((alist (mapcar #'list (copy-sequence types))))
>       (while (re-search-forward org-link-any-re bound t)
> 	(let ((link (or
> 		     ;; Bracket link.
> 		     (match-string-no-properties 2)
> 		     ;; "Bare" link.
> 		     (match-string-no-properties 0)))
> 	      sym)
> 	  (when (string-match "\\([^:]+\\):\\(.+\\)" link)
> 	    (setq sym (intern-soft (match-string 1 link))
> 		  link (match-string 2 link))
> 	    (when (and sym (memq sym types))
> 	      (push link (alist-get sym alist))))))
>       alist)))

Yep, works ! Thanks a lot :-)

-- 
Remi



  reply	other threads:[~2020-04-05 19:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-01 13:32 can't save gnus registry anymore, and gnorb " hobbes
2020-04-01 20:59 ` saving registry is fixed, but gnorb still " Rémi Letot
2020-04-01 22:44   ` Eric Abrahamsen
2020-04-01 23:16     ` Eric Abrahamsen
2020-04-02 13:05       ` hobbes
2020-04-02 14:55         ` Eric Abrahamsen
2020-04-02 15:03           ` hobbes
2020-04-02 16:28             ` Eric Abrahamsen
2020-04-02 18:15             ` Eric Abrahamsen
2020-04-05 19:18               ` hobbes [this message]
2020-04-05 21:32                 ` Eric Abrahamsen

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=87imidbv2t.fsf@sphax \
    --to=hobbes@poukram.net \
    --cc=ding@gnus.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).