c no longer works to copy email address

6 views
Skip to first unread message

jouke hijlkema

unread,
Jul 11, 2022, 12:23:47 PM7/11/22
to mu-di...@googlegroups.com
Dear all,

I noticed (not a functionality I use a lot) that hitting c over an email address no longer copies it. Is this a new feature, a bug or something I f***ed up in my config ?

my mu4e-mu-version = 1.8.5

Jouke

Dirk-Jan C. Binnema

unread,
Jul 12, 2022, 4:22:15 PM7/12/22
to mu-di...@googlegroups.com

On Monday Jul 11 2022, jouke hijlkema wrote:

> Dear all,
>
> I noticed (not a functionality I use a lot) that hitting c over an email
> address no longer copies it. Is this a new feature, a bug or something I
> f***ed up in my config ?

IIRC, that command was for the old view, it's not implemented in the
gnus-based view, which has been the default since 1.6. Should be easy to
add though, using

(thing-at-point 'email)

Kind regards,
Dirk.

--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl
gpg: 6987 9CED 1745 9375 0F14 DA98 11DD FEA9 DCC4 A036

Matt Price

unread,
Jul 12, 2022, 5:22:40 PM7/12/22
to mu-di...@googlegroups.com
Jouke, if you get this working, please let me/the list know; this would be a helpful feature to have!
THanks,
Matt


--
You received this message because you are subscribed to the Google Groups "mu-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mu-discuss+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mu-discuss/878royhyj7.fsf%40djcbsoftware.nl.

Dirk-Jan C. Binnema

unread,
Jul 13, 2022, 3:00:26 AM7/13/22
to mu-di...@googlegroups.com

On Tuesday Jul 12 2022, Matt Price wrote:

> Jouke, if you get this working, please let me/the list know; this would be
> a helpful feature to have!

It shouldn't be too hard:

--8<---------------cut here---------------start------------->8---
(defun copy-email-address-at-point ()
"If there is one, copy the e-mail address at point to the kill-ring."
(interactive)
(when-let ((addr (thing-at-point 'email)))
(kill-new addr)))
--8<---------------cut here---------------end--------------->8---

jouke hijlkema

unread,
Jul 13, 2022, 3:37:15 AM7/13/22
to mu-di...@googlegroups.com
Thank you Dirk. This works nicely.

(kill-new (string-trim (thing-at-point 'email) "<" ">"))

Jouke

Reply all
Reply to author
Forward
0 new messages