c no longer works to copy email address

瀏覽次數:6 次
跳到第一則未讀訊息

jouke hijlkema

未讀,
2022年7月11日 中午12:23:472022/7/11
收件者: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

未讀,
2022年7月12日 下午4:22:152022/7/12
收件者: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

未讀,
2022年7月12日 下午5:22:402022/7/12
收件者: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

未讀,
2022年7月13日 凌晨3:00:262022/7/13
收件者: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

未讀,
2022年7月13日 凌晨3:37:152022/7/13
收件者:mu-di...@googlegroups.com
Thank you Dirk. This works nicely.

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

Jouke

回覆所有人
回覆作者
轉寄
0 則新訊息