Gnus development mailing list
 help / color / Atom feed
From: Amin Bandali <bandali@gnu.org>
To: ding@gnus.org
Subject: Re: how to visit a message by its ID and group name?
Date: Sun, 26 Jul 2020 11:17:30 -0400
Message-ID: <874kpunw51.fsf@gnu.org> (raw)
In-Reply-To: <87h7tubx77.fsf@mat.ucm.es>


[-- Attachment #1: Type: text/plain, Size: 885 bytes --]

Uwe Brauer <oub@mat.ucm.es> writes:

[...]
>
> This function is called when I am sending a message and stored in the
> diary.
> The point is, maybe in 3 weeks I want to read it again, so I visit the
> diary and just want to click on its ID. That is the use case

For Org, there is ol-gnus.el:
<https://code.orgmode.org/bzg/org-mode/src/master/lisp/ol-gnus.el>

You can call `org-store-link' in `gnus-summary-mode' or
`gnus-article-mode', and it will save a link to the current article.
You can the insert that link into an Org buffer using
`org-insert-last-stored-link'.

So, if you'd like to store links to Gnus messages in Org files, you can
use ol-gnus.el out of the box, and only add bindings for the store and
insert functions for convenience.  If you'd like to make links in
non-Org files, you may find it useful to look through ol-gnus.el as a
starting point.

Hope this helps.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 857 bytes --]

  reply index

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-24  9:00 Uwe Brauer
2020-07-24 12:11 ` dick.r.chiang
2020-07-24 16:08   ` Uwe Brauer
2020-07-24 17:20   ` Eric Abrahamsen
2020-07-24 22:01 ` Emanuel Berg
2020-07-25  7:26   ` Uwe Brauer
2020-07-25 15:57     ` Emanuel Berg
2020-07-26  6:35       ` Uwe Brauer
2020-07-26 15:17         ` Amin Bandali [this message]
2020-07-26 19:12           ` Uwe Brauer
2020-07-26 15:45         ` two questions on archive (was: Re: how to visit a message by its ID and group name?) Emanuel Berg
2020-07-26 16:03           ` Emanuel Berg
2020-07-27  8:32           ` [(message-news-p)???] (was: two questions on archive) Uwe Brauer
2020-07-27  8:43             ` [(message-news-p)???] Adam Sjøgren
2020-07-27 10:14               ` [(message-news-p)???] Uwe Brauer
2020-07-28  3:16             ` [(message-news-p)???] Emanuel Berg
2020-08-03 20:48           ` two questions on archive David Rogers
2020-08-03 20:56             ` Emanuel Berg
2020-07-26 15:39 ` how to visit a message by its ID and group name? Christian Barthel

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=874kpunw51.fsf@gnu.org \
    --to=bandali@gnu.org \
    --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

Gnus development mailing list

Archives are clonable: git clone --mirror http://inbox.vuxu.org/ding

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.emacs.gnus.general


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git