emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jorge P. de Morais Neto <jorge+list@disroot.org>
To: emacs-orgmode@gnu.org
Subject: Re: Grabbing the link to a message on the archive
Date: Sun, 03 Oct 2021 21:20:12 -0300	[thread overview]
Message-ID: <87ilydprnn.fsf@disroot.org> (raw)
In-Reply-To: <87v92i4p0c.fsf@gmail.com>

Hi Timothy,

Em [2021-09-30 qui 13:18:44+0800], Timothy escreveu:

> If you use mu4e, the following may be of some interest:
> ┌────
> │ (defun +mu4e-ml-message-link (msg)
> │   (cond
> │    ((string= "emacs-orgmode.gnu.org" (mu4e-message-field msg :mailing-list))
> │     (message "Link %s copied to clipboard" (gui-select-text (format "https://list.orgmode.org/%s" (mu4e-message-field msg :message-id)))))
> │    (t (user-error "Mailing list %s not supported" (mu4e-message-field msg :mailing-list)))))
> │ (add-to-list 'mu4e-view-actions (cons "link to message ML" #'+mu4e-ml-message-link t))
> └────

In this snippet you call ~cond~ with three arguments, but it takes only
two.

Regards

-- 
- Many people hate injustice but few check the facts.  This provokes
  misinformation.  Ask me about <https://stallmansupport.org>
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Free Software Supporter: https://www.fsf.org/free-software-supporter
- If an email of mine arrives at your spam box, please notify me.


  parent reply	other threads:[~2021-10-04  0:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-29 20:18 orgmode.org setup Bastien
2021-09-29 20:24 ` Samuel Banya
2021-09-29 20:38   ` Bastien
2021-09-29 21:20 ` Russell Adams
2021-09-29 21:29   ` Bastien
2021-09-30  4:00 ` Greg Minshall
2021-09-30  5:18   ` Grabbing the link to a message on the archive Timothy
2021-09-30  6:53     ` Greg Minshall
2021-10-01 15:07     ` Max Nikulin
2021-10-01 18:50       ` Greg Minshall
2021-10-02 14:26       ` Ihor Radchenko
2021-10-02 15:48         ` Max Nikulin
2021-10-02 16:12           ` Kyle Meyer
2021-10-04  0:20     ` Jorge P. de Morais Neto [this message]
2021-10-04  0:21       ` Jorge P. de Morais Neto

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87ilydprnn.fsf@disroot.org \
    --to=jorge+list@disroot.org \
    --cc=emacs-orgmode@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).